﻿@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Poppins:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

:root {
    --bg:           #FBF5EE;
    --surface:      #FFF9F5;
    --surface-soft: #F5E8DA;
    --surface-alt:  #EDD8C6;
    --text:         #2C1A0C;
    --muted:        #7D5C3C;
    --primary:      #C4714A;
    --primary-soft: #D4896A;
    --accent:       #C9A855;
    --gold:         #C9A855;
    --border:       rgba(196,113,74,0.18);
    --shadow:       0 25px 70px rgba(196,113,74,0.10);
    --radius:       28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #FBF5EE 0%, #F0DDD0 40%, #F5E8DA 100%);
    overflow-x: hidden;
}

::selection {
    background: rgba(196,113,74,0.16);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

/* ── Nav overlay (backdrop mobile) ───────────────────────── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,12,4,.25);
    z-index: 48;
}
.nav-overlay.active { display: block; }

/* ── Hamburger button ─────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1.5px solid rgba(196,113,74,.18);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transition: background .2s;
}
.nav-hamburger:hover { background: rgba(196,113,74,.06); }

.ham-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s;
    transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    background: rgba(251,246,240,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(196,113,74,0.12);
    box-shadow: 0 12px 32px rgba(196,113,74,0.06);
}

@media (min-width: 1024px) {
    .site-header { padding: 20px 36px; }
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header .brand img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(196,113,74,0.18);
}

.site-header .brand span {
    font-size: 0.98rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.site-nav a {
    color: var(--text);
    font-weight: 600;
    transition: color 0.25s ease;
}

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

/* ── Mobile nav drawer ────────────────────────────────────── */
@media (max-width: 767px) {
    .nav-hamburger { display: flex; }

    /* Dropdown sous le header (pas de tiroir latéral) */
    .site-header .site-nav {
        position: fixed;
        top: 65px; /* juste sous le header */
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
        padding: 16px;
        background: rgba(251,246,240,.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(196,113,74,.12);
        box-shadow: 0 12px 40px rgba(196,113,74,.14);
        transform: translateY(-110%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        z-index: 49;
        opacity: 0;
        pointer-events: none;
    }

    .site-header .site-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Nav links */
    .site-header .site-nav > a,
    .site-header .site-nav .btn-primary,
    .site-header .site-nav .btn-secondary {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 0.97rem;
        font-weight: 600;
        text-align: center;
        width: 100%;
    }

    .site-header .site-nav > a:not(.btn-primary):not(.btn-secondary) {
        border: 1.5px solid rgba(196,113,74,.1);
        color: var(--text);
    }
    .site-header .site-nav > a:not(.btn-primary):not(.btn-secondary):hover {
        background: rgba(196,113,74,.06);
        color: var(--primary);
    }

    /* Cart icon */
    .site-header .site-nav .nav-cart-btn {
        justify-content: center;
        padding: 12px 16px;
        border: 1.5px solid rgba(196,113,74,.1);
        border-radius: 12px;
        width: 100%;
        font-size: 1rem;
    }

    /* User menu dans le dropdown */
    .user-menu { width: 100%; }
    .user-menu-toggle { width: 100%; justify-content: center; }
    .user-menu-panel {
        position: static;
        box-shadow: none;
        border-radius: 12px;
        min-width: 0;
        width: 100%;
        margin-top: 6px;
        flex-direction: column;
    }
    .user-menu.is-open .user-menu-panel {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(196,113,74,0.16);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,240,247,0.96));
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(196,113,74,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-menu-toggle:hover,
.user-menu.is-open .user-menu-toggle {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(196,113,74,0.12);
}

.user-menu-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: white;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ── Profile page ──────────────────────────────────────── */
.profile-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 3px solid rgba(196,113,74,.2);
    transition: box-shadow .2s;
}
.profile-avatar:hover { box-shadow: 0 0 0 4px rgba(196,113,74,.18); }
.profile-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.38);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    font-size: 1.4rem;
    pointer-events: none;
}
.profile-avatar:hover .profile-avatar-overlay { opacity: 1; }
.profile-avatar input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    border-radius: 50%;
}
.profile-form-wrap {
    max-width: 520px;
    margin: 0 auto;
}
.profile-form-wrap label {
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: .9rem;
    color: #374151;
}
.profile-form-wrap input {
    margin-top: 5px;
}
.profile-section-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.profile-email-hint {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 4px;
    display: block;
}

.user-menu-label {
    font-weight: 600;
    white-space: nowrap;
}

.user-menu-caret {
    color: var(--primary);
    font-size: 0.9rem;
}

.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 240px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(252,248,243,0.99);
    border: 1px solid rgba(196,113,74,0.16);
    box-shadow: 0 24px 60px rgba(196,113,74,0.16);
    backdrop-filter: blur(14px);
}

.user-menu.is-open .user-menu-panel {
    display: flex;
    flex-direction: column;
}

