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

:root {
    --bg-primary: #050508;
    --bg-secondary: #0c0c12;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.06);
    --text-primary: #f5f6fa;
    --text-secondary: #8a8d9a;
    --accent: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.15);
    --success: #00b894;
    --danger: #ff4757;
    --gradient-1: linear-gradient(135deg, #ffd700, #c0c0c0);
    --gradient-2: linear-gradient(135deg, #050508 0%, #111119 100%);
}

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

html {
    background: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: transparent;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===================== NAVIGATION ===================== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ===================== HERO ===================== */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 60%);
    pointer-events: none;
    opacity: 0.5;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    position: relative;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* ===================== GRILLE PRODUITS ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.3);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
}

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

.product-info {
    padding: 1.25rem;
}

.product-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.product-info .description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ===================== PAGE PRODUIT ===================== */
.product-detail {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.product-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.product-detail-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 4rem;
}

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

.product-detail-body {
    padding: 2.5rem;
}

.product-detail-body h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-detail-body .price {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.product-detail-body .desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

/* ===================== BOUTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    opacity: 0.85;
    box-shadow: 0 8px 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-danger:hover {
    opacity: 0.8;
}

.btn-back {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* ===================== FORMULAIRE ADMIN ===================== */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

/* Liste des produits admin */
.admin-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    transition: background 0.2s;
}

.admin-product-item:hover {
    background: var(--bg-secondary);
}

.admin-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-product-thumb {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-secondary);
}

/* ===================== SUCCESS PAGE ===================== */
.success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}

.success-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 0 40px rgba(0, 184, 148, 0.3);
}

/* ===================== LOADING ===================== */
.loader {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { gap: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .product-detail-image { height: 280px; }
}

/* ===================== PANIER D'ACHAT (DRAWER) ===================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-cart:hover {
    color: var(--text-primary);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: var(--bg-primary);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

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

.cart-item-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cart-item-details .price {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    overflow: hidden;
}

.cart-qty-btn {
    border: none;
    background: transparent;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
}

.cart-qty-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cart-qty-val {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-remove-btn {
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cart-remove-btn:hover {
    opacity: 1;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.5);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cart-summary-row .total-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Badge panier */
.cart-badge {
    background: var(--accent);
    color: white;
    border-radius: 50%;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    position: absolute;
    top: -8px;
    right: -12px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-links li {
    position: relative;
}

/* ===================== CATEGORY PILLS ===================== */
.category-pills {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.category-pill {
    padding: 0.5rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill:hover,
.category-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* ===================== TOAST NOTIFICATIONS ===================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: rgba(12, 12, 18, 0.95);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 280px;
    transform: translateY(20px);
    opacity: 0;
    animation: toast-in 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.toast-success {
    border-left-color: var(--success);
}

.toast.toast-danger {
    border-left-color: var(--danger);
}

@keyframes toast-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===================== WALLET / CAGNOTTE STYLE ===================== */
.wallet-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.08);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.wallet-balance {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1;
    text-shadow: 0 0 40px rgba(108, 92, 231, 0.2);
}

.wallet-actions {
    display: flex;
    gap: 1rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

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

.badge-pending {
    background: rgba(255, 165, 0, 0.1);
    color: orange;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.badge-success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.badge-info {
    background: rgba(108, 92, 231, 0.1);
    color: #a855f7;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

/* Tableaux Premium */
.premium-table-wrapper {
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.premium-table th {
    padding: 1rem;
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
}

.premium-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.premium-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Onglets d'administration */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.admin-tab {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab.active {
    color: var(--accent);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

/* Barre de recherche et de tri */
.search-filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .search-filter-bar {
        grid-template-columns: 1fr;
    }
}

/* ===================== ENTICING ANIMATED BACKGROUND BLOBS ===================== */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: url('/logo.jpg') no-repeat center center;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    animation: float-blob 22s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 129, 0.18) 0%, transparent 80%); /* Vibrant soft warm pink */
    top: -150px;
    left: -150px;
    animation-duration: 28s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 80%); /* Rich warm purple */
    bottom: -200px;
    right: -150px;
    animation-delay: -6s;
    animation-duration: 34s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.12) 0%, transparent 80%); /* Rich vibrant warm orange/gold */
    top: 35%;
    left: 25%;
    animation-delay: -12s;
    animation-duration: 24s;
}

@keyframes float-blob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(60px, 80px) scale(1.15) rotate(180deg);
    }
    100% {
        transform: translate(-30px, -50px) scale(0.9) rotate(360deg);
    }
}

/* ===================== BARRE DE REASSURANCE ===================== */
.reassurance-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.reassurance-icon {
    font-size: 2rem;
    background: var(--accent-glow);
    color: var(--accent);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.reassurance-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.reassurance-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===================== GRAND FOOTER STRUCTURÉ ===================== */
.site-footer {
    background: rgba(12, 12, 18, 0.8);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
    text-decoration: none;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.payment-methods {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.payment-badge {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===================== COMPOSANT AVIS CLIENTS ===================== */
.reviews-section {
    margin-top: 4rem;
    background: rgba(12, 12, 18, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rating-stars {
    color: #ff9f43;
    font-size: 1.2rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.review-card {
    background: rgba(5, 5, 8, 0.7);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.reviewer-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Formulaire d'avis */
.review-form-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.review-form-card h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stars-rating-select {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.star-option {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.1s;
}

.star-option.selected,
.star-option:hover {
    color: #ff9f43;
}

/* ===================== PAGE CHECKOUT LAYOUT ===================== */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-form-col {
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.checkout-summary-col {
    background: rgba(12, 12, 18, 0.7);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 90px;
}

.checkout-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================== CARTE BANCAIRE VIRTUELLLE 3D ===================== */
.credit-card-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 2rem;
}

.credit-card {
    width: 100%;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.credit-card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.25);
}

.card-front {
    background: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
}

.card-back {
    background: linear-gradient(135deg, #a855f7 0%, #6c5ce7 100%);
    transform: rotateY(180deg);
    padding: 1.5rem 0;
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border-radius: 6px;
}

.card-logo {
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    align-self: flex-end;
}

.card-number-display {
    font-size: 1.3rem;
    font-family: monospace;
    letter-spacing: 2px;
    text-align: center;
    margin: 1.5rem 0;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.card-label {
    text-transform: uppercase;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.2rem;
}

.card-val {
    font-weight: 600;
    letter-spacing: 1px;
}

.card-black-stripe {
    width: 100%;
    height: 45px;
    background: #111;
    margin-top: 1rem;
}

.card-cvc-stripe {
    background: white;
    width: 80%;
    height: 35px;
    margin: 1.5rem auto 0;
    border-radius: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 10px;
    color: #111;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 1px;
}

/* ===================== SPLASH SCREEN PREMIUM ===================== */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050508;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    opacity: 1;
    visibility: visible;
}

.splash-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 90%;
}

.splash-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
    animation: splash-pulse 2s infinite alternate ease-in-out;
}

.splash-loader-bar {
    width: 300px;
    max-width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.splash-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: width 0.1s linear;
}

.splash-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
    animation: fade-text 1.5s infinite alternate ease-in-out;
}

@keyframes splash-pulse {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
    }
    100% {
        transform: scale(1.02);
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.35);
    }
}

@keyframes fade-text {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
