/* ============================================================
   Digital Kpadjalê — style.css
   Thème boutique en ligne : responsive, effets 3D au survol,
   animations d'apparition, palette reprise du logo (bleu nuit /
   turquoise / orange).
   ============================================================ */
:root {
    --primary: #16224a;
    --primary-light: #24356f;
    --teal: #2fb6c4;
    --teal-dark: #1f8f9c;
    --accent: #dd7e29;
    --accent-dark: #b8621a;
    --success: #2b9348;
    --danger: #e63946;
    --warning: #f4a300;
    --bg: #f4f6f9;
    --card-bg: #ffffff;
    --text: #1f2a37;
    --text-light: #6b7a8f;
    --border: #e2e8f0;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(22,34,74,.07);
    --shadow-md: 0 12px 28px rgba(22,34,74,.14);
    --shadow-lg: 0 26px 52px rgba(22,34,74,.22);
    --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}
a { color: var(--primary-light); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Animations globales ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulseRing { 0% { transform: scale(.9); opacity: .8; } 70% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- Boutons (style 3D) ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 10px;
    padding: 11px 20px; font-size: 14.5px; cursor: pointer; text-decoration: none; font-weight: 700;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
    box-shadow: 0 3px 0 rgba(0,0,0,.14), 0 8px 18px rgba(22,34,74,.16);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0,0,0,.14), 0 14px 26px rgba(22,34,74,.22); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.14), 0 4px 10px rgba(22,34,74,.18); }