.user-menu-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.user-menu-panel a:hover {
    background: rgba(196,113,74,0.08);
    color: var(--primary);
}

.user-menu-panel .logout-link {
    color: #b42318;
    margin-top: 4px;
    border-top: 1px solid rgba(196,113,74,0.1);
    padding-top: 12px;
}

.user-menu-panel .logout-link:hover {
    background: rgba(180,35,24,0.08);
    color: #9d2016;
}

@media (min-width: 768px) {
    .user-menu-panel {
        right: 0;
        left: auto;
        min-width: 240px;
    }
}

.btn-primary,
.btn-secondary,
.product-card button,
.product-card .btn-secondary {
    border-radius: 999px;
    padding: 14px 26px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary,
.product-card button {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    box-shadow: 0 24px 64px rgba(196,113,74,0.18);
}

.btn-primary:hover,
.product-card button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #A04830, #C4714A);
}

.btn-secondary,
.product-card .btn-secondary {
    background: rgba(196,113,74,0.08);
    color: var(--primary);
    border: 1px solid rgba(196,113,74,0.15);
}

.btn-secondary:hover,
.product-card .btn-secondary:hover {
    background: rgba(196,113,74,0.16);
}

.auth-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background-color: #F5EDE4;
    background-image: url('../../images/cocosecretlogo.png');
    background-repeat: repeat;
    background-size: 50px 50px;
    background-position: center;
}
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245,237,228,0.22);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

.auth-card {
    width: min(540px, 100%);
    background: rgba(251,246,240,0.98);
    border-radius: 24px;
    padding: 28px 20px;
    box-shadow: 0 36px 90px rgba(196,113,74,0.12);
    border: 1px solid rgba(196,113,74,0.12);
    position: relative;
    z-index: 1;
}

@media (min-width: 480px) { .auth-card { padding: 36px 30px; border-radius: 28px; } }
@media (min-width: 768px) { .auth-card { padding: 48px 40px; border-radius: 32px; } }

.auth-card h1 {
    margin-top: 0;
    font-size: 2.4rem;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--text);
    margin-bottom: 24px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo img {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(196,113,74,0.18);
    margin-bottom: 16px;
}

.auth-logo h2 {
    margin: 0;
    font-size: 1.95rem;
    color: var(--primary);
}

.auth-logo p {
    margin: 10px auto 0;
    max-width: 320px;
    color: var(--muted);
    font-size: 0.98rem;
}

.auth-card form {
    display: grid;
    gap: 20px;
}

.auth-card label:not(.payment-option) {
    display: grid;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-card input,
.auth-card textarea,
.auth-card select {
    width: 100%;
    border-radius: 18px;
    border: 2px solid rgba(196,113,74,0.12);
    padding: 14px 18px;
    outline: none;
    background: #FBF6F0;
    transition: all 0.3s ease;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    flex: 1;
    padding-right: 54px;
    min-height: 50px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(252,248,243,0.99);
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--muted);
    padding: 7px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary);
}

.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus {
    border-color: rgba(196,113,74,0.4);
    box-shadow: 0 0 0 8px rgba(196,160,74,0.12);
}

