/* =========================================================
   CPSI France Boutique — feuille de style
   Charte graphique reprise du site d'origine :
   navy #0e1b2b · cobalt #e8a33d · teal #1fa9a0 · stone #e7ebee
   Polices : Inter (texte), Space Grotesk (titres), IBM Plex Mono (labels)
   ========================================================= */

:root {
  --navy: #0e1b2b;
  --navy-light: #16273a;
  --cobalt: #e8a33d;
  --teal: #1fa9a0;
  --teal-dark: #167f79;
  --stone: #e7ebee;
  --background: #f2f4f6;
  --foreground: #14212f;
  --card: #ffffff;
  --muted: #66707b;
  --border: #d8dee4;
  --destructive: #c63f3f;
  --success: #1f9d55;
  --on-cobalt: #20140a;
  --radius-sm: .45rem;
  --radius-md: .7rem;
  --radius-lg: 1rem;
  --radius-xl: 1.35rem;
  --shadow-card: 0 12px 30px -20px rgba(14,27,43,.5);
  --shadow-card-hover: 0 18px 35px -18px rgba(14,27,43,.45);
  --max-width: 1380px;
  --font-sans: 'Inter', 'Segoe UI', sans-serif;
  --font-serif: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--teal); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
@media (min-width: 1024px) { .wrap { padding: 0 40px; } }