.btn-primary { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; }
.btn-accent { background: linear-gradient(135deg, #ea9349, var(--accent)); color: #fff; }
.btn-teal { background: linear-gradient(135deg, #4bd0dd, var(--teal)); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); box-shadow: none; }
.btn-outline:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-light); }
.btn-danger { background: linear-gradient(135deg, #ef5a67, var(--danger)); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---- Header / navigation ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 12px rgba(22,34,74,.05); }
.site-header-top { background: var(--primary); color: #cfe3ff; font-size: 12.5px; }
.site-header-top-inner { max-width: 1240px; margin: 0 auto; padding: 6px 20px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.site-header-top a { color: #fff; font-weight: 600; }
.site-header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.site-logo img { height: 46px; width: auto; }
.site-logo span { font-size: 18px; line-height: 1.1; }
.site-logo small { display: block; font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .04em; }

.search-bar { flex: 1; display: flex; max-width: 560px; position: relative; }
.search-bar input { flex: 1; padding: 11px 16px; border: 2px solid var(--border); border-radius: 10px 0 0 10px; font-size: 14px; transition: border-color .15s ease; }
.search-bar input:focus { outline: none; border-color: var(--teal); }
.search-bar button { border: none; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; padding: 0 18px; border-radius: 0 10px 10px 0; cursor: pointer; font-size: 16px; }
.search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--shadow-md); z-index: 70; max-height: 380px; overflow-y: auto; display: none; }
.search-suggestions.is-open { display: block; }
.search-suggestions a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--text); border-bottom: 1px solid var(--border); font-size: 13.5px; }
.search-suggestions a:hover { background: var(--bg); }
.search-suggestions img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--bg); flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: 11px; font-weight: 600; transition: background .15s ease; }
.icon-link:hover { background: var(--bg); }
.icon-link .icon { font-size: 20px; }
.icon-badge { position: absolute; top: 2px; right: 2px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; border-radius: 20px; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px; width: 42px; height: 42px; font-size: 19px; color: var(--primary); cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; }

.site-nav-cats { background: var(--primary); }
.site-nav-cats-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav-cats a { color: #d8e4ff; padding: 11px 14px; font-size: 13.5px; font-weight: 600; border-bottom: 3px solid transparent; transition: color .15s ease, border-color .15s ease; }
.site-nav-cats a:hover, .site-nav-cats a.active { color: #fff; border-bottom-color: var(--accent); }

@media (max-width: 900px) {
    .search-bar { order: 3; max-width: none; width: 100%; margin-top: 10px; }
    .site-header-inner { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
    .nav-toggle { display: flex; }
    .site-nav-cats { display: none; }
    .site-nav-cats.is-open { display: block; }
    .site-nav-cats-inner { flex-direction: column; padding: 6px 14px; }
    .site-header-top-inner { padding: 6px 14px; font-size: 11.5px; }
    .header-actions { gap: 2px; }
}
@media (max-width: 480px) {
    .site-logo span { font-size: 15px; }
    .site-logo img { height: 38px; }
    .icon-link { padding: 6px; font-size: 0; }
    .icon-link .icon { font-size: 19px; }
    .icon-link .icon-badge { top: 0; right: 0; }
    .header-actions { gap: 0; }
}

.site-main { max-width: 1240px; margin: 0 auto; padding: 26px 20px 60px; }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(120deg, var(--primary), var(--primary-light) 60%, var(--teal-dark));
    color: #fff; border-radius: var(--radius); padding: 46px 36px; margin-bottom: 30px;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden; animation: fadeInUp .6s var(--ease) both;
}
.hero::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 88% 15%, rgba(221,126,41,.30), transparent 55%); }
.hero::before { content:''; position:absolute; width:260px; height:260px; border-radius:50%; background: rgba(47,182,196,.18); right:-60px; bottom:-90px; animation: floatY 5s ease-in-out infinite; }
.hero h1 { font-size: 30px; margin: 0 0 10px; position: relative; }
.hero p { color: #cfe0f0; margin: 0 0 20px; position: relative; max-width: 560px; }
.hero-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Grille catégories (accueil) ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; margin-bottom: 32px; }
.cat-card {
    background: var(--card-bg); border-radius: var(--radius); padding: 20px 14px; text-align: center;
    box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    color: var(--text); border: 1px solid var(--border);
}
.cat-card:hover { transform: translateY(-6px) rotateX(4deg) scale(1.02); box-shadow: var(--shadow-md); }
.cat-card .cat-icon { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 10px; background: linear-gradient(135deg, var(--teal), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; }
.cat-card h3 { font-size: 14px; margin: 0; }

/* ---- Grille produits ---- */
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 16px; }
.section-title h1, .section-title h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-title h1::before, .section-title h2::before { content: ''; width: 6px; height: 22px; background: var(--accent); border-radius: 4px; display: inline-block; }

.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.carte-produit {
    background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s var(--ease);
    display: flex; flex-direction: column; position: relative; will-change: transform;
}
.carte-produit:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow-lg); }
.carte-produit .photo-wrap { position: relative; height: 180px; overflow: hidden; background: #eef1f5; }
.carte-produit .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.carte-produit:hover .photo-wrap img { transform: scale(1.08) rotate(.5deg); }
.carte-produit .corps { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.carte-produit .cat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-light); font-weight: 700; }
.carte-produit .titre { font-weight: 700; font-size: 14.5px; color: var(--text); line-height: 1.3; }
.carte-produit .prix-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.carte-produit .prix { font-weight: 800; color: var(--primary); font-size: 17px; }
.carte-produit .prix-barre { text-decoration: line-through; color: var(--text-light); font-size: 12.5px; }
.carte-produit .btn { margin-top: 10px; }
.badge-promo { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 20px; z-index: 2; box-shadow: var(--shadow-sm); }
.badge-rupture { position: absolute; top: 10px; right: 10px; background: rgba(31,42,55,.85); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; z-index: 2; }

/* ---- Filtres / recherche ---- */
.filtres-shop { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; align-items: end; margin-bottom: 24px; }
.filtres-shop label { display: block; font-size: 12px; font-weight: 700; color: var(--text-light); margin-bottom: 4px; text-transform: uppercase; }
.filtres-shop select, .filtres-shop input { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }

/* ---- Fiche produit : carrousel d'images ---- */
.fiche-produit { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-bottom: 34px; }
@media (max-width: 860px) { .fiche-produit { grid-template-columns: 1fr; } }