.auth-card button:not(.password-toggle) {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-card p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

.auth-card a {
    color: var(--primary);
    font-weight: 700;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    box-shadow: 0 18px 50px rgba(37, 211, 102, 0.24);
}

.btn-whatsapp:hover {
    background: #1ebf5a;
}

.detail-btn {
    min-width: 120px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 40, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.modal-overlay.visible {
    display: flex;
}

.detail-modal {
    position: relative;
    width: min(760px, 100%);
    max-height: 90vh;
    background: rgba(251,246,240,0.97);
    border-radius: 32px;
    box-shadow: 0 40px 110px rgba(20, 12, 40, 0.22);
    overflow: hidden;
    border: 1px solid rgba(196,113,74,0.12);
    display: flex;
    flex-direction: column;
}

.modal-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 860px) {
    .modal-card {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
}

.modal-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 90vh;
    object-fit: cover;
    display: block;
}

.modal-body {
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(251,246,240,0.92);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(196,113,74,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover { background: #fff; }

.modal-body .product-tag {
    margin-bottom: 2px;
}

.modal-body h3 {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.25;
    color: var(--text);
}

.modal-body .modal-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.97rem;
    flex: 1;
}

.modal-body .modal-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
    padding: 10px 0 4px;
    border-top: 1px solid var(--border);
}

.credentials-box {
    margin-top: 20px;
    border-radius: 20px;
    padding: 18px 20px;
    background: rgba(196,113,74,0.08);
    border: 1px solid rgba(196,113,74,0.15);
    color: var(--text);
}

.credentials-box strong {
    color: var(--primary);
}

.alert {
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.alert-error {
    background: #ffe9f1;
    color: #9f244f;
    border: 1px solid rgba(196,113,74,0.16);
}

.alert-success {
    background: #edf7f0;
    color: #15674a;
    border: 1px solid rgba(16,185,129,0.2);
}

.product-card {
    background: rgba(251,246,240,0.97);
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(196,113,74,0.1);
    border: 1px solid rgba(196,113,74,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto auto;
    gap: 14px;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 90px rgba(196,113,74,0.14);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 24px;
    cursor: zoom-in;
    transition: transform .2s ease;
}
.product-card img:hover { transform: scale(1.03); }

.product-card .product-tag {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(196,113,74,0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.product-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto;
}
.promo-full-section {
    background: rgba(251,109,58,.05);
    border: 1.5px dashed rgba(251,109,58,.35);
    border-radius: 20px;
    padding: 24px 28px;
    margin: 20px 0 10px;
}
.promo-full-label {
    margin: 0 0 14px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}
.promo-input-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.promo-input-row input  { flex: 1; min-width: 0; }
.promo-input-row button { flex-shrink: 0; }
@media (max-width: 480px) {
    .promo-input-row { flex-direction: column; }
    .promo-input-row button { width: 100%; }
    .promo-full-section { padding: 18px 16px; }
}

.product-card .price-promo { color: #e53e3e; }
.product-card .price-original { font-size: .85rem; color: #9ca3af; margin-left: 6px; font-weight: 500; }
.promo-badge {
    position: absolute; top: 12px; left: 12px;
    background: #e53e3e; color: #fff;
    font-size: .75rem; font-weight: 800;
    padding: 3px 10px; border-radius: 20px;
    letter-spacing: .04em;
}
.product-card { position: relative; }

.product-card .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Douceurs intimes ────────────────────────────────────────────── */
.intime-banner {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(198,47,131,.07), rgba(251,109,58,.05));
    border: 1.5px solid rgba(198,47,131,.25);
    border-radius: 18px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}
.intime-banner-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.intime-banner-tag {
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.intime-banner-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}
.intime-banner-text {
    margin: 0;
    color: #374151;
    font-size: .92rem;
    line-height: 1.6;
}
.btn-intime-wa {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #C62F83, #e0559b);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    padding: 13px 20px;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: opacity .2s ease, transform .15s ease, box-shadow .2s ease;
    box-shadow: 0 4px 18px rgba(198,47,131,.25);
}
.btn-intime-wa:hover {
    opacity: .92;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(198,47,131,.35);
}
@media (min-width: 600px) {
    .btn-intime-wa {
        display: inline-block;
        width: auto;
        padding: 12px 28px;
    }
    .intime-banner { flex-direction: row; align-items: center; }
    .intime-banner-text { flex: 1; }
}
.product-card-intime .actions { justify-content: center; }
.product-card-intime .btn-intime-wa { display: block; width: 100%; }

.product-card-intime-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed rgba(198,47,131,.25);
    background: linear-gradient(135deg, rgba(198,47,131,.04), rgba(255,178,200,.07));
}
.product-card-intime-cta .intime-cta-icon { font-size: 2.4rem; margin-bottom: 10px; }
.product-card-intime-cta h3 { color: var(--primary); margin-bottom: 8px; }
.product-card-intime-cta p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* ── Animations cartes produits (slide alternée gauche/droite) ─── */
#product-container .product-card,
#featured-container .product-card { opacity: 0; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-52px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(52px); }
    to   { opacity: 1; transform: translateX(0); }
}
.product-card.slide-in-left  { animation: slideInLeft  .55s cubic-bezier(.22,.68,0,1.1) forwards; }
.product-card.slide-in-right { animation: slideInRight .55s cubic-bezier(.22,.68,0,1.1) forwards; }

.product-card .actions button,
.product-card .actions a {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}

@media (min-width: 480px) { .grid-layout { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-layout { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
@media (min-width: 1200px) { .grid-layout { grid-template-columns: repeat(4, 1fr); } }

/* ── Cart page layout ──────────────────────────────────────── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    padding-bottom: 86px;
}

@media (min-width: 860px) {
    .cart-layout {
        grid-template-columns: 1.45fr 1fr;
        gap: 32px;
        padding-bottom: 0;
    }
}

.cart-items-card,
.cart-form-card {
    padding: 32px;
}

/* ── Cart mobile sticky bar (always defined, displayed on small screens) ── */
.cart-mobile-bar {
    display: none;
}

/* Mobile: stacked cart cards */
.cart-items-card {
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px;
}

.cart-form-card {
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 20px 16px 32px;
}

/* Show sticky bar on mobile */
.cart-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    gap: 14px;
    box-shadow: 0 -8px 32px rgba(196,113,74,0.10);
}

.cart-mobile-bar .cmb-total {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.cart-mobile-bar .cmb-label {
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cart-mobile-bar .cmb-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}
.cart-mobile-bar .cmb-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 26px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 4px 18px rgba(196,113,74,0.28);
    transition: opacity .15s;
}
.cart-mobile-bar .cmb-btn:active { opacity: .8; }

/* Payment options: compact on small screens */
.payment-option-inner { gap: 10px; }
.pay-icon { width: 38px; height: 38px; font-size: 1.1rem; }

/* Restore desktop layout */
@media (min-width: 860px) {
    .cart-mobile-bar { display: none; }
    .cart-items-card { border-radius: var(--radius); border-bottom: none; padding: 32px; }
    .cart-form-card  { border-radius: var(--radius); padding: 32px; }
    .payment-option-inner { gap: 14px; }
    .pay-icon { width: 46px; height: 46px; font-size: 0.82rem; }
}

/* ── Animations globales ────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
    padding: 48px 20px 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    background: rgba(251,246,240,0.82);
    border: 1px solid rgba(196,113,74,0.14);
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(196,113,74,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 72px 40px 48px;
        grid-template-columns: 1.3fr 0.9fr;
        border-radius: 40px;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .hero { padding: 100px 48px 60px; }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 670px;
    min-width: 0;
}

.hero-content h1,
.hero-content p { margin: 0; }

.hero-eyebrow {
    display: inline-flex;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(198,47,131,.1);
    color: var(--primary);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    animation: fadeInUp .5s ease both;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.08;
    font-weight: 800;
    word-break: break-word;
    background: linear-gradient(135deg, #C62F83 0%, #FB6D3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp .6s .1s ease both;
}

.hero-divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, #C62F83, #FB6D3A);
    border-radius: 99px;
    animation: fadeInUp .5s .2s ease both;
}

.hero-desc {
    color: #374151;
    font-size: 1.05rem;
    max-width: 540px;
    line-height: 1.8;
    animation: fadeInUp .6s .25s ease both;
}

.hero-actions {
    animation: fadeInUp .6s .35s ease both;
}

.hero-btn-main {
    font-size: 1rem;
    padding: 14px 28px;
}

.hero p { color: var(--muted); max-width: 580px; line-height: 1.75; }

.hero-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(196,113,74,0.16);
    animation: float 4s ease-in-out infinite;
}

@media (min-width: 480px) { .hero-img { height: 340px; } }
@media (min-width: 768px) { .hero-img { height: 440px; border-radius: 32px; } }
@media (min-width: 1024px) { .hero-img { height: 540px; } }

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

.page-content {
    padding: 24px 16px 56px;
}

@media (min-width: 600px) { .page-content { padding: 32px 24px 64px; } }
@media (min-width: 1024px) { .page-content { padding: 40px 36px 70px; } }

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

.section-title h2 {
    margin-bottom: 12px;
}

.section-title p {
    color: var(--muted);
    font-size: 1rem;
}

.hero-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-small h2 {
    margin: 0 0 6px;
    font-size: 1.8rem;
}

.hero-small p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.catalog-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}

.catalog-search input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 22px;
    border: 2px solid rgba(196,113,74,0.14);
    background: rgba(255,255,255,0.9);
    box-shadow: inset 0 6px 14px rgba(196,113,74,0.06);
}

.catalog-search input:focus {
    border-color: rgba(196,113,74,0.4);
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-filters button {
    border: 1.5px solid rgba(196,113,74,0.12);
    background: rgba(251,246,240,0.97);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
}

.category-filters button.active,
.category-filters button:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: white;
    border-color: transparent;
}

.hero-card,
.form-section,
.product-card,
.stat-card,
.table-card {
    background: rgba(251,246,240,0.97);
    border-radius: 32px;
    border: 1px solid rgba(196,113,74,0.08);
    box-shadow: 0 26px 86px rgba(196,113,74,0.08);
}

.cta-card {
    margin-top: 50px;
    background: linear-gradient(135deg, #e8f8f0, #d4f1e4);
    border: 1.5px solid rgba(37, 211, 102, 0.3);
    border-radius: 28px;
    padding: 36px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 16px 48px rgba(37, 211, 102, 0.12);
}

.cta-card h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #145c35;
}

.cta-card p {
    margin: 0;
    color: #2d6e4e;
    font-size: 0.97rem;
}

.cta-card a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.cta-card a:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
}

.admin-page {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.98)), url('../images/themin.jpeg');
    background-size: cover;
    background-position: center;
}

/* Admin nav: horizontal scroll on mobile (no hamburger needed) */
.admin-page .site-header {
    flex-wrap: wrap;
    gap: 10px;
}
.admin-page .site-header nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 4px;
}
.admin-page .site-header nav::-webkit-scrollbar { display: none; }
.admin-page .site-header nav a {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: .83rem;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid rgba(196,113,74,.1);
}
.admin-page .site-header nav a:hover { background: rgba(196,113,74,.06); }
.admin-page .site-header nav a.active { background: rgba(196,113,74,.1); color: var(--primary); }

@media (min-width: 768px) {
    .admin-page .site-header { flex-wrap: nowrap; }
    .admin-page .site-header nav { width: auto; overflow-x: visible; flex-wrap: wrap; padding-bottom: 0; }
    .admin-page .site-header nav a { font-size: inherit; padding: inherit; border: none; border-radius: 0; }
    .admin-page .site-header nav a:hover { background: none; }
}

.admin-page .page-content {
    padding: 24px 16px 56px;
}

@media (min-width: 600px) { .admin-page .page-content { padding: 32px 24px 64px; } }
@media (min-width: 1024px) { .admin-page .page-content { padding: 40px 36px 70px; } }

.page-banner,
.page-section {
    background: rgba(251,246,240,0.97);
    border-radius: 32px;
    padding: 36px 32px;
    box-shadow: 0 24px 80px rgba(16,24,40,0.08);
    border: 1px solid rgba(196,113,74,0.12);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.link-card {
    display: block;
    padding: 26px;
    border-radius: 24px;
    background: rgba(251,246,240,0.97);
    border: 1px solid rgba(196,113,74,0.12);
    box-shadow: 0 20px 50px rgba(16,24,40,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,1);
}

.link-card h4 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.link-card p {
    margin: 0;
    color: var(--muted);
}

.table-card {
    padding: 28px 26px;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.dashboard-table {
    margin-top: 18px;
}

th,
td {
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.08);
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(196,113,74,0.08);
    color: var(--text);
    font-weight: 700;
}

.order-items {
    max-width: 420px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text);
}

.order-status {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.order-status.pending {
    background: rgba(251,146,60,0.16);
    color: #d97706;
}

.order-status.paid {
    background: rgba(34,197,94,0.14);
    color: #15803d;
}

.order-status.cancelled {
    background: rgba(244,63,94,0.14);
    color: #b91c1c;
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.product-list-header h2 {
    margin: 0 0 8px;
    font-size: 2.2rem;
}

.product-list-header p {
    margin: 0;
    color: var(--muted);
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: rgba(251,246,240,0.96);
    border: 1px dashed rgba(196,113,74,0.2);
    border-radius: 28px;
    color: var(--muted);
}

/* =====================================================
   CART ICON — nav
   ===================================================== */

.nav-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.18s;
    color: var(--text);
}

.nav-cart-btn:hover {
    background: rgba(196,113,74,0.09);
    color: var(--primary);
}

.nav-cart-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
    border: 2px solid #fff;
}

/* =====================================================
   PAYMENT METHODS — panier.php
   ===================================================== */

.pay-section-label {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
    margin: 0 0 12px;
    display: block;
}

.payment-methods {
    display: grid;
    gap: 10px;
    margin-bottom: 6px;
}

.payment-option {
    cursor: pointer;
    display: block;
}

.payment-option input[type="radio"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    margin: 0;
}

.payment-option-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 2px solid rgba(196,113,74,0.13);
    border-radius: 16px;
    background: #FBF6F0;
    transition: all 0.2s ease;
}

.payment-option:hover .payment-option-inner {
    border-color: rgba(196,113,74,0.32);
}

.payment-option input:checked + .payment-option-inner {
    border-color: var(--primary);
    background: rgba(196,113,74,0.04);
    box-shadow: 0 0 0 4px rgba(196,113,74,0.09);
}

.pay-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.pay-icon.pay-mtn  { background: transparent; padding: 0; overflow: hidden; }
.pay-icon.pay-om   { background: transparent; padding: 0; overflow: hidden; }
.pay-icon.pay-wa   { background: #25D366; overflow: hidden; }
.pay-logo-img      { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pay-icon.pay-card { background: linear-gradient(135deg, #5C4030, #A07828); color: #fff; font-size: 1.35rem; }

.pay-label { flex: 1; }
.pay-label strong { display: block; font-size: 0.93rem; color: var(--text); font-weight: 700; }
.pay-label small   { font-size: 0.79rem; color: var(--muted); }

.pay-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(196,113,74,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.18s;
}
.pay-radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.18s;
}
.payment-option input:checked + .payment-option-inner .pay-radio-dot {
    border-color: var(--primary);
}
.payment-option input:checked + .payment-option-inner .pay-radio-dot::after {
    background: var(--primary);
}

/* Carte bancaire — coming soon banner */
.card-coming-soon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.card-coming-soon-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 1px; }
.card-coming-soon strong { display: block; color: #92400e; font-size: .95rem; margin-bottom: 4px; }
.card-coming-soon p { margin: 0; color: #78350f; font-size: .85rem; line-height: 1.5; }

/* Payment detail panels */
.pay-details {
    display: none;
    padding: 16px 0 4px;
}
.pay-details.active {
    display: block;
    animation: paySlideIn 0.22s ease;
}

@keyframes paySlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pay-info-box {
    display: flex;
    gap: 12px;
    border-radius: 14px;
    padding: 14px 16px;
    align-items: flex-start;
    margin-top: 4px;
}
.pay-info-box.info-pink   { background: rgba(196,113,74,0.07); }
.pay-info-box.info-yellow { background: rgba(255,204,0,0.14); }
.pay-info-box.info-orange { background: rgba(255,102,0,0.09); }
.pay-info-box.info-green  { background: rgba(37,211,102,0.09); }
.pay-info-box.info-purple { background: rgba(196,113,74,0.08); }

.pay-info-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.pay-info-box p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* Phone input with country flag */
.phone-field-wrap {
    display: flex;
    align-items: stretch;
    border: 2px solid rgba(196,113,74,0.13);
    border-radius: 18px;
    overflow: hidden;
    background: #FBF6F0;
    transition: all 0.2s;
}
.phone-field-wrap:focus-within {
    border-color: rgba(196,113,74,0.4);
    box-shadow: 0 0 0 6px rgba(196,160,74,0.12);
}
.phone-prefix {
    padding: 0 14px;
    font-size: 0.87rem;
    color: var(--muted);
    background: rgba(196,113,74,0.04);
    border-right: 2px solid rgba(196,113,74,0.1);
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 600;
    gap: 6px;
}
.phone-field-wrap input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    padding: 14px 16px;
    outline: none;
}

/* Card fields */
.card-field-wrap {
    display: flex;
    align-items: stretch;
    border: 2px solid rgba(196,113,74,0.13);
    border-radius: 18px;
    overflow: hidden;
    background: #FBF6F0;
    transition: all 0.2s;
}
.card-field-wrap:focus-within {
    border-color: rgba(196,113,74,0.4);
    box-shadow: 0 0 0 6px rgba(196,160,74,0.12);
}
.card-field-icon {
    padding: 0 14px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    background: rgba(108,63,197,0.06);
    border-right: 2px solid rgba(196,113,74,0.1);
}
.card-field-wrap input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    padding: 14px 16px;
    outline: none;
}

.card-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.cvv-wrap { position: relative; }
.cvv-wrap input { padding-right: 42px; }
.cvv-hint {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(196,113,74,0.18);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.card-brands {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}
.card-brand {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
}
.card-brand.visa   { background: #1a1f71; color: #fff; }
.card-brand.mc     { background: linear-gradient(90deg,#eb001b 50%,#f79e1b 50%); color: #fff; }

.pay-hint-text {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 4px 0 0;
    display: block;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: #1c130a;
    color: rgba(255,255,255,.78);
    margin-top: 64px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.1fr 1.2fr;
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 48px 48px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Brand column */
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-brand-logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(196,113,74,.4);
}
.footer-brand-logo span {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .02em;
}
.footer-tagline {
    font-size: .85rem;
    line-height: 1.75;
    color: rgba(255,255,255,.5);
    margin: 0 0 20px;
}

/* Contact links in brand col */
.footer-contact-block { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .84rem;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .15s;
}
.footer-contact-link:hover { color: var(--primary-soft); }
.footer-contact-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }

/* Social buttons */
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: filter .2s, transform .2s;
    text-decoration: none;
    flex-shrink: 0;
}
.footer-social-btn svg { width: 17px; height: 17px; fill: #fff; }
.footer-social-btn:hover { filter: brightness(.85); transform: translateY(-2px); }

/* Couleurs officielles des réseaux */
.footer-social-fb { background: #1877F2; }
.footer-social-ig { background: radial-gradient(circle at 30% 110%, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.footer-social-tt { background: #010101; }
.footer-social-wa { background: #25D366; }

/* Bouton WhatsApp landing */
.btn-wa-logo { width: 24px; height: 24px; object-fit: cover; border-radius: 6px; display: block; flex-shrink: 0; }

/* Icône WA lien contact footer */
.footer-wa-icon { width: 18px; height: 18px; object-fit: cover; border-radius: 4px; vertical-align: middle; flex-shrink: 0; }

/* Nav columns */
.footer-col h4 {
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 18px;
}
.footer-col a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.55);
    font-size: .86rem;
    text-decoration: none;
    margin-bottom: 11px;
    transition: color .15s;
    line-height: 1.4;
}
.footer-col a:hover { color: var(--primary-soft); }
.footer-col-icon { width: 14px; height: 14px; flex-shrink: 0; opacity: .6; }

/* Badges */
.footer-badge-group { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.footer-badge {
    display: inline-block;
    font-size: .76rem;
    color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 4px 12px;
    width: fit-content;
}

/* Newsletter */
.footer-newsletter-col p.footer-nl-sub {
    font-size: .82rem;
    color: rgba(255,255,255,.45);
    line-height: 1.65;
    margin: 0 0 16px;
}
.footer-nl-form { display: flex; gap: 0; }
.footer-nl-form input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #fff;
    font-size: .84rem;
    outline: none;
    transition: border-color .2s;
}
.footer-nl-form input::placeholder { color: rgba(255,255,255,.3); }
.footer-nl-form input:focus { border-color: var(--primary); }
.footer-nl-form button {
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 12px 12px 0;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.footer-nl-form button:hover { background: #A04830; }

/* Bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 48px;
    font-size: .76rem;
    color: rgba(255,255,255,.28);
}
.footer-bottom strong { color: rgba(255,255,255,.5); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    color: rgba(255,255,255,.28);
    text-decoration: none;
    transition: color .15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }
.footer-credit {
    text-align: center;
    padding: 8px 48px 16px;
    font-size: .7rem;
    color: rgba(255,255,255,.18);
    letter-spacing: .02em;
}
.footer-credit strong { color: rgba(255,255,255,.32); font-weight: 600; }
.footer-credit span   { color: rgba(255,255,255,.28); font-style: italic; }
.footer-credit-link {
    color: rgba(255,255,255,.3);
    text-decoration: none;
    transition: color .15s;
}
.footer-credit-link:hover { color: rgba(255,255,255,.65); }
.footer-credit-wa { color: rgba(161,243,172,.35); }
.footer-credit-wa:hover { color: rgba(161,243,172,.75); }

@media (max-width: 1100px) {
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-newsletter-col { grid-column: span 2; }
}
@media (max-width: 680px) {
    .footer-inner { grid-template-columns: 1fr 1fr; padding: 40px 24px 32px; gap: 28px; }
    .footer-newsletter-col { grid-column: 1 / -1; }
    .footer-bottom { padding: 16px 24px; flex-direction: column; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

/* ================================================================
   TABS (dashboard client + landing)
   ================================================================ */
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(196,113,74,.14);
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 13px 24px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
    letter-spacing: .01em;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: tabFadeIn .25s ease; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ================================================================
   TESTIMONIAL CARDS
   ================================================================ */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.testi-card {
    background: rgba(255,255,255,.97);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(196,113,74,.09);
    border: 1px solid rgba(196,113,74,.07);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}
.testi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 32px 80px rgba(196,113,74,.15);
}

.testi-card-media {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #F2E8DC 0%, #E4D0B8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.8rem;
    flex-shrink: 0;
}
.testi-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform .2s ease;
}
.testi-card-media img:hover { transform: scale(1.03); }

/* ── Lightbox temoignages ── */
.testi-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 20px;
    box-sizing: border-box;
}
.testi-lightbox-overlay.open { display: flex; }
.testi-lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    cursor: default;
}
.testi-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    background: rgba(0,0,0,.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.testi-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.testi-type-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}
.testi-type-tag.photo   { background: #fef9c3; color: #854d0e; }
.testi-type-tag.comment { background: #f0fdf4; color: #15803d; }

.testi-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: .06em; }

.testi-name {
    font-weight: 700;
    font-size: .97rem;
    margin: 0;
    color: var(--text);
}

.testi-msg {
    font-size: .87rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.testi-date { font-size: .73rem; color: #bbb; margin-top: 4px; }

/* ================================================================
   STAR RATING INPUT
   ================================================================ */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.star-rating input { display: none; }
.star-rating label { font-size: 1.9rem; color: #d1d5db; cursor: pointer; transition: color .1s; line-height: 1; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--gold); }

/* ================================================================
   AVIS FORM
   ================================================================ */
.avis-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255,255,255,.97);
    border-radius: 32px;
    padding: 36px;
    box-shadow: var(--shadow);
}
.avis-form-wrap h3 { margin: 0 0 6px; font-size: 1.3rem; }
.avis-form-wrap .avis-sub { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }

/* ================================================================
   LANDING — section témoignages
   ================================================================ */
.landing-testi-section {
    margin-top: 16px;
    padding: 0;
}
.landing-testi-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
}
.landing-testi-section .section-sub {
    color: var(--muted);
    font-size: .92rem;
    margin: 0 0 28px;
}

/* ================================================================
   ADMIN TEMOIGNAGES
   ================================================================ */
.testi-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.testi-admin-card {
    background: #FBF6F0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    position: relative;
}
.testi-admin-card .t-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #F2E8DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.testi-admin-card .t-img img { width: 100%; height: 100%; object-fit: cover; }
.testi-admin-card .t-body { padding: 18px; }
.testi-admin-card .t-name { font-weight: 700; font-size: .95rem; margin: 0 0 6px; }
.testi-admin-card .t-msg  { font-size: .84rem; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.testi-admin-card .t-meta { font-size: .76rem; color: #aaa; margin-bottom: 12px; }
.testi-admin-card .t-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.status-pill.approved   { background: #d1fae5; color: #065f46; }
.status-pill.pending    { background: #fef3c7; color: #92400e; }
.status-pill.inactive   { background: #f3f4f6; color: #6b7280; }
.upload-zone {
    border: 2.5px dashed rgba(196,113,74,.3);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(196,113,74,.04);
}
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.upload-preview {
    margin-top: 12px;
    max-height: 180px;
    border-radius: 14px;
    object-fit: cover;
    display: none;
    width: 100%;
}

/* ================================================================
   ORDER CARDS (user dashboard)
   ================================================================ */
.order-card {
    background: #FBF6F0;
    border-radius: 22px;
    padding: 24px 28px;
    box-shadow: 0 4px 24px rgba(196,113,74,.07);
    border: 1.5px solid rgba(196,113,74,.08);
    margin-bottom: 16px;
    transition: box-shadow .2s;
}
.order-card:hover { box-shadow: 0 8px 36px rgba(196,113,74,.13); }

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.order-card-id {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}
.order-card-date {
    font-size: .8rem;
    color: var(--muted);
}
.order-card-items {
    font-size: .88rem;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.8;
}
.order-card-items li {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.order-card-items li::before { content: '•'; color: var(--primary); font-weight:700; }

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(196,113,74,.08);
}
.order-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: capitalize;
}
.status-badge::before { content: ''; width:7px; height:7px; border-radius:50%; flex-shrink:0; }

.status-badge.pending     { background:#fef3c7; color:#92400e; }
.status-badge.pending::before { background:#f59e0b; }
.status-badge.paid        { background:#d1fae5; color:#065f46; }
.status-badge.paid::before    { background:#10b981; }
.status-badge.confirmed   { background:#dbeafe; color:#1e40af; }
.status-badge.confirmed::before { background:#3b82f6; }
.status-badge.processing  { background:#ede9fe; color:#5b21b6; }
.status-badge.processing::before { background:#8b5cf6; }
.status-badge.shipped     { background:#fce7f3; color:#9d174d; }
.status-badge.shipped::before { background:#ec4899; box-shadow:0 0 0 2px rgba(236,72,153,.3); animation: pulse-dot 1.4s infinite; }
.status-badge.delivered   { background:#d1fae5; color:#065f46; }
.status-badge.delivered::before { background:#059669; }
.status-badge.cancelled   { background:#f3f4f6; color:#4b5563; }
.status-badge.cancelled::before { background:#9ca3af; }

@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(236,72,153,.4); }
    50%      { box-shadow: 0 0 0 5px rgba(236,72,153,0); }
}

.orders-empty {
    text-align: center;
    padding: 48px 24px;
    background: #FBF6F0;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(196,113,74,.06);
}
.orders-empty .empty-icon { font-size: 3.5rem; margin-bottom: 14px; }
.orders-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 20px;
}
.orders-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 1.4s infinite;
}

/* ================================================================
   RESPONSIVE — MOBILE-FIRST BREAKPOINTS
   ================================================================ */

/* --- Base mobile defaults (< 480px) --- */
.hero-small { flex-direction: column; align-items: flex-start; }
.hero-small .btn-primary { width: 100%; text-align: center; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.hero-actions a { width: 100%; text-align: center; justify-content: center; }
.product-card { padding: 18px; }
.product-card img { height: 200px; }
.catalog-tools { grid-template-columns: 1fr; gap: 14px; }
.product-list-header { flex-direction: column; align-items: stretch; }
.product-list-header a { width: 100%; }
.card-row-2 { grid-template-columns: 1fr; }
table { min-width: 0; font-size: .85rem; }
th, td { padding: 10px 12px; }
.page-banner, .page-section { padding: 22px 18px; border-radius: 20px; }
.footer-inner { padding: 36px 18px 28px; gap: 22px; }

/* --- Small phones and up (≥ 480px) --- */
@media (min-width: 480px) {
    .product-card { padding: 20px; }
    .product-card img { height: 220px; }
    .hero-actions { flex-direction: row; flex-wrap: wrap; }
    .hero-actions a { width: auto; }
    .card-row-2 { grid-template-columns: 1fr 1fr; }
}

/* --- Tablets and up (≥ 768px) --- */
@media (min-width: 768px) {
    .hero-small { flex-direction: row; align-items: center; }
    .hero-small .btn-primary { width: auto; }
    .catalog-tools { grid-template-columns: 1fr auto; }
    .product-card { padding: 24px; }
    .product-card img { height: 240px; }
    .product-list-header { flex-direction: row; align-items: center; }
    .product-list-header a { width: auto; }
    table { min-width: 720px; font-size: 1rem; }
    th, td { padding: 14px 16px; }
    .page-banner, .page-section { padding: 36px 32px; border-radius: 32px; }
    .footer-inner { padding: 60px 36px 48px; }
}

/* --- Desktop (≥ 1024px) --- */
@media (min-width: 1024px) {
    .footer-inner { padding: 60px 48px 48px; }
}


