/* =========================================================
   Unique Store — Design system (mobile-first, thème violet)
   ========================================================= */
:root{
  --violet:#5b1e9b;
  --violet-700:#46157a;
  --violet-600:#6d28b8;
  --violet-300:#c3a3ec;
  --violet-100:#ede3fa;
  --violet-050:#f6f1fd;
  --bg:#f5f3fb;
  --card:#ffffff;
  --ink:#1e1430;
  --muted:#6f6884;
  --line:#ece7f4;
  --wa:#25d366;
  --wa-700:#128c4b;
  --danger:#e0455e;
  --gold:#d8a638;
  --r-sm:12px; --r:16px; --r-lg:22px; --r-xl:28px;
  --sh:0 6px 20px rgba(30,20,48,.08);
  --sh-lg:0 16px 40px rgba(30,20,48,.16);
  --nav-h:64px; --top-h:60px;
  --maxw:1120px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  color:var(--ink);background:var(--bg);line-height:1.5;
  padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0 0 .4em;line-height:1.2}
button{font-family:inherit;cursor:pointer}
svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 16px}
.page{max-width:var(--maxw);margin:0 auto;padding:16px}
.muted{color:var(--muted)}
.center{text-align:center}

/* ---------- Barre supérieure ---------- */
.topbar{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.topbar-inner{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;
  min-height:var(--top-h);max-width:var(--maxw);margin:0 auto;padding:8px 16px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-logo{width:52px;height:52px;border-radius:12px;object-fit:cover;box-shadow:var(--sh)}
.brand-name{font-weight:800;font-size:1.12rem;color:var(--violet-700);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.top-nav{display:none;gap:4px}
.top-nav a{padding:8px 14px;border-radius:999px;font-weight:600;color:var(--muted)}
.top-nav a:hover{background:var(--violet-050);color:var(--violet-700)}
.top-nav a.active{background:var(--violet-100);color:var(--violet-700)}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:6px}
.icon-btn{position:relative;display:grid;place-items:center;width:42px;height:42px;
  border:none;border-radius:12px;background:transparent;color:var(--ink)}
.icon-btn:hover{background:var(--violet-050);color:var(--violet-700)}
.cart-badge{position:absolute;top:4px;right:4px;min-width:18px;height:18px;padding:0 4px;
  background:var(--violet);color:#fff;font-size:.68rem;font-weight:700;border-radius:999px;
  display:flex;align-items:center;justify-content:center;line-height:1}
/* Mobile : la recherche occupe toute la 2e ligne du header (pleine largeur) */
.searchbar{order:5;flex:1 1 100%;display:flex;align-items:center;gap:8px;padding:0}
.searchbar svg{color:var(--muted);width:20px;height:20px;flex:0 0 auto}
.searchbar input{flex:1;border:1px solid var(--line);background:#fff;border-radius:999px;
  padding:11px 16px;font-size:1rem;outline:none}
.searchbar input:focus{border-color:var(--violet-300);box-shadow:0 0 0 4px var(--violet-050)}

/* ---------- Boutons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:none;border-radius:999px;padding:12px 20px;font-weight:700;font-size:1rem;
  transition:transform .05s ease, filter .15s ease;white-space:nowrap}
.btn:active{transform:scale(.97)}
.btn-primary{background:linear-gradient(135deg,#6d28b8,#46157a);color:#fff;font-weight:800;box-shadow:0 8px 20px rgba(91,30,155,.28)}
.btn-primary:hover{filter:brightness(1.06)}
.btn-wa{background:var(--wa);color:#fff;box-shadow:0 8px 20px rgba(37,211,102,.3)}
.btn-wa:hover{filter:brightness(1.05)}
.btn-outline{background:#fff;color:var(--violet-700);border:1.5px solid var(--violet-300)}
.btn-outline:hover{background:var(--violet-050)}
.btn-block{display:flex;width:100%}
.btn-lg{padding:15px 24px;font-size:1.05rem}
.btn svg{width:20px;height:20px}
.btn .btn-ico-img{width:28px;height:28px;border-radius:8px;object-fit:cover;
  box-shadow:0 1px 4px rgba(0,0,0,.28)}

/* ---------- Titres de section ---------- */
.section{margin:26px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.section-head h2{font-size:1.2rem;margin:0}
.h2-ico{width:20px;height:20px;fill:var(--gold);stroke:var(--gold);vertical-align:-4px}
.section-head a{color:var(--violet-700);font-weight:700;font-size:.92rem}

/* ---------- Hero ---------- */
.hero{margin:16px 0;border-radius:var(--r-xl);padding:26px 22px;color:#fff;position:relative;
  overflow:hidden;background:linear-gradient(135deg,#5b1e9b 0%,#7a35c4 55%,#9d5be0 100%);
  box-shadow:var(--sh-lg)}
.hero::after{content:"";position:absolute;right:-40px;top:-40px;width:200px;height:200px;
  background:radial-gradient(circle,rgba(255,255,255,.22),transparent 70%);border-radius:50%}
.hero h1{font-size:1.7rem;max-width:16ch;position:relative}
.hero p{margin:.4em 0 1.1em;opacity:.92;max-width:40ch;position:relative}
.hero .btn{position:relative}
/* Variante hero centrée (page Services) — responsive */
.hero-center{text-align:center}
.hero-center h1{max-width:none;margin-left:auto;margin-right:auto}
.hero-center p{max-width:52ch;margin-left:auto;margin-right:auto}

/* ---------- Carrousel d'accueil ---------- */
.carousel{position:relative;margin:0 -16px 16px;border-radius:0;overflow:hidden;box-shadow:var(--sh-lg)}
.carousel-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;scrollbar-width:none}
.carousel-track::-webkit-scrollbar{display:none}
/* Bannières « tout-en-un » : hauteur imposée par le cadre, jamais par l'image.
   Le rapport 2.25/1 correspond à BANNER_W × BANNER_H (1800 × 800) dans
   includes/functions.php — garder les deux valeurs cohérentes. Toute image
   téléversée est ramenée à ces dimensions : le carrousel garde donc la même
   hauteur quelle que soit l'image. */
.slide{flex:0 0 100%;min-width:100%;scroll-snap-align:start;position:relative;line-height:0;
  aspect-ratio:2.25/1;background:#f2eefa;overflow:hidden}
.slide-link{display:block;line-height:0;height:100%}
.slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.carousel-dots{position:absolute;bottom:12px;left:0;right:0;display:flex;justify-content:center;gap:7px;z-index:3}
.carousel-dots .dot{width:8px;height:8px;padding:0;border:none;border-radius:50%;background:rgba(255,255,255,.5);
  cursor:pointer;transition:width .2s,background .2s}
.carousel-dots .dot.active{width:22px;border-radius:99px;background:#fff}
.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border:none;
  border-radius:50%;background:rgba(255,255,255,.22);color:#fff;display:none;place-items:center;z-index:3}
.carousel-arrow:hover{background:rgba(255,255,255,.36)}
.carousel-arrow.prev{left:12px}
.carousel-arrow.next{right:12px}
.carousel-arrow svg{width:22px;height:22px}
@media (min-width:820px){
  .carousel-arrow{display:grid}
}

/* ---------- Ruban services ---------- */
.services-strip{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 8px;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch}
.services-strip::-webkit-scrollbar{display:none}
.service-pill{flex:0 0 auto;scroll-snap-align:start;display:flex;flex-direction:column;
  align-items:center;gap:6px;width:88px;padding:14px 8px;background:var(--card);
  border-radius:var(--r);box-shadow:var(--sh);text-align:center}
.service-pill .ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;
  background:var(--violet-050);color:var(--violet-700)}
.service-pill span{font-size:.76rem;font-weight:600;line-height:1.15}

/* ---------- Chips catégories ---------- */
.chips{display:flex;gap:9px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x mandatory}
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;scroll-snap-align:start;padding:9px 16px;border-radius:999px;background:#fff;
  border:1px solid var(--line);font-weight:600;color:var(--muted);font-size:.92rem}
.chip.active,.chip:hover{background:var(--violet);border-color:var(--violet);color:#fff}

/* ---------- Cartes catégorie (accueil) ---------- */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.cat-card{background:var(--card);border-radius:var(--r);padding:12px 10px;text-align:center;
  box-shadow:var(--sh)}
.cat-card .thumb{width:100%;aspect-ratio:1;border-radius:12px;object-fit:cover;background:var(--violet-050);margin-bottom:8px}
.cat-card span{font-size:.82rem;font-weight:600;display:block}

/* ---------- Grille produits ---------- */
.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.product-card{position:relative;background:var(--card);border-radius:var(--r-lg);overflow:hidden;
  box-shadow:var(--sh);display:flex;flex-direction:column;transition:transform .12s ease, box-shadow .12s ease}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--sh-lg)}
.product-media{position:relative;display:block;aspect-ratio:1;background:#fff}
.product-media img{width:100%;height:100%;object-fit:contain;padding:10px}
.fav{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;border:none;
  background:rgba(255,255,255,.85);color:var(--muted);display:grid;place-items:center;box-shadow:var(--sh)}
.fav svg{width:18px;height:18px}
.fav.active{color:var(--danger)}
.fav.active svg{fill:var(--danger)}
.product-body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.product-title{font-size:.9rem;font-weight:600;line-height:1.25;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.3em}
.product-cat{font-size:.72rem;color:var(--violet-600);font-weight:600;text-transform:uppercase;letter-spacing:.02em}
.product-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:6px}
.price{font-weight:800;color:var(--ink);font-size:1.02rem}
.add-btn{width:38px;height:38px;flex:0 0 auto;border:none;border-radius:12px;background:var(--violet);
  color:#fff;display:grid;place-items:center;box-shadow:0 6px 14px rgba(91,30,155,.3)}
.add-btn:active{transform:scale(.92)}
.add-btn svg{width:20px;height:20px}
.add-cart-btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:8px;
  border:none;border-radius:12px;background:var(--violet);color:#fff;font-weight:700;
  font-size:clamp(.72rem,2.7vw,.86rem);padding:10px 8px;line-height:1.1;
  box-shadow:0 6px 14px rgba(91,30,155,.28)}
.add-cart-btn:hover{filter:brightness(1.07)}
.add-cart-btn:active{transform:scale(.97)}
.add-cart-btn svg{width:17px;height:17px;flex:0 0 auto}
.add-cart-btn span{white-space:nowrap}

/* ---------- Fiche produit ---------- */
.product-detail{display:grid;gap:18px}
.pd-media{background:#fff;border-radius:var(--r-xl);box-shadow:var(--sh);padding:16px;
  display:grid;place-items:center;aspect-ratio:1;overflow:hidden;border:1px solid var(--line)}
.pd-media img{width:100%;height:100%;object-fit:contain}
.pd-cat{color:var(--violet-600);font-weight:700;text-transform:uppercase;font-size:.76rem;letter-spacing:.04em}
.pd-title{font-size:1.5rem;margin:.2em 0}
.pd-price{font-size:1.7rem;font-weight:800;color:var(--violet-700);margin:.2em 0}
.pd-desc{color:var(--muted);margin:.6em 0 1em}
.qty{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line);border-radius:999px;
  padding:4px;background:#fff}
.qty button{width:38px;height:38px;border:none;border-radius:50%;background:var(--violet-050);
  color:var(--violet-700);font-size:1.3rem;display:grid;place-items:center}
.qty input{width:44px;border:none;text-align:center;font-size:1.1rem;font-weight:700;background:transparent;outline:none}
.pd-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.pd-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}

/* Galerie fiche produit */
.pd-gallery{display:flex;flex-direction:column;gap:12px}
.pd-media{position:relative}
.pd-thumbs{display:flex;gap:10px;overflow-x:auto;padding:2px;scrollbar-width:none}
.pd-thumbs::-webkit-scrollbar{display:none}
.pd-thumb{flex:0 0 auto;width:66px;height:66px;padding:4px;border:2px solid var(--line);border-radius:12px;
  background:#fff;cursor:pointer;overflow:hidden}
.pd-thumb img{width:100%;height:100%;object-fit:contain}
.pd-thumb.active{border-color:var(--violet)}
.pd-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.badge-livr{display:inline-flex;align-items:center;gap:6px;background:#e4f7ec;color:var(--wa-700);font-weight:700;
  font-size:.82rem;padding:5px 11px;border-radius:999px}
.badge-livr svg{width:16px;height:16px}
.pd-brand{color:var(--muted);font-weight:600;font-size:.95rem;margin:-.2em 0 .5em}
.pd-ref{color:var(--muted);font-size:.86rem;margin:.2em 0 .6em}
.pd-price-block{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--violet-050);
  border:1px solid var(--violet-100);border-radius:var(--r);padding:14px 16px;margin:.4em 0}
.pd-price-block .pd-price{font-size:1.7rem;font-weight:800;color:var(--violet-700);margin:0}
.pd-promo-tag{background:var(--gold);color:#3a2a02;font-weight:800;font-size:.72rem;padding:4px 9px;border-radius:999px;
  text-transform:uppercase;letter-spacing:.03em}
.pd-old{color:var(--muted);text-decoration:line-through;font-weight:600}
.pd-stock{margin-left:auto;font-weight:700;font-size:.86rem}
.pd-stock.in{color:var(--wa-700)}
.pd-stock.out{color:var(--danger)}
.pd-option{display:flex;align-items:center;gap:12px;margin:.4em 0 .2em}
.pd-option-lbl{font-weight:600;font-size:.9rem;color:var(--muted)}
.pd-option-val{display:inline-flex;align-items:center;justify-content:center;min-width:56px;padding:8px 14px;
  border:1.5px solid var(--violet-300);border-radius:12px;font-weight:700;color:var(--violet-700);background:#fff}

/* Badge promo sur les cartes produit */
.promo-badge{position:absolute;top:10px;left:10px;z-index:2;background:var(--danger);color:#fff;font-weight:800;
  font-size:.76rem;padding:3px 9px;border-radius:999px;box-shadow:0 4px 10px rgba(224,69,94,.4)}
.promo-badge.lg{font-size:1rem;padding:6px 13px;top:14px;left:14px}
/* Pile de badges (promo / nouveauté / coup de cœur) en haut à gauche de la carte */
.card-badges{position:absolute;top:10px;left:10px;z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.card-badges .promo-badge{position:static;top:auto;left:auto}
.badge-new,.badge-fav{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.72rem;
  font-weight:800;line-height:1.5;color:#fff;box-shadow:0 4px 10px rgba(0,0,0,.15)}
.badge-new{background:#0e9f8f}
.badge-fav{background:#d6357e}
.price-wrap{display:flex;flex-direction:column;line-height:1.15;margin-top:auto}
.old-price{color:var(--muted);text-decoration:line-through;font-size:.8rem;font-weight:600}

/* ---------- Panier ---------- */
.cart-list{display:flex;flex-direction:column;gap:12px}
.cart-item{display:flex;gap:12px;background:var(--card);border-radius:var(--r);padding:10px;box-shadow:var(--sh)}
.cart-item img{width:74px;height:74px;border-radius:12px;object-fit:contain;background:#fff;border:1px solid var(--line)}
.cart-item .ci-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.cart-item .ci-title{font-weight:600;font-size:.92rem}
.cart-item .ci-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.qty.sm button{width:30px;height:30px;font-size:1.1rem}
.qty.sm input{width:34px;font-size:1rem}
.ci-remove{border:none;background:transparent;color:var(--muted);display:grid;place-items:center;padding:6px}
.ci-remove:hover{color:var(--danger)}
.cart-summary{background:var(--card);border-radius:var(--r);padding:16px;box-shadow:var(--sh);margin-top:16px}
.sum-row{display:flex;justify-content:space-between;padding:6px 0}
.sum-row.total{border-top:1px dashed var(--line);margin-top:8px;padding-top:12px;font-size:1.2rem;font-weight:800}
.field{display:block;margin:10px 0}
.field label{display:block;font-weight:600;font-size:.9rem;margin-bottom:5px}
.field input,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;
  font-size:1rem;font-family:inherit;outline:none}
.field input:focus,.field textarea:focus{border-color:var(--violet-300);box-shadow:0 0 0 4px var(--violet-050)}
.empty{text-align:center;padding:50px 20px;color:var(--muted)}
.empty svg{width:56px;height:56px;color:var(--violet-300);margin-bottom:12px}

/* ---------- Bandeau info ---------- */
.note{background:var(--violet-050);border:1px solid var(--violet-100);border-radius:var(--r);
  padding:12px 14px;color:var(--violet-700);font-size:.9rem;display:flex;gap:10px;align-items:flex-start}
.note svg{width:20px;height:20px;flex:0 0 auto;margin-top:2px}

/* ---------- Page services ---------- */
.service-grid{display:grid;gap:14px}
.service-card{background:var(--card);border-radius:var(--r-lg);padding:18px;box-shadow:var(--sh);
  display:flex;gap:14px;align-items:flex-start}
.service-card .ico{width:50px;height:50px;flex:0 0 auto;border-radius:14px;display:grid;place-items:center;
  background:var(--violet-050);color:var(--violet-700)}
.service-card .ico.ico-img{background:none;padding:0;overflow:hidden}
.service-card .ico.ico-img img{width:100%;height:100%;object-fit:cover;border-radius:14px}
.service-card h3{font-size:1.05rem;margin:.1em 0 .3em}
.service-card p{margin:0;color:var(--muted);font-size:.92rem}
.service-card>div{display:flex;flex-direction:column;min-height:100%}
.service-actions{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin-top:auto;padding-top:10px}
.service-card .wa-mini{display:inline-flex;align-items:center;gap:6px;color:var(--wa-700);
  font-weight:700;font-size:.88rem}
.service-card .wa-mini.shop{color:var(--violet-700)}
.service-card .wa-mini svg{width:16px;height:16px}
.section-intro{margin:-4px 0 14px;color:var(--muted);font-size:.95rem;max-width:60ch}
/* Admin : gestion des services */
.service-admin-grid{display:grid;gap:16px}
.svc-head{display:flex;align-items:center;gap:12px}
.svc-ico{width:46px;height:46px;flex:0 0 auto;border-radius:12px;display:grid;place-items:center;overflow:hidden;
  background:var(--violet-050);color:var(--violet-700)}
.svc-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.svc-ico img{width:100%;height:100%;object-fit:cover}
@media(min-width:760px){.service-admin-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.service-admin-grid{grid-template-columns:repeat(3,1fr)}}

/* Accueil : en-tête de section centré (style « NOS SERVICES ») */
.section-head-center{text-align:center;margin:46px 0 30px;padding:0 8px}
.eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--violet-700);font-weight:800;
  font-size:.78rem;letter-spacing:.16em;text-transform:uppercase}
.eyebrow::before,.eyebrow::after{content:"";width:26px;height:2px;border-radius:2px;
  background:currentColor;opacity:.45}
.eyebrow svg{width:15px;height:15px;fill:currentColor;stroke:none}
.section-head-center h2{font-size:1.72rem;margin:.5em auto 0;max-width:20ch;line-height:1.15;letter-spacing:-.01em}
.head-divider{display:block;width:66px;height:4px;margin:18px auto 0;border-radius:99px;
  background:linear-gradient(90deg,var(--violet-700),#9d5be0)}
.section-head-center .section-intro{margin:16px auto 0;max-width:52ch;font-size:1rem}
@media(min-width:760px){
  .section-head-center{margin:66px 0 40px}
  .section-head-center h2{font-size:2.3rem}
}

/* Accueil : services en cartes (image + titre en surimpression) */
.svc-grid{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:600px){.svc-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.svc-grid{grid-template-columns:repeat(3,1fr)}}
.svc-tile{background:var(--card);border-radius:14px;overflow:hidden;box-shadow:var(--sh);
  display:flex;flex-direction:column;transition:transform .12s ease, box-shadow .12s ease}
.svc-tile:hover{transform:translateY(-3px);box-shadow:var(--sh-lg)}
.svc-tile-media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:var(--violet-050)}
.svc-tile-media img{width:100%;height:100%;object-fit:cover;display:block}
.svc-tile-media.icon{display:grid;place-items:center;
  background:linear-gradient(135deg,#46157a,#6d28b8 60%,#9d5be0)}
.svc-tile-media.icon svg{width:64px;height:64px;fill:none;stroke:#fff;stroke-width:1.5;
  stroke-linecap:round;stroke-linejoin:round;opacity:.92}
.svc-tile-media::after{content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(18,18,55,.80) 0%,rgba(18,18,55,.32) 45%,rgba(18,18,55,0) 78%)}
.svc-tile-media.icon::after{background:linear-gradient(to top,rgba(20,10,45,.55),rgba(20,10,45,0) 72%)}
.svc-tile-name{position:absolute;left:15px;right:15px;bottom:14px;z-index:1;color:#fff;font-weight:800;
  font-size:1rem;letter-spacing:.02em;text-transform:uppercase;line-height:1.25;
  text-shadow:0 2px 6px rgba(0,0,0,.45)}
.svc-tile-body{padding:15px 18px 18px;display:flex;flex-direction:column;gap:7px;flex:1}
.svc-tile-body h3{margin:0;font-size:1.06rem;color:var(--violet-700)}
.svc-tile-body p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.5;flex:1}
.svc-more{display:inline-flex;align-items:center;gap:6px;margin-top:4px;color:var(--violet-700);
  font-weight:700;font-size:.9rem}
.svc-more svg{width:16px;height:16px;transition:transform .12s ease}
.svc-tile:hover .svc-more svg{transform:translateX(3px)}
/* Bande d'appel à l'action (bas d'accueil) */
.cta-band{background:linear-gradient(135deg,#46157a,#6d28b8 60%,#9d5be0);color:#fff;border-radius:var(--r-lg);
  padding:26px 24px;display:flex;flex-direction:column;gap:16px;box-shadow:var(--sh-lg)}
.cta-band h2{margin:0;font-size:1.4rem}
.cta-band p{margin:.35em 0 0;opacity:.94}
.cta-actions{display:flex;flex-wrap:wrap;gap:12px}
.cta-band .btn-outline{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.6)}
.cta-band .btn-outline:hover{background:rgba(255,255,255,.2)}
@media(min-width:760px){
  .cta-band{flex-direction:row;align-items:center;justify-content:space-between;padding:30px 34px}
  .cta-band h2{font-size:1.6rem}
}

/* ---------- Pied de page ---------- */
.site-footer{background:#fff;border-top:1px solid var(--line);margin-top:30px;padding:26px 16px 20px}
.footer-inner{max-width:var(--maxw);margin:0 auto;display:grid;gap:20px;text-align:center}
.footer-col h4{color:var(--violet-700);font-size:.98rem}
.footer-col p{margin:.2em 0;color:var(--muted);font-size:.9rem}
.footer-wa{display:inline-flex;align-items:center;gap:8px;color:var(--wa-700);font-weight:700}
.footer-wa svg{width:20px;height:20px;fill:var(--wa-700);stroke:none}
.footer-copy{text-align:center;color:var(--muted);font-size:.82rem;margin:20px 0 0}

/* ---------- Navigation basse (mobile) ---------- */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;height:calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);border-top:1px solid var(--line);display:flex}
.bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  color:var(--muted);font-size:.68rem;font-weight:600;position:relative}
.bottom-nav a svg{width:23px;height:23px}
.bottom-nav a.active{color:var(--violet)}
.bottom-nav .cart-badge{top:6px;right:calc(50% - 22px)}

/* ---------- Responsive (tablette / desktop) ---------- */
@media (min-width:560px){
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .cat-grid{grid-template-columns:repeat(4,1fr)}
  .hero h1{font-size:2rem}
  .footer-inner{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:820px){
  body{padding-bottom:0}
  .bottom-nav{display:none}
  .top-nav{display:flex}
  .carousel{margin:16px 0;border-radius:var(--r-xl)}
  .topbar-inner{flex-wrap:nowrap}
  /* Recherche inline à gauche (après le logo) ; menu poussé à droite */
  .searchbar{order:0;flex:1 1 auto;max-width:420px;margin-left:6px;margin-right:auto}
  .product-grid{grid-template-columns:repeat(4,1fr)}
  .cat-grid{grid-template-columns:repeat(6,1fr)}
  .product-detail{grid-template-columns:1fr 1fr;align-items:start;gap:32px}
  .services-strip{flex-wrap:wrap;overflow:visible}
  .service-pill{width:auto;flex:1 1 120px}
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .hero{padding:44px 40px}
  .hero h1{font-size:2.4rem}
}
@media (min-width:1024px){
  .service-grid{grid-template-columns:repeat(3,1fr)}
}

/* =========================================================
   Espace administration
   ========================================================= */
.admin-body{background:#f1eef8;padding-bottom:0}
.admin-login{min-height:100vh;display:grid;place-items:center;padding:20px}
.admin-card{background:#fff;border-radius:var(--r-lg);box-shadow:var(--sh-lg);padding:30px;width:100%;max-width:390px}
.admin-card .brand-logo{width:56px;height:56px;margin:0 auto 12px}
.admin-shell{display:flex;min-height:100vh}
.admin-side{width:230px;background:#2a123f;color:#e7ddf5;flex:0 0 auto;display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh}
.admin-side .side-brand{display:flex;align-items:center;gap:10px;padding:18px;border-bottom:1px solid rgba(255,255,255,.1)}
.admin-side .side-brand img{width:36px;height:36px;border-radius:9px}
.admin-side .side-brand b{font-size:.98rem}
.admin-nav{display:flex;flex-direction:column;padding:12px;gap:4px;flex:1}
.admin-nav a{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:12px;color:#d9ccee;font-weight:600;font-size:.94rem}
.admin-nav a svg{width:20px;height:20px}
.admin-nav a:hover{background:rgba(255,255,255,.08)}
.admin-nav a.active{background:var(--violet);color:#fff}
.admin-nav .logout{margin-top:auto;color:#f0b8c2}
.admin-main{flex:1;min-width:0;padding:22px;max-width:1000px}
.admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.admin-topbar h1{font-size:1.4rem;margin:0}
.admin-mobile-bar{display:none}
.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:8px}
.stat{background:#fff;border-radius:var(--r);padding:18px;box-shadow:var(--sh)}
.stat .n{font-size:1.9rem;font-weight:800;color:var(--violet-700)}
.stat .l{color:var(--muted);font-size:.9rem}
.panel{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:18px;margin-bottom:18px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);font-size:.92rem;vertical-align:middle}
.table th{color:var(--muted);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em}
.table img{width:46px;height:46px;border-radius:10px;object-fit:contain;background:#faf8fd;border:1px solid var(--line)}
.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.76rem;font-weight:700}
.tag.on{background:#e4f7ec;color:var(--wa-700)}
.tag.off{background:#fde8ec;color:var(--danger)}
.tag.star{background:#fdf3dc;color:#a97b12}
.row-actions{display:flex;gap:6px;justify-content:flex-end}
.mini-btn{display:inline-flex;align-items:center;gap:5px;padding:7px 12px;border-radius:10px;border:1px solid var(--line);
  background:#fff;font-weight:600;font-size:.85rem;color:var(--ink)}
.mini-btn:hover{background:var(--violet-050);border-color:var(--violet-300);color:var(--violet-700)}
.mini-btn.danger:hover{background:#fde8ec;border-color:#f3b6c1;color:var(--danger)}
.mini-btn svg{width:16px;height:16px}
.mini-btn.star-on{border-color:var(--gold)}
.mini-btn.star-on svg{fill:var(--gold);stroke:var(--gold)}
.mini-btn.fav-on{border-color:#d6357e}
.mini-btn.fav-on svg{fill:#d6357e;stroke:#d6357e}
.mini-btn.new-on{border-color:#0e9f8f}
.mini-btn.new-on svg{fill:#0e9f8f;stroke:#0e9f8f}
/* Prix admin : jamais coupé sur plusieurs lignes */
.table td.price-cell{white-space:nowrap}
.row-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.tag.new{background:#d7f5f0;color:#0b7d70}
.tag.fav{background:#fce1ee;color:#bd2a6d}
/* Liste produits admin : chaque ligne devient une carte sur mobile (le tableau déborderait) */
@media (max-width:680px){
  .admin-list thead{display:none}
  .admin-list, .admin-list tbody, .admin-list tr, .admin-list td{display:block;width:auto}
  .admin-list tr{border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh);
    padding:12px 14px;margin-bottom:12px;overflow:hidden}
  .admin-list td{border:none;padding:2px 0}
  .admin-list td:first-child{float:left;margin:2px 14px 4px 0}
  .admin-list td:first-child img{width:66px;height:66px}
  .admin-list .price-cell{font-size:1.05rem}
  .admin-list .muted{font-size:.85rem}
  .admin-list .row-actions{clear:both;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin-top:10px}
}
.form-grid{display:grid;gap:14px}
.form-grid.two{grid-template-columns:1fr 1fr}
.form-actions{display:flex;gap:10px;margin-top:8px}
.img-preview{width:120px;height:120px;border-radius:14px;object-fit:contain;background:#faf8fd;border:1px solid var(--line)}
/* Aperçu d'une bannière : même rapport que le carrousel (cf. .slide) */
.banner-preview{width:100%;max-width:320px;aspect-ratio:2.25/1;border-radius:12px;object-fit:cover;
  background:#faf8fd;border:1px solid var(--line)}
.table img.banner-thumb{width:104px;height:auto;aspect-ratio:2.25/1;object-fit:cover;border-radius:8px}
/* Page « Logo du site » */
.logo-preview-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.logo-preview{width:120px;height:120px;flex:none;border-radius:18px;object-fit:contain;background:#faf8fd;
  border:1px solid var(--line);padding:6px}
.logo-preview.sm{width:64px;height:64px;border-radius:12px}
.logo-preview-mini{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.8rem}
.logo-preview-mini img{width:52px;height:52px;border-radius:12px;object-fit:cover;box-shadow:var(--sh);flex:none}
.gallery-admin{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.gallery-thumb{position:relative;width:92px;border:1px solid var(--line);border-radius:12px;padding:6px;background:#fff;
  display:flex;flex-direction:column;gap:5px;cursor:pointer}
.gallery-thumb img{width:100%;height:70px;object-fit:contain}
.gt-del{display:flex;align-items:center;gap:5px;font-size:.72rem;color:var(--muted);font-weight:600}
.gt-del input{width:15px;height:15px;accent-color:var(--danger)}
.flash{padding:12px 16px;border-radius:12px;margin-bottom:16px;font-weight:600}
.flash.ok{background:#e4f7ec;color:var(--wa-700)}
.flash.err{background:#fde8ec;color:var(--danger)}
.check{display:flex;align-items:center;gap:8px;font-weight:600}
.check input{width:18px;height:18px;accent-color:var(--violet)}
select.input,input.input,textarea.input{width:100%;border:1px solid var(--line);border-radius:12px;
  padding:11px 13px;font-size:1rem;font-family:inherit;outline:none;background:#fff}
select.input:focus,input.input:focus,textarea.input:focus{border-color:var(--violet-300);box-shadow:0 0 0 4px var(--violet-050)}
label.lbl{font-weight:600;font-size:.9rem;display:block;margin-bottom:5px}

@media (max-width:760px){
  .admin-side{display:none}
  .admin-shell{flex-direction:column}
  .admin-main{padding:14px;padding-bottom:80px}
  .form-grid.two{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .admin-mobile-bar{display:flex;position:fixed;bottom:0;left:0;right:0;background:#2a123f;z-index:50;
    padding:8px 4px;gap:2px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .admin-mobile-bar a{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;color:#d9ccee;
    font-size:.62rem;font-weight:600;padding:4px 2px;text-align:center}
  .admin-mobile-bar a span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .admin-mobile-bar a.active{color:#fff}
  .admin-mobile-bar svg{width:20px;height:20px;flex:none}
  .table-wrap{overflow-x:auto}
}