.carrousel-produit { position: relative; border-radius: var(--radius); overflow: hidden; background: #0d1b33; box-shadow: var(--shadow-md); }
.carrousel-viewport { position: relative; width: 100%; height: 420px; }
.carrousel-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.carrousel-slide.active { opacity: 1; visibility: visible; }
.carrousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carrousel-prev, .carrousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(13,27,51,.55); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; z-index: 3; transition: background .15s ease; }
.carrousel-prev:hover, .carrousel-next:hover { background: rgba(13,27,51,.85); }
.carrousel-prev { left: 12px; } .carrousel-next { right: 12px; }
.carrousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.carrousel-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.carrousel-dot.active { background: var(--accent); }
.carrousel-vignettes { display: flex; gap: 8px; padding: 10px; background: #fff; overflow-x: auto; }
.carrousel-vignettes img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: border-color .15s ease, transform .15s ease; }
.carrousel-vignettes img:hover { transform: translateY(-2px); }
.carrousel-vignettes img.active { border-color: var(--accent); }
@media (max-width: 640px) { .carrousel-viewport { height: 280px; } }

/* ---- Bande d'aperçu (diaporama) — page d'accueil ---- */
.bande-apercu { margin-bottom: 26px; }
.bande-apercu .carrousel-viewport { height: 320px; }
.bande-apercu .carrousel-slide { display: block; }
.bande-apercu-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 20px; background: linear-gradient(to top, rgba(13,27,51,.88), transparent); color: #fff; }
.bande-apercu-info h3 { margin: 0 0 6px; font-size: 22px; }
.bande-apercu-info .prix { font-size: 18px; font-weight: 800; color: #fff; }
@media (max-width: 640px) {
    .bande-apercu .carrousel-viewport { height: 220px; }
    .bande-apercu-info { padding: 26px 16px 14px; }
    .bande-apercu-info h3 { font-size: 17px; }
}

.fiche-infos .fil-ariane { font-size: 12.5px; color: var(--text-light); margin-bottom: 8px; }
.fiche-infos h1 { font-size: 23px; margin: 0 0 8px; }
.fiche-infos .prix-actuel { font-size: 28px; font-weight: 800; color: var(--primary); }
.fiche-infos .prix-ancien { text-decoration: line-through; color: var(--text-light); margin-left: 10px; font-size: 16px; }
.fiche-infos .stock-info { margin: 10px 0; font-size: 13.5px; }
.fiche-infos .description { margin: 16px 0; line-height: 1.7; color: var(--text); }
.fiche-infos .qte-selector { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.qte-selector button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 18px; cursor: pointer; }
.qte-selector input { width: 60px; text-align: center; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
.fiche-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.vendeur-card { margin-top: 22px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; display: flex; align-items: center; gap: 12px; }
.vendeur-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---- Panier ---- */
.panier-ligne { display: grid; grid-template-columns: 70px 2fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.panier-ligne img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; background: var(--bg); }
@media (max-width: 640px) { .panier-ligne { grid-template-columns: 54px 1fr; grid-template-rows: auto auto; } }
.panier-recap { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.panier-recap .ligne-total { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.panier-recap .ligne-total.grand-total { font-size: 19px; font-weight: 800; border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; }

/* ---- Formulaires ---- */
.form-shop { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.form-shop label { display: block; margin: 12px 0 5px; font-weight: 600; font-size: 13.5px; }
.form-shop input, .form-shop select, .form-shop textarea { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.form-shop input:focus, .form-shop select:focus, .form-shop textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,182,196,.15); }
.form-shop .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-shop { padding: 20px; } .form-shop .field-row { grid-template-columns: 1fr; } }

/* ---- Grille "mon compte" (infos + mot de passe côte à côte) ---- */
.compte-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .compte-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---- Grille 2 colonnes générique (contenu principal + panneau latéral) ---- */
.split-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .split-2-1 { grid-template-columns: 1fr; } }

/* ---- Alertes / badges ---- */
.alert { padding: 12px 16px; border-radius: 10px; margin: 14px 0; font-size: 14px; }
.alert-success { background: rgba(43,147,72,.1); color: #1f6e35; border: 1px solid rgba(43,147,72,.25); }
.alert-error { background: rgba(230,57,70,.08); color: #b3222e; border: 1px solid rgba(230,57,70,.25); }
.alert-warning { background: rgba(244,163,0,.1); color: #8a5c00; border: 1px solid rgba(244,163,0,.3); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.badge-success { background: rgba(43,147,72,.12); color: #1f6e35; }
.badge-danger { background: rgba(230,57,70,.12); color: #b3222e; }
.badge-warning { background: rgba(244,163,0,.15); color: #8a5c00; }
.badge-info { background: rgba(47,182,196,.14); color: var(--teal-dark); }
.badge-muted { background: #eef1f5; color: var(--text-light); }

/* ---- Fil d'ariane générique / pages de contenu ---- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 23px; margin: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--primary); color: #cfe0f0; margin-top: 50px; }
.site-footer-inner { max-width: 1240px; margin: 0 auto; padding: 40px 20px 26px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer a { color: #cfe0f0; font-size: 13.5px; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer-bottom { text-align: center; padding: 14px; font-size: 12px; background: rgba(0,0,0,.15); }
@media (max-width: 760px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---- Chat flottant (client) ---- */
.chat-float-btn {
    position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #34d0a0, #1f9c74); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 27px; text-decoration: none; box-shadow: 0 12px 28px rgba(31,156,116,.45);
    animation: floatY 3s ease-in-out infinite; transition: transform .2s var(--ease);
}
.chat-float-btn:hover { transform: scale(1.08); color: #fff; }
.chat-float-ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #34d0a0; animation: pulseRing 2s ease-out infinite; }
@media (max-width: 600px) { .chat-float-btn { right: 14px; bottom: 14px; width: 54px; height: 54px; font-size: 24px; } }

/* ---- Fenêtre de messagerie ---- */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 520px; border: 1px solid var(--border); }
@media (max-width: 760px) { .chat-shell { grid-template-columns: 1fr; } }
.chat-liste { border-right: 1px solid var(--border); overflow-y: auto; max-height: 620px; }
.chat-liste a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.chat-liste a:hover, .chat-liste a.active { background: var(--bg); }
.chat-liste .sujet { font-weight: 700; font-size: 13.5px; }
.chat-liste .apercu { font-size: 12.5px; color: var(--text-light); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-fenetre { display: flex; flex-direction: column; height: 620px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-bulle { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.chat-bulle.moi { align-self: flex-end; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; border-bottom-right-radius: 4px; }
.chat-bulle.autre { align-self: flex-start; background: var(--bg); color: var(--text); border-bottom-left-radius: 4px; }
.chat-bulle .heure { display: block; font-size: 10.5px; opacity: .7; margin-top: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 22px; }
.chat-form button { border: none; background: var(--teal); color: #fff; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 17px; }

/* ---- Reçu imprimable ---- */
.recu { max-width: 560px; margin: 20px auto; background: #fff; padding: 28px; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.1); font-size: 13px; }
.recu img.logo-recu { height: 54px; margin: 0 auto 8px; }
.recu h2 { text-align: center; margin: 0 0 4px; color: var(--primary); }
.recu .sub-center { text-align: center; color: #777; margin-bottom: 16px; font-size: 12px; }
.recu table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.recu th, .recu td { padding: 7px 4px; border-bottom: 1px solid var(--border); text-align: left; }
.recu .total-row td { font-weight: 800; border-top: 2px solid #333; font-size: 14px; }
@media print { .no-print { display: none !important; } body { background: #fff; } .recu { box-shadow: none; margin: 0; } }

/* ---- Skeleton loader (chargement produits) ---- */
.skeleton { background: linear-gradient(90deg, #eceff3 25%, #f6f8fa 37%, #eceff3 63%); background-size: 400px 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }

/* ---- Responsive général ---- */
@media (max-width: 640px) {
    .site-main { padding: 18px 14px 50px; }
    .hero { padding: 30px 22px; }
    .hero h1 { font-size: 23px; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .grille-produits { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
    .carte-produit .photo-wrap { height: 130px; }
}
