@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap");

/* =============================================================================
   CSS VARIABLES
   ============================================================================= */
:root {
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --accent-color: #175d9b;
    --accent-hover: #124a7c;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --glass-bg: #f8fafc;
    --glass-border: #e2e8f0;
    --primary-gradient: linear-gradient(135deg, #175d9b 0%, #3b82f6 100%);
    --font-main: "Outfit", sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md:
        0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:
        0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-alt);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    position: relative;
}

main::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(1.2);
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

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

/* =============================================================================
   HEADER & NAVIGATION
   ============================================================================= */
header {
    background: rgba(255, 255, 255, 1);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1050;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-slogan {
    text-align: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Dropdown utilisateur */
.nav-user-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user {
    color: var(--text-color);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-user:hover {
    color: var(--accent-color);
}

.nav-user svg {
    stroke-width: 2.2px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 200px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-user-container.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: var(--accent-color);
}

.dropdown-item svg {
    opacity: 0.6;
}

.dropdown-item:hover svg {
    opacity: 1;
}

.dropdown-item.text-danger:hover {
    color: #dc2626;
    background: #fff1f2;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

/* Panier nav */
.nav-cart {
    position: relative;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.nav-cart:hover {
    color: var(--accent-color);
}

.nav-cart svg {
    stroke-width: 2.2px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
footer {
    background: #f1f5f9;
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    text-align: left;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-color);
}

.footer-company-info {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-company-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.signature-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signature-link:hover {
    color: var(--accent-color);
}

/* =============================================================================
   COMPOSANTS DE BASE
   ============================================================================= */

/* Glass card */
.glass {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    text-align: center;
}

.card-body {
    padding: 1.5rem;
}

/* Gradient text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =============================================================================
   BOUTONS
   ============================================================================= */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
}

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

.btn-primary:disabled {
    background: var(--text-muted) !important;
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--accent-color);
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
    font-family: var(--font-main);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

.btn-danger {
    background: #e05252;
    color: #ffffff;
}

.btn-danger:hover {
    background: #c83d3d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid #e05252;
    border-radius: 8px;
    color: #e05252;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-main);
    text-decoration: none;
}

.btn-outline-danger:hover {
    background: #e05252;
    color: #ffffff;
}

.btn-sm {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem !important;
}

/* =============================================================================
   FORMULAIRES
   ============================================================================= */
.form-check-input:checked {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

input[type="checkbox"], input[type="radio"] {
    accent-color: var(--accent-color);
}

.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
    margin-left: 4px;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    background: #fff;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(23, 93, 155, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc2626;
}

.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 1.25rem center;
    appearance: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    font-family: var(--font-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(23, 93, 155, 0.1);
    outline: none;
}

/* Erreurs de validation */
.form-errors ul,
.invalid-feedback,
[id$="_errors"] ul {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    color: #dc2626 !important;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
}

.form-errors li {
    margin-bottom: 0.2rem;
}

/* Alertes */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}



.alert-info {
    background: rgba(23, 93, 155, 0.12);
    border: 1px solid #175d9b;
    color: #175d9b;
}

.alert-danger {
    background: rgba(224, 82, 82, 0.12);
    border: 1px solid #e05252;
    color: #e05252;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid #16a34a;
    color: #16a34a;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid #ca8a04;
    color: #ca8a04;
}

/* =============================================================================
   QUANTITÉ
   ============================================================================= */
.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 0.5rem;
    gap: 0.5rem;
    width: fit-content;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.75rem;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
}

.qty-btn:hover:not(:disabled) {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#quantity-select {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    background: transparent;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

#quantity-select::-webkit-outer-spin-button,
#quantity-select::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =============================================================================
   UTILITAIRES
   ============================================================================= */
.text-muted {
    color: var(--text-muted);
}
.accent-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.accent-link:hover {
    filter: brightness(1.2);
    text-decoration: underline;
}

.w-100 {
    width: 100% !important;
}
.h-100 {
    height: 100% !important;
}
.d-none {
    display: none !important;
}
.d-block {
    display: block !important;
}
.d-flex {
    display: flex !important;
}
.d-inline-block {
    display: inline-block !important;
}

.small {
    font-size: 0.875rem;
}
.opacity-75 {
    opacity: 0.75;
}

/* Spacing */
.p-0 {
    padding: 0 !important;
}
.p-1 {
    padding: 0.25rem !important;
}
.p-2 {
    padding: 0.5rem !important;
}
.p-3 {
    padding: 1rem !important;
}
.p-4 {
    padding: 1.5rem !important;
}
.p-5 {
    padding: 3rem !important;
}
.pt-0 {
    padding-top: 0 !important;
}
.pt-1 {
    padding-top: 0.25rem !important;
}
.pt-2 {
    padding-top: 0.5rem !important;
}
.pt-3 {
    padding-top: 1rem !important;
}
.pt-4 {
    padding-top: 1.5rem !important;
}
.pt-5 {
    padding-top: 3rem !important;
}
.pb-0 {
    padding-bottom: 0 !important;
}
.pb-1 {
    padding-bottom: 0.25rem !important;
}
.pb-2 {
    padding-bottom: 0.5rem !important;
}
.pb-3 {
    padding-bottom: 1rem !important;
}
.pb-4 {
    padding-bottom: 1.5rem !important;
}
.pb-5 {
    padding-bottom: 3rem !important;
}
.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}
.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.m-0 {
    margin: 0 !important;
}
.m-1 {
    margin: 0.25rem !important;
}
.m-2 {
    margin: 0.5rem !important;
}
.m-3 {
    margin: 1rem !important;
}
.m-4 {
    margin: 1.5rem !important;
}
.m-5 {
    margin: 3rem !important;
}
.mt-0 {
    margin-top: 0 !important;
}
.mt-1 {
    margin-top: 0.25rem !important;
}
.mt-2 {
    margin-top: 0.5rem !important;
}
.mt-3 {
    margin-top: 1rem !important;
}
.mt-4 {
    margin-top: 1.5rem !important;
}
.mt-5 {
    margin-top: 3rem !important;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.mb-1 {
    margin-bottom: 0.25rem !important;
}
.mb-2 {
    margin-bottom: 0.5rem !important;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.mb-5 {
    margin-bottom: 3rem !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}
.shadow-md {
    box-shadow: var(--shadow-md) !important;
}
.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* --- Typography --- */
.fw-bold    { font-weight: 700 !important; }
.fw-normal  { font-weight: 400 !important; }
.h4         { font-size: 1.25rem !important; font-weight: 700; }
.text-center { text-align: center !important; }
.text-right  { text-align: right !important; }
.text-danger  { color: #dc2626 !important; }
.text-warning { color: #ca8a04 !important; }
.text-success { color: #059669 !important; }

/* --- Display --- */
.d-grid         { display: grid !important; }
.d-inline       { display: inline !important; }
.flex-grow-1    { flex: 1 1 auto !important; }
.flex-shrink-0  { flex-shrink: 0 !important; }
.flex-wrap      { flex-wrap: wrap !important; }

/* --- Margin inline (LTR) --- */
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

/* --- Border radius --- */
.rounded     { border-radius: 0.5rem !important; }
.rounded-lg  { border-radius: 1rem !important; }
.rounded-xl  { border-radius: 1.5rem !important; }

/* --- Responsive display (md = 768px) --- */
@media (min-width: 768px) {
    .d-md-inline        { display: inline !important; }
    .p-md-5             { padding: 3rem !important; }
}

/* --- Button sizes --- */
.btn-lg {
    padding: 0.9rem 2.25rem !important;
    font-size: 1.05rem !important;
    border-radius: 0.65rem !important;
}
.btn-sm {
    padding: 0.35rem 0.85rem !important;
    font-size: 0.82rem !important;
    border-radius: 0.4rem !important;
}

/* --- Form check (checkbox + label) --- */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.form-check-input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent-color);
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    border-radius: 3px;
}
.form-check-label {
    cursor: pointer;
    line-height: 1.4;
}

/* --- Form control size variant --- */
.form-control-sm {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}

/* --- Mentions légales native grid --- */
.mentions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cart-bounce {
    0% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
    80% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

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

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

.cart-badge.bounce {
    animation: cart-bounce 0.5s ease;
}

/* CATALOGUE and HOME styles moved to home.css */

/* FICHE PRODUIT styles moved to product.css */

/* PAGES STATIQUES styles moved to static.css */

/* PANIER styles moved to cart.css */
/* ADRESSES styles moved to address.css */

/* =============================================================================
   CONFIRM MODAL (Globally Used Component)
   ============================================================================= */
.confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.confirm-modal--open {
    display: flex;
}

.confirm-modal__dialog {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modal-in 0.2s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.confirm-modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(224, 92, 92, 0.12);
    color: var(--danger, #e05c5c);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.confirm-modal__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.confirm-modal__message {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.confirm-modal__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

/* Tablette large */
@media (max-width: 1200px) {
    .cart-line {
        grid-template-columns: 80px 1fr 180px auto;
    }
}

/* Tablette */
@media (max-width: 900px) {
    /* Layout panier */
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        display: none;
    }

    /* Ligne panier : 2 colonnes, livraison et actions en pleine largeur */
    .cart-line {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.75rem;
    }

    .cart-line-livraison {
        grid-column: 1 / -1;
        border-top: 1px solid var(--glass-border);
        padding-top: 0.75rem;
    }

    .cart-line-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Home */
    .home-container {
        padding: 1rem 0.75rem;
    }

    .home-header {
        margin-bottom: 1rem;
    }

    .home-header h1 {
        font-size: 1.6rem;
    }

    .home-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .home-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 0.5rem;
    }

    .filter-section {
        padding: 0.6rem 0.8rem;
    }

    .filter-mobile-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .filter-mobile-toggle::after {
        content: "+";
        font-size: 1.2rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }

    .filter-section[open] .filter-mobile-toggle::after {
        content: "−";
        transform: rotate(180deg);
    }

    .filter-title {
        margin-bottom: 0;
    }

    .filter-section[open] .filter-title {
        margin-bottom: 1rem;
    }

    .filter-checkbox-list {
        flex-direction: column;
        padding-top: 0.5rem;
        border-top: 1px solid var(--glass-border);
    }

    .sort-bar {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.8rem;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-card-image {
        height: 151px;
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .product-card-title {
        font-size: 0.9rem;
    }

    /* Fiche produit */
    .product-page-container {
        padding: 1.5rem 1rem;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .main-image-container {
        height: 250px;
        padding: 1rem;
    }

    .product-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .product-price-tag {
        font-size: 1.8rem;
    }

    .product-selection-area {
        padding: 1rem;
        gap: 1rem;
    }

    .product-back-link {
        margin-bottom: 0.75rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .header-slogan {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
        margin-left: -2rem;
    }

    .cart-line {
        grid-template-columns: 60px 1fr;
    }

    .cart-line-image img,
    .cart-line-no-image {
        width: 60px;
        height: 60px;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-left {
        text-align: center;
        order: 2;
    }

    .footer-center {
        text-align: center;
        order: 3;
    }

    .footer-legal {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
        gap: 1.5rem;
        order: 1;
    }

    .static-page-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .static-card {
        padding: 1.5rem;
    }
}

/* Desktop only */
@media (min-width: 993px) {
    .filter-mobile-toggle::after {
        display: none !important;
    }

    .filter-section summary {
        pointer-events: none;
    }
}

@media (min-width: 601px) {
    .home-header h1 {
        display: none;
    }
}

@media (max-width: 1600px) {
    .logo {
        margin-left: -2rem;
    }
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    .d-md-block {
        display: block !important;
    }
    .d-md-flex {
        display: flex !important;
    }
    .d-md-inline-block {
        display: inline-block !important;
    }
}
/* =============================================================================
   CARTE PAGE & USER SHARED
   ============================================================================= */
.cart-back-link {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}
.cart-back-link a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.cart-back-link a:hover {
    color: var(--accent-color) !important;
}



/* PROFILE PAGE and ORDERS PAGE styles moved to user.css */
/* =============================================================================
   RESPONSIVE
   ============================================================================= */
.register-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media(max-width: 1100px) {
    .profile-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .order-grid-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media(max-width: 768px) {
    .register-name-grid { grid-template-columns: 1fr; }
    .cart-back-link { margin-bottom: 1rem; }
    .cart-header { margin-bottom: 1.5rem; }
    .cart-header h1 { font-size: 1.6rem !important; }
    
    /* Specific hide for Profile header as requested */
    .cart-main .cart-header:has(.profile-avatar-circle) { display: none !important; }

    .cart-main { padding: 0 !important; }
    .profile-grid { gap: 1.5rem !important; }
    .section-spacer { margin-top: 2.5rem !important; margin-bottom: 2rem !important; }
    
    .orders-main-content { padding: 0 !important; }
    .order-summary { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .order-status-group {
        width: 100%;
        justify-content: space-between;
        padding-top: 1rem;
        border-top: 1px dashed var(--glass-border);
    }
    .status-label-container { text-align: left; }
    .status-label { font-size: 0.75rem; }

    .section-header-danger { margin-top: 2rem !important; padding-top: 1.5rem !important; }
    .danger-card-flex { justify-content: center !important; text-align: center !important; gap: 1rem !important; }
    .confirm-modal__dialog.glass { padding: 1.5rem !important; }
    .password-requirements { background: rgba(0, 0, 0, 0.04) !important; padding: 1rem !important; border-radius: 0.75rem !important; }
}

/* =============================================================================
   MOBILE FLOATING CART BUTTON (FAB)
   ============================================================================= */
.mobile-cart-fab {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(23, 93, 155, 0.4);
    z-index: 2000;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-cart-fab:active {
    transform: scale(0.9);
}

.mobile-cart-fab .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media(max-width: 1024px) {
    .mobile-cart-fab {
        display: flex !important;
    }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.cart-badge.bounce {
    animation: bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =============================================================================
   PAGINATION
   ============================================================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    display: flex;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--bg-alt);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-alt);
}

/* ── Success Page ────────────────────────────────────────── */
/* Styles moved to success.css */

/* =============================================================================
   FOOTER
   ============================================================================= */
footer {
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-alt);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-color);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-contact-info a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-center {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

@media (max-width: 768px) {
    .footer-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-center {
        order: 3;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 1rem;
    }
}