.section-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0;
}
.section-label.on-dark { color: var(--teal); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.02em; margin: 0; color: inherit; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .875rem; transition: all .18s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn-primary:hover { background: var(--teal); color: #fff; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-outline-dark { border-color: rgba(255,255,255,.18); color: #fff; background: transparent; }
.btn-outline-dark:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline { border-color: var(--border); color: var(--foreground); background: #fff; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-ghost { background: transparent; color: inherit; height: auto; padding: 6px 10px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: .8rem; }
.btn-danger { background: #fdecec; color: var(--destructive); border-color: #f3caca; }
.btn-danger:hover { background: var(--destructive); color: #fff; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 999px; }

/* ---------- Header / nav ---------- */
.topbar {
  border-bottom: 1px solid rgba(255,255,255,.1); background: var(--navy-light);
  color: var(--teal); text-align: center; padding: 10px 20px;
  font-family: var(--font-mono); font-size: .65rem; font-weight: 400; text-transform: uppercase; letter-spacing: .11em;
}
.topbar span.sep { margin: 0 8px; color: rgba(255,255,255,.2); }

.site-header {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(14,27,43,.95); backdrop-filter: blur(20px); color: #fff;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-name { display: block; font-family: var(--font-serif); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.brand-tagline { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 8px; font-weight: 400; text-transform: uppercase; letter-spacing: .16em; color: var(--teal); }
.brand-pill { display: none; border: 1px solid rgba(232,163,61,.35); color: var(--cobalt); padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
@media (min-width: 640px) { .brand-pill { display: inline-block; } }

.main-nav { margin-left: 20px; display: none; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a { transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }

.header-search { margin-left: auto; display: none; align-items: center; gap: 10px; height: 44px; width: 100%; max-width: 280px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); padding: 0 16px; }
@media (min-width: 1024px) { .header-search { display: flex; } }
.header-search input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 13px; }
.header-search input::placeholder { color: rgba(255,255,255,.35); }
.header-search svg { width: 16px; height: 16px; color: rgba(255,255,255,.35); flex-shrink: 0; }

.menu-toggle { margin-left: auto; background: transparent; border: none; color: #fff; padding: 10px; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--cobalt); background: var(--cobalt); color: var(--on-cobalt); font-weight: 600; font-size: 13px; }
.header-search ~ .cart-btn, .main-nav ~ .cart-btn { margin-left: 0; }
.cart-btn:hover { border-color: var(--teal); background: var(--teal); color: #fff; }
.cart-count { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; }
.cart-label { display: none; }
@media (min-width: 640px) { .cart-label { display: inline; } }

.mobile-panel { display: none; border-top: 1px solid rgba(255,255,255,.1); background: var(--background); color: var(--navy); padding: 20px; }
.mobile-panel.open { display: block; }
.mobile-panel .header-search { display: flex; max-width: none; border-color: rgba(14,27,43,.12); background: #fff; }
.mobile-panel .header-search input { color: var(--navy); }
.mobile-panel .header-search svg { color: rgba(14,27,43,.35); }
.mobile-nav { margin-top: 16px; border-top: 1px solid rgba(14,27,43,.1); font-weight: 500; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(14,27,43,.1); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid rgba(255,255,255,.1); background: var(--navy); color: #fff; }
.hero .wrap { display: grid; gap: 0; }
@media (min-width: 1024px) { .hero .wrap { grid-template-columns: .86fr 1.14fr; min-height: 640px; } }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px 0; }
@media (min-width: 1024px) { .hero-copy { padding: 80px 0; } }
.hero-eyebrow { margin-bottom: 30px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: .65rem; font-weight: 400; text-transform: uppercase; letter-spacing: .16em; color: var(--teal); }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 4px rgba(31,169,160,.1); }
.hero h1 { max-width: 640px; font-size: clamp(2.6rem, 5.8vw, 5.2rem); line-height: 1.03; }
.hero h1 .accent { color: var(--cobalt); }
.hero-sub { margin-top: 26px; max-width: 480px; font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); padding: 12px 22px; font-size: .875rem; font-weight: 600; color: #fff; }
.hero-facts { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px 32px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: .75rem; color: rgba(255,255,255,.45); }
.hero-facts span { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 14px; height: 14px; color: var(--teal); }

.hero-media { position: relative; min-height: 340px; overflow: hidden; background: var(--stone); }
@media (min-width: 1024px) { .hero-media { min-height: 100%; } }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,27,43,.4), transparent 55%); }
.hero-media-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px; color: #fff; z-index: 1; }
.hero-media-caption .eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.65); }
.hero-media-caption p { margin-top: 8px; max-width: 320px; font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.25; }
.hero-media-pill { display: none; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); backdrop-filter: blur(6px); padding: 12px 16px; font-size: .8rem; font-weight: 500; }
@media (min-width: 640px) { .hero-media-pill { display: block; } }

/* ---------- Bandeau atouts ---------- */
.perks { border-bottom: 1px solid rgba(14,27,43,.1); background: rgba(231,235,238,.7); }
.perks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(14,27,43,.1); max-width: var(--max-width); margin: 0 auto; }
@media (min-width: 1024px) { .perks-grid { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; align-items: center; gap: 16px; min-height: 112px; background: #fff; padding: 24px 20px; }
@media (min-width: 1024px) { .perk { padding: 24px 32px; } }
.perk-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(31,169,160,.1); flex-shrink: 0; }
.perk-icon svg { width: 20px; height: 20px; color: var(--teal); stroke-width: 1.5; }
.perk strong { display: block; font-size: 13px; font-weight: 600; }
.perk span { display: block; margin-top: 4px; font-size: 12px; color: rgba(14,27,43,.45); }

/* ---------- Catalogue / cartes produit ---------- */
.section { padding: 72px 0; }
@media (min-width: 1024px) { .section { padding: 100px 0; } }
.section-head { display: flex; flex-direction: column; gap: 28px; border-bottom: 1px solid rgba(14,27,43,.1); padding-bottom: 28px; }
@media (min-width: 1024px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-head h2 { margin-top: 12px; font-size: clamp(1.9rem, 4vw, 3.4rem); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; max-width: 100%; }
.filter-pill { flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border); background: #fff; padding: 9px 16px; font-size: .82rem; font-weight: 500; color: rgba(14,27,43,.5); transition: all .15s; }
.filter-pill:hover { border-color: var(--teal); color: var(--teal-dark); }
.filter-pill.active { border-color: var(--cobalt); background: var(--cobalt); color: var(--on-cobalt); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.toolbar .search-box { display: flex; align-items: center; gap: 10px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 0 16px; flex: 1; min-width: 220px; }
.toolbar .search-box svg { width: 16px; height: 16px; color: rgba(14,27,43,.35); }
.toolbar .search-box input { border: none; outline: none; background: transparent; flex: 1; font-size: 13px; }
.toolbar select { height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 0 16px; font-size: 13px; color: var(--foreground); }
.result-count { font-size: 12px; color: rgba(14,27,43,.45); margin-top: 14px; }

.product-grid { display: grid; gap: 20px 20px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 20px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { position: relative; border-radius: var(--radius-lg); border: 1px solid rgba(14,27,43,.08); background: #fff; padding: 12px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-md); background: var(--stone); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-badge { position: absolute; left: 14px; top: 14px; border-radius: 999px; background: #fff; padding: 6px 12px; font-family: var(--font-mono); font-size: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--navy); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.product-badge.paused { background: rgba(198,63,63,.92); color: #fff; }
.product-add { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt); border: none; opacity: 0; transform: translateY(6px); transition: all .25s; }
.product-card:hover .product-add, .product-add:focus { opacity: 1; transform: translateY(0); }
.product-add svg { width: 16px; height: 16px; }
.product-add:hover { background: var(--teal); color: #fff; }
.product-body { padding: 18px 4px 4px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-cat { font-family: var(--font-mono); font-size: 9px; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-dark); }
.product-name { margin-top: 5px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1.35; }
.product-price { flex-shrink: 0; font-size: 15px; font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.product-desc { font-size: 12px; line-height: 1.55; color: rgba(14,27,43,.45); }
.product-specs { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: rgba(14,27,43,.4); }
.product-specs span { display: inline-flex; align-items: center; gap: 4px; }
.product-link { color: inherit; display: block; }

.empty-state { border: 1px dashed rgba(14,27,43,.15); padding: 64px 20px; text-align: center; border-radius: var(--radius-lg); margin-top: 24px; }
.empty-state svg { width: 28px; height: 28px; color: rgba(14,27,43,.2); margin: 0 auto; }
.empty-state p { margin-top: 12px; font-weight: 500; font-size: .9rem; }
.empty-state button, .empty-state a { margin-top: 8px; font-size: .8rem; font-weight: 600; color: var(--cobalt); background: none; border: none; }
.empty-state button:hover, .empty-state a:hover { text-decoration: underline; }

/* ---------- Services ---------- */
.services-section { background: var(--navy); color: #fff; }
.services-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .services-grid { grid-template-columns: .82fr 1.18fr; gap: 90px; } }
.services-intro { align-self: start; }
.services-intro h2 { margin-top: 18px; max-width: 480px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .98; }
.services-intro p { margin-top: 26px; max-width: 420px; font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.service-list { border-top: 1px solid rgba(255,255,255,.15); }
.service-item { display: grid; grid-template-columns: auto 1fr; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.15); padding: 32px 0; }
@media (min-width: 640px) { .service-item { grid-template-columns: 70px 1fr auto; gap: 32px; align-items: center; } }
.service-num { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.3); }
.service-head { display: flex; align-items: center; gap: 16px; }
.service-head svg { width: 20px; height: 20px; color: var(--teal); stroke-width: 1.4; }
.service-head h3 { font-size: 1.3rem; }
.service-item p { margin-top: 12px; max-width: 560px; font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.5); }

/* ---------- Méthode ---------- */
.method-section { border-bottom: 1px solid rgba(14,27,43,.1); background: #fff; }
.method-grid { display: grid; }
@media (min-width: 1024px) { .method-grid { grid-template-columns: 1fr 1fr; } }
.method-media { position: relative; min-height: 320px; overflow: hidden; }
@media (min-width: 1024px) { .method-media { min-height: 100%; } }
.method-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.method-copy { display: flex; flex-direction: column; justify-content: center; padding: 60px 20px; }
@media (min-width: 1024px) { .method-copy { padding: 80px 72px; } }
.method-copy h2 { margin-top: 18px; max-width: 440px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.05; }
.method-copy > p { margin-top: 20px; max-width: 440px; font-size: .95rem; line-height: 1.7; color: rgba(14,27,43,.55); }
.method-list { margin-top: 34px; border-top: 1px solid rgba(14,27,43,.1); border-bottom: 1px solid rgba(14,27,43,.1); }
.method-list-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(14,27,43,.1); }
.method-list-item:last-child { border-bottom: none; }
.method-list-item svg { width: 20px; height: 20px; color: var(--teal); stroke-width: 1.4; flex-shrink: 0; margin-top: 2px; }
.method-list-item strong { display: block; font-size: .9rem; font-weight: 600; }
.method-list-item span { display: block; margin-top: 3px; font-size: .85rem; color: rgba(14,27,43,.45); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: end; gap: 90px; } }
.contact-title { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .98; margin-top: 18px; }
.contact-title .accent { color: var(--cobalt); }
.contact-cards { margin-top: 30px; display: grid; gap: 1px; background: rgba(14,27,43,.1); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; min-height: 128px; flex-direction: column; justify-content: space-between; background: #fff; padding: 22px; transition: all .2s; }
.contact-card:hover { background: var(--navy); color: #fff; }
.contact-card svg { width: 20px; height: 20px; color: var(--teal); stroke-width: 1.4; }
.contact-card .label { display: block; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; opacity: .45; }
.contact-card strong { display: block; margin-top: 4px; font-size: 1rem; font-weight: 600; }
.contact-hours { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; background: #fff; padding: 22px; min-height: 96px; }
@media (min-width: 640px) { .contact-hours { flex-direction: row; align-items: center; } }
.contact-hours-left { display: flex; align-items: center; gap: 12px; }
.contact-hours-left svg { width: 20px; height: 20px; color: var(--cobalt); stroke-width: 1.4; }
.contact-hours-left span.label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: rgba(14,27,43,.4); }
.contact-hours-left strong { display: block; margin-top: 4px; font-size: .9rem; font-weight: 600; }
.contact-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: rgba(14,27,43,.45); }
.contact-status .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--success); }

.contact-form { margin-top: 30px; display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; outline: none; transition: border-color .15s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 100px; }
.field .hint { margin-top: 4px; font-size: .72rem; color: rgba(14,27,43,.4); }
.form-msg { border-radius: var(--radius-sm); padding: 12px 16px; font-size: .85rem; font-weight: 500; }
.form-msg.success { background: #e9f7ef; color: var(--success); }
.form-msg.error { background: #fdecec; color: var(--destructive); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,.1); background: var(--navy); color: #fff; }
.site-footer .wrap { display: grid; gap: 32px; padding: 56px 0 40px; }
@media (min-width: 1024px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.footer-brand span.name { font-family: var(--font-serif); font-size: 16px; font-weight: 700; }
.footer-brand .pill { margin-left: 12px; border: 1px solid rgba(232,163,61,.3); padding: 4px 8px; border-radius: 999px; font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: var(--cobalt); }
.footer-brand .tag { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); }
.footer-brand p { margin-top: 18px; max-width: 420px; font-size: .85rem; line-height: 1.6; color: rgba(255,255,255,.4); }
.footer-links { display: flex; flex-direction: column; gap: 14px; font-size: .85rem; color: rgba(255,255,255,.55); }
@media (min-width: 640px) { .footer-links { flex-direction: row; align-items: center; gap: 30px; } }
.footer-links a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .72rem; color: rgba(255,255,255,.3); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* ---------- Panier (drawer) ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(14,27,43,.35); backdrop-filter: blur(3px); display: none; }
.cart-overlay.open { display: block; }
.cart-drawer { position: absolute; right: 0; top: 0; display: flex; height: 100%; width: 100%; max-width: 440px; flex-direction: column; background: var(--background); box-shadow: -20px 0 40px rgba(0,0,0,.2); }
.cart-head { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid rgba(14,27,43,.1); padding: 26px; }
.cart-head h2 { font-size: 1.6rem; font-weight: 500; }
.cart-head p { margin-top: 4px; font-size: .82rem; color: rgba(14,27,43,.45); }
.cart-close { display: grid; place-items: center; width: 34px; height: 34px; font-size: 20px; color: rgba(14,27,43,.55); background: none; border: none; }
.cart-body { flex: 1; overflow: auto; padding: 8px 26px; }
.cart-empty { display: grid; place-items: center; height: 100%; text-align: center; padding: 60px 0; }
.cart-empty svg { width: 40px; height: 40px; color: rgba(14,27,43,.25); margin: 0 auto; stroke-width: 1.2; }
.cart-empty p.title { margin-top: 16px; font-weight: 600; }
.cart-empty p.sub { margin-top: 4px; font-size: .85rem; color: rgba(14,27,43,.45); }
.cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(14,27,43,.1); }
.cart-item img { width: 76px; height: 76px; flex-shrink: 0; object-fit: cover; border-radius: var(--radius-sm); background: #fff; }
.cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-item-top h3 { font-size: .85rem; font-weight: 600; line-height: 1.35; font-family: var(--font-sans); }
.cart-item-top span { flex-shrink: 0; font-size: .85rem; font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; color: rgba(14,27,43,.55); }
.cart-item-qty button { background: none; border: none; color: inherit; display: grid; place-items: center; width: 22px; height: 22px; }
.cart-item-qty button svg { width: 14px; height: 14px; }
.cart-item-qty span.qty { font-size: .75rem; font-weight: 600; color: var(--navy); }
.cart-foot { border-top: 1px solid rgba(14,27,43,.1); padding: 22px 26px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cart-total span { font-size: .85rem; color: rgba(14,27,43,.55); }
.cart-total strong { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.cart-note { margin-top: 10px; font-size: .72rem; color: rgba(14,27,43,.4); text-align: center; }

/* ---------- Fiche produit ---------- */
.breadcrumb { font-size: .78rem; color: rgba(14,27,43,.45); padding: 18px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--teal-dark); }
.product-detail { display: grid; gap: 44px; padding-bottom: 90px; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 64px; } }
.product-detail-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--stone); aspect-ratio: 4/5; }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info .cat { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-dark); }
.product-detail-info h1 { margin-top: 10px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.product-detail-price { margin-top: 16px; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--cobalt); }
.product-detail-desc { margin-top: 20px; font-size: .95rem; line-height: 1.75; color: rgba(14,27,43,.6); }
.spec-table { margin-top: 28px; border-top: 1px solid var(--border); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.spec-row span.k { color: rgba(14,27,43,.5); }
.spec-row span.v { font-weight: 600; text-align: right; }
.product-detail-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stock-flag { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 500; }
.stock-flag .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--success); }
.stock-flag.out .dot { background: var(--destructive); }
.related { margin-top: 90px; }

/* ---------- Pages génériques ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 70px 0 56px; }
.page-hero h1 { margin-top: 14px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { margin-top: 16px; max-width: 560px; color: rgba(255,255,255,.55); font-size: 1rem; line-height: 1.7; }
.prose h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: .92rem; line-height: 1.8; color: rgba(14,27,43,.6); margin: 0 0 14px; }
.prose ul { padding-left: 20px; color: rgba(14,27,43,.6); font-size: .92rem; line-height: 1.8; }

.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; }
.notfound .code { font-family: var(--font-serif); font-size: 6rem; font-weight: 700; color: var(--cobalt); line-height: 1; }
.notfound p { margin-top: 14px; color: rgba(14,27,43,.5); }

/* ========================================================= */
/* Interface d'administration                                 */
/* ========================================================= */
.admin-body { background: var(--background); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; flex-shrink: 0; background: var(--navy); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-sidebar .brand { padding: 24px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .brand-name { font-size: 15px; }
.admin-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: .86rem; font-weight: 500; color: rgba(255,255,255,.6); }
.admin-nav a svg { width: 17px; height: 17px; stroke-width: 1.6; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: rgba(232,163,61,.14); color: var(--cobalt); }
.admin-sidebar-foot { padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; color: rgba(255,255,255,.4); }
.admin-sidebar-foot a { display: block; margin-top: 8px; color: rgba(255,255,255,.7); font-weight: 500; }
.admin-sidebar-foot a:hover { color: #fff; }

@media (max-width: 900px) {
  .admin-sidebar { position: fixed; left: -260px; top: 0; z-index: 60; transition: left .2s; box-shadow: 20px 0 40px rgba(0,0,0,.2); }
  .admin-sidebar.open { left: 0; }
  .admin-topbar-menu { display: inline-flex !important; }
}

.admin-main { flex: 1; min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 16px; padding: 18px 28px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.admin-topbar-menu { display: none; background: none; border: none; color: var(--navy); }
.admin-topbar h1 { font-size: 1.15rem; }
.admin-topbar .spacer { flex: 1; }
.admin-content { padding: 28px; max-width: 1200px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.stat-card .label { font-size: .75rem; color: rgba(14,27,43,.5); font-weight: 500; }
.stat-card .value { margin-top: 10px; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; }
.stat-card .sub { margin-top: 4px; font-size: .72rem; color: rgba(14,27,43,.4); }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 1.05rem; }
.panel-body { padding: 22px; }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border); background: #fafbfc; }
.admin-toolbar input, .admin-toolbar select { height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 12px; font-size: .82rem; background: #fff; }
.admin-toolbar form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 1; }

table.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.data-table th { text-align: left; padding: 12px 22px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(14,27,43,.45); border-bottom: 1px solid var(--border); background: #fafbfc; white-space: nowrap; }
table.data-table td { padding: 14px 22px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafbfc; }
.table-scroll { overflow-x: auto; }
.cell-product { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-product img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--stone); flex-shrink: 0; }
.cell-product strong { display: block; font-size: .85rem; }
.cell-product span { display: block; font-size: .72rem; color: rgba(14,27,43,.4); margin-top: 2px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600; }
.badge-active { background: #e9f7ef; color: var(--success); }
.badge-paused { background: #fdecec; color: var(--destructive); }
.badge-neutral { background: var(--stone); color: rgba(14,27,43,.6); }
.badge-cobalt { background: rgba(232,163,61,.15); color: #a5661a; }
.badge dot, .badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; font-size: .74rem; font-weight: 600; color: var(--foreground); }
.icon-btn svg { width: 13px; height: 13px; }
.icon-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.icon-btn.danger:hover { border-color: var(--destructive); color: var(--destructive); }
.icon-btn.warn:hover { border-color: var(--cobalt); color: #a5661a; }

.stat-card-warn { border-color: rgba(232,163,61,.4); background: rgba(232,163,61,.06); }
.stat-card-warn .value { color: #a5661a; }
.stat-card-danger { border-color: rgba(198,63,63,.35); background: rgba(198,63,63,.05); }
.stat-card-danger .value { color: var(--destructive); }

.col-check { width: 40px; padding-right: 0 !important; }
.col-check input[type=checkbox], .row-check { width: 17px; height: 17px; accent-color: var(--teal); cursor: pointer; }

.sortable-th { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.sortable-th:hover { color: var(--teal-dark); }
.sortable-th.active { color: var(--foreground); font-weight: 700; }
.sort-arrow { font-size: .7rem; }

.stock-ok { font-weight: 600; }
.muted-cell { color: rgba(14,27,43,.5); font-size: .8rem; }
.muted-dash { color: rgba(14,27,43,.3); }

.status-form { display: flex; align-items: center; gap: 9px; }
.switch-toggle { position: relative; width: 38px; height: 22px; flex-shrink: 0; border: none; background: none; padding: 0; cursor: pointer; }
.switch-toggle-track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: .2s; }
.switch-toggle-track::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 999px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch-toggle.is-on .switch-toggle-track { background: var(--success); }
.switch-toggle.is-on .switch-toggle-track::before { transform: translateX(16px); }
.status-label { font-size: .74rem; color: rgba(14,27,43,.45); font-weight: 600; }
.status-label.is-on { color: var(--success); }

.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: rgba(31,169,160,.08); border-bottom: 1px solid var(--border); font-size: .82rem; font-weight: 600; }
.bulk-bar[hidden] { display: none; }
.bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.form-context-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 22px; }
.form-context-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.admin-form { display: grid; gap: 22px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(14,27,43,.5); margin: 6px 0 -4px; }
.admin-form label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; }
.admin-form input[type=text], .admin-form input[type=number], .admin-form input[type=email], .admin-form input[type=tel], .admin-form input[type=password], .admin-form textarea, .admin-form select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; background: #fff; outline: none;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--teal); }
.admin-form textarea { min-height: 110px; resize: vertical; }
.admin-form .hint { font-size: .72rem; color: rgba(14,27,43,.4); margin-top: 5px; }
.admin-form .field { min-width: 0; }

.content-menu { display: flex; flex-direction: column; gap: 2px; }
.content-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 6px; border-bottom: 1px solid var(--border); color: inherit; }
.content-menu-item:last-child { border-bottom: none; }
.content-menu-item:hover { color: var(--teal-dark); }
.content-menu-item div { display: flex; flex-direction: column; gap: 3px; }
.content-menu-item strong { font-size: .92rem; }
.content-menu-item span { font-size: .74rem; color: rgba(14,27,43,.45); }
.content-menu-item svg { width: 16px; height: 16px; flex-shrink: 0; color: rgba(14,27,43,.35); }

.content-group { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; background: var(--stone); }
.content-group > label { margin-bottom: 10px; }
.content-group-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; }
.content-group-item:last-child { margin-bottom: 0; }
.content-group-item-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(14,27,43,.4); margin-bottom: 10px; }
.toggle-row { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: .2s; }
.switch .track::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 999px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::before { transform: translateX(18px); }

.image-picker { display: flex; align-items: center; gap: 16px; }
.image-picker .preview { width: 96px; height: 96px; border-radius: var(--radius-md); overflow: hidden; background: var(--stone); flex-shrink: 0; border: 1px solid var(--border); }
.image-picker .preview img { width: 100%; height: 100%; object-fit: cover; }
.image-picker input[type=file] { display: none; }
.image-picker .pick-btn { display: inline-flex; align-items: center; gap: 8px; }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 20px; }

.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: .84rem; font-weight: 500; margin-bottom: 18px; }
.alert-success { background: #e9f7ef; color: var(--success); }
.alert-error { background: #fdecec; color: var(--destructive); }
.alert-info { background: #eaf6f5; color: var(--teal-dark); }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: var(--radius-lg); padding: 36px 32px; }
.login-card .brand { text-align: center; margin-bottom: 24px; }
.login-card h1 { text-align: center; font-size: 1.3rem; margin-top: 18px; }
.login-card p.sub { text-align: center; margin-top: 6px; font-size: .82rem; color: rgba(14,27,43,.5); margin-bottom: 24px; }
.login-form { display: grid; gap: 14px; }

.empty-mini { text-align: center; padding: 46px 20px; color: rgba(14,27,43,.45); font-size: .88rem; }

.category-list { display: grid; gap: 10px; }
.category-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.category-row strong { font-size: .9rem; }
.category-row .count { font-size: .74rem; color: rgba(14,27,43,.45); margin-top: 2px; }

.pill-select { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-select button { border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: .78rem; font-weight: 500; background: #fff; color: rgba(14,27,43,.55); }
.pill-select button.active { border-color: var(--teal); background: rgba(31,169,160,.1); color: var(--teal-dark); }
