:root{--green:#166534;--green2:#22c55e;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--paper:#fff;--alt:#f8fafc;--shadow:0 14px 40px rgba(15,23,42,.08);--radius:20px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;color:var(--ink);background:var(--paper)}
a{text-decoration:none;color:inherit}button,input,select{font:inherit}.wrap{width:min(1160px,92vw);margin:auto}.topbar{position:fixed;top:12px;left:50%;transform:translateX(-50%);width:min(1160px,calc(100% - 24px));z-index:1000;background:rgba(255,255,255,.97);backdrop-filter:blur(16px);border:1px solid rgba(226,232,240,.9);border-radius:18px;box-shadow:0 10px 32px rgba(20,55,32,.12)}body{padding-top:104px}.nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.04em}.brand>span:last-child>span{color:var(--green)}.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:var(--green);color:#fff;border-radius:12px;font-weight:900}.desktop-nav{display:flex;gap:26px;color:#475569;font-size:14px}.desktop-nav a:hover{color:var(--green)}.nav-actions{display:flex;align-items:center;gap:10px}.icon-btn{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;cursor:pointer}.icon-btn span{font-weight:800}.btn{border:0;border-radius:13px;padding:13px 18px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800}.btn.primary{background:var(--green);color:#fff}.btn.secondary{background:#dcfce7;color:#166534}.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}.btn.small{padding:9px 12px;font-size:13px}.btn.full{width:100%}
.hero{padding:72px 0 64px;background:radial-gradient(circle at 90% 10%,#dcfce7 0,transparent 30%),linear-gradient(135deg,#f8fafc 0,#fff 50%,#f0fdf4 100%)}.hero-grid{display:grid;grid-template-columns:1.25fr .8fr;gap:54px;align-items:center}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.16em;color:var(--green)}h1{font-size:clamp(42px,5vw,70px);line-height:.98;letter-spacing:-.055em;margin:12px 0 20px}h1 span{color:var(--green)}.hero p,.section p{color:#475569;font-size:17px;line-height:1.7}.hero-actions{display:flex;gap:12px;margin:28px 0}.trust-row{display:flex;gap:28px;margin-top:36px}.trust-row div{display:flex;flex-direction:column}.trust-row strong{font-size:25px}.trust-row span{font-size:12px;color:var(--muted)}.hero-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:22px;box-shadow:var(--shadow)}.hero-card-head{display:flex;justify-content:space-between;align-items:center;font-weight:900}.hero-card-head small{color:var(--muted)}.top-packs{margin-top:18px;display:grid;gap:10px}.mini-pack{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:11px 12px;border-radius:15px}.mini-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#ecfdf5}.mini-pack strong{font-size:13px}.mini-pack small{display:block;color:var(--muted);margin-top:3px}.hero-note{margin-top:16px;padding:12px;border-radius:14px;background:var(--alt);font-size:12px;color:#475569}
.section{padding:84px 0}.section.alt{background:var(--alt)}.section-head{display:flex;justify-content:space-between;gap:25px;align-items:end;margin-bottom:28px}.section h2{font-size:36px;letter-spacing:-.04em;margin:6px 0 0}.controls{display:flex;gap:10px}.input{border:1px solid var(--line);padding:11px 13px;border-radius:12px;background:#fff;outline:none}.input:focus{border-color:#86efac;box-shadow:0 0 0 4px #dcfce7}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.product-card{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;display:flex;flex-direction:column;box-shadow:0 7px 20px rgba(15,23,42,.04)}.pack-visual{min-height:165px;padding:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f0fdf4,#fff)}.pack-box{width:145px;height:105px;border-radius:18px;background:#fff;border:2px solid #bbf7d0;box-shadow:0 12px 28px rgba(22,101,52,.14);display:flex;align-items:center;justify-content:center;flex-direction:column}.pack-box .emoji{font-size:38px}.pack-box .pack-code{font-weight:900;color:var(--green);font-size:12px}.product-body{padding:18px;display:flex;flex-direction:column;gap:12px;flex:1}.product-cat{font-size:11px;color:var(--green);font-weight:900;text-transform:uppercase;letter-spacing:.12em}.product-name{font-size:18px;font-weight:900;line-height:1.25}.product-desc{font-size:13px;color:var(--muted);line-height:1.55;min-height:40px}.price-row{display:flex;justify-content:space-between;align-items:center;margin-top:auto}.price{font-size:22px;font-weight:950}.small-note{color:var(--muted);font-size:11px}.product-actions{display:flex;gap:8px}.product-actions .btn{flex:1}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.step{background:#fff;border:1px solid var(--line);padding:22px;border-radius:18px}.step b{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#dcfce7;color:var(--green);font-size:12px}.step h3{margin:16px 0 6px}.step p{font-size:14px;margin:0}.b2b-box{border:1px solid #bbf7d0;background:linear-gradient(120deg,#f0fdf4,#fff);border-radius:25px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:24px}.b2b-actions{display:flex;gap:10px;white-space:nowrap}.contact-grid{display:grid;grid-template-columns:1fr .85fr;gap:30px;align-items:center}.contact-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;display:grid;grid-template-columns:auto 1fr auto;gap:15px;align-items:center;box-shadow:var(--shadow)}.contact-icon{width:48px;height:48px;border-radius:14px;background:#dcfce7;display:grid;place-items:center;font-size:24px}.contact-card p{margin:2px 0;color:var(--muted);font-size:13px}.footer{border-top:1px solid var(--line);background:#0f172a;color:#cbd5e1;padding:48px 0 20px}.footer-grid{display:grid;grid-template-columns:1.3fr .7fr .9fr;gap:35px}.footer .brand{color:#fff}.footer a,.footer small{display:block;color:#94a3b8;margin-top:10px;font-size:13px}.footer strong{color:#fff;font-size:13px}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:18px;margin-top:30px;font-size:12px;color:#64748b}.toast{position:fixed;bottom:24px;right:24px;background:#0f172a;color:#fff;padding:12px 15px;border-radius:13px;opacity:0;transform:translateY(10px);transition:.25s;z-index:100}.toast.show{opacity:1;transform:translateY(0)}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(5px);display:grid;place-items:center;z-index:80;padding:20px}.modal-card{width:min(680px,100%);background:#fff;border-radius:24px;padding:24px;max-height:90vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:16px}.close{border:0;background:#f1f5f9;border-radius:10px;padding:7px 10px;cursor:pointer}.pack-items{margin:20px 0;padding-left:20px;color:#475569;line-height:1.8}.cart-list{display:grid;gap:10px;margin:18px 0}.cart-item{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px}.qty{display:flex;align-items:center;gap:7px}.qty button{border:1px solid var(--line);background:#fff;border-radius:8px;width:28px;height:28px;cursor:pointer}.checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.checkout-grid .full{grid-column:1/-1}.summary{border:1px solid var(--line);padding:16px;border-radius:15px;background:var(--alt)}.summary-row{display:flex;justify-content:space-between;margin:7px 0}.summary-row.total{font-weight:950;font-size:20px;padding-top:10px;border-top:1px solid var(--line)}.hidden{display:none!important}

.link-btn{background:none;border:0;color:#94a3b8;cursor:pointer;padding:8px}.file-btn{position:relative;overflow:hidden}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}.panel h3{margin:0 0 14px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{padding:11px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.status{padding:6px 8px;border-radius:999px;font-size:11px;font-weight:900;background:#f1f5f9}.status.new{background:#dcfce7;color:#166534}.status.processing{background:#fef3c7;color:#92400e}.status.delivered{background:#dbeafe;color:#1d4ed8}.status.cancelled{background:#fee2e2;color:#b91c1c}.admin-form{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.admin-form .full{grid-column:1/-1}.admin-form label{font-size:11px;color:var(--muted);display:grid;gap:6px}.admin-form textarea{min-height:90px}.empty{padding:35px;text-align:center;color:var(--muted)}
@media(max-width:900px){.desktop-nav{display:none}.hero-grid,.contact-grid{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr)}.steps{grid-template-columns:repeat(2,1fr)}.b2b-box{flex-direction:column;align-items:flex-start}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.nav{height:62px}.hero{padding:45px 0}.hero-actions,.controls,.b2b-actions{flex-direction:column;align-items:stretch}.product-grid{grid-template-columns:1fr}.steps,.footer-grid{grid-template-columns:1fr}.section{padding:58px 0}.section-head{align-items:stretch;flex-direction:column}.checkout-grid,.admin-form{grid-template-columns:1fr}.trust-row{gap:18px}}

/* ===== Image principale SAMA-PACK ===== */
.hero-image-wrap {
  width: 100%;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f1f5f9;
  aspect-ratio: 16 / 9;
}

.hero-feature-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.hero-image-wrap:hover .hero-feature-image {
  transform: scale(1.03);
}

/* Adaptation aux téléphones */
@media (max-width: 600px) {
  .hero-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .hero-feature-image {
    object-position: center;
  }
}

/* =========================================
   SAMA-PACK — DESIGN PREMIUM
   Amélioration visuelle sans toucher à app.js
   ========================================= */

:root {
  --green: #176b43;
  --green2: #28a765;
  --ink: #15251c;
  --muted: #68786e;
  --line: #e4ebe5;
  --paper: #ffffff;
  --alt: #f5f8f5;
  --shadow: 0 18px 50px rgba(25, 68, 43, 0.09);
  --radius: 22px;
}

body {
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1180px, 92%);
}

/* NAVIGATION */

.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 235, 229, 0.9);
  box-shadow: 0 3px 18px rgba(20, 55, 32, 0.025);
}

.nav {
  min-height: 76px;
}

.brand {
  font-size: 19px;
  letter-spacing: -0.045em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #176b43, #28a765);
  box-shadow: 0 5px 13px rgba(23, 107, 67, 0.18);
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--green2);
}

/* BANNIÈRE D'ACCUEIL */

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 84px;
  background:
    radial-gradient(
      ellipse at 90% 18%,
      rgba(187, 247, 208, 0.55),
      transparent 38%
    ),
    linear-gradient(135deg, #f5faf6 0%, #ffffff 52%, #edf8ef 100%);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(30px, 5vw, 66px);
}



.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--green);
}

h1 {
  max-width: 690px;
  margin: 19px 0 22px;
  font-size: clamp(39px, 4.8vw, 65px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 900;
}

h1 span {
  color: var(--green);
}

.hero p {
  max-width: 540px;
  color: #53645a;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  flex-wrap: wrap;
  margin: 30px 0;
  gap: 13px;
}

/* BOUTONS */

.btn {
  min-height: 46px;
  border-radius: 13px;
  padding: 13px 19px;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #176b43, #218653);
  box-shadow: 0 8px 18px rgba(23, 107, 67, 0.16);
}

.btn.primary:hover {
  background: #125936;
  box-shadow: 0 11px 23px rgba(23, 107, 67, 0.2);
  transform: translateY(-2px);
}

.btn.secondary:hover {
  background: #c8f5d7;
  transform: translateY(-2px);
}

.btn.ghost:hover,
.icon-btn:hover {
  border-color: #b4d8bf;
  background: #f4faf5;
}

/* CHIFFRES DE CONFIANCE */

.trust-row {
  gap: clamp(20px, 3vw, 36px);
  margin-top: 40px;
}

.trust-row div {
  gap: 4px;
}

.trust-row strong {
  font-size: 27px;
  color: var(--green);
  letter-spacing: -0.04em;
}

.trust-row span {
  color: var(--muted);
  font-size: 12px;
}

/* CARTE PRINCIPALE ET IMAGE */

.hero-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(221, 233, 223, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 65px rgba(24, 70, 42, 0.11);
}

.hero-card-head {
  gap: 12px;
  font-size: 13px;
}

.hero-card-head small {
  font-size: 11px;
  font-weight: 700;
}

.hero-image-wrap {
  width: 100%;
  margin: 17px 0 21px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 19px;
  background: #f1f5f1;
}

.hero-feature-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover .hero-feature-image {
  transform: scale(1.035);
}

.top-packs {
  margin-top: 13px;
  gap: 9px;
}

.mini-pack {
  padding: 12px;
  border-color: #e7eee8;
  border-radius: 14px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.mini-pack:hover {
  border-color: #b9ddc2;
  background: #f8fcf8;
}

.mini-icon {
  flex-shrink: 0;
  border-radius: 12px;
}

.hero-note {
  padding: 13px;
  border: 1px solid #eaf2eb;
  border-radius: 13px;
  background: #f6faf6;
  color: #526457;
  line-height: 1.6;
}

/* SECTIONS */

.section {
  padding: 84px 0;
}

.section.alt {
  background: #f6f9f6;
}

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

.section h2 {
  margin-top: 9px;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.controls {
  align-items: center;
}

.input {
  min-height: 45px;
  border-color: #dfe8e0;
  border-radius: 12px;
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input:focus {
  border-color: #66b785;
  box-shadow: 0 0 0 4px rgba(40, 167, 101, 0.12);
}

/* CARTES PRODUITS */

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.product-card {
  min-width: 0;
  border: 1px solid #e5ece6;
  border-radius: 21px;
  box-shadow: 0 7px 24px rgba(22, 55, 32, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #c8dfcc;
  box-shadow: 0 18px 36px rgba(22, 55, 32, 0.09);
}

.pack-visual {
  min-height: 190px;
  background:
    radial-gradient(circle at 50% 35%, #ffffff 0, transparent 55%),
    linear-gradient(145deg, #eaf7ed, #f9fcf9);
}

.pack-box {
  border-color: #c9e8d0;
  border-radius: 20px;
  box-shadow: 0 12px 25px rgba(22, 101, 52, 0.1);
  transition: transform 0.25s ease;
}

.product-card:hover .pack-box {
  transform: translateY(-3px);
}

.product-body {
  padding: 21px;
  gap: 13px;
}

.product-name {
  font-size: 17px;
  line-height: 1.4;
}

.product-desc {
  color: #69796f;
  line-height: 1.7;
}

.price {
  color: var(--green);
  font-size: 23px;
  letter-spacing: -0.035em;
}

.product-actions .btn {
  padding: 11px 12px;
}

/* ÉTAPES DE COMMANDE */

.steps {
  gap: 18px;
}

.step {
  border-color: #e5ece6;
  border-radius: 19px;
  padding: 25px;
  box-shadow: 0 5px 18px rgba(20, 55, 32, 0.025);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 55, 32, 0.06);
}

.step b {
  background: #def5e4;
  color: var(--green);
}

.step h3 {
  font-size: 18px;
}

/* ESPACE PROFESSIONNEL */

.b2b-box {
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid #d3e9d8;
  border-radius: 25px;
  background:
    radial-gradient(circle at 95% 5%, #daf4e1 0, transparent 32%),
    linear-gradient(120deg, #f0faf2, #ffffff 72%);
}

.b2b-box h2 {
  max-width: 650px;
}

.b2b-box p {
  max-width: 650px;
}

/* CONTACT */

.contact-card {
  border-color: #e4ebe5;
  border-radius: 21px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-icon {
  background: #e1f7e7;
  border-radius: 15px;
}

/* PIED DE PAGE */

.footer {
  background: #10271b;
  padding-top: 52px;
}

.footer .brand-mark {
  background: #238553;
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ACCESSIBILITÉ */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(40, 167, 101, 0.45);
  outline-offset: 3px;
}

/* TABLETTES */

@media (max-width: 900px) {
  .hero {
    padding: 54px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero-card {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }

  .hero-image-wrap {
    aspect-ratio: 16 / 9;
  }

  .section-head {
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    grid-template-columns: auto 1fr;
  }

  .contact-card > button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* TÉLÉPHONES */

@media (max-width: 600px) {
  .wrap {
    width: 91%;
  }

  .nav {
    height: auto;
    min-height: 64px;
    gap: 10px;
  }

  .brand {
    gap: 7px;
    font-size: 17px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn {
    padding: 10px 11px;
    min-height: 40px;
  }

  .icon-btn {
    padding: 9px;
  }

  .hero {
    padding: 42px 0 48px;
  }

  .hero-grid {
    gap: 27px;
  }

  h1 {
    margin: 15px 0;
    font-size: clamp(36px, 10vw, 47px);
    line-height: 1.07;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    margin: 22px 0;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-row {
    justify-content: space-between;
    gap: 10px;
    margin-top: 27px;
  }

  .trust-row strong {
    font-size: 23px;
  }

  .trust-row span {
    font-size: 11px;
  }

  .hero-card {
    padding: 14px;
    border-radius: 21px;
  }

  .hero-image-wrap {
    margin: 13px 0 17px;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
  }

  .hero-note {
    font-size: 11px;
  }

  .section {
    padding: 57px 0;
  }

  .section-head {
    gap: 18px;
    margin-bottom: 25px;
  }

  .section h2 {
    font-size: 30px;
  }

  .controls {
    width: 100%;
    gap: 9px;
  }

  .controls .input {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .pack-visual {
    min-height: 175px;
  }

  .product-body {
    padding: 18px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .step {
    padding: 20px;
  }

  .b2b-box {
    padding: 23px;
    border-radius: 21px;
    gap: 20px;
  }

  .b2b-actions {
    width: 100%;
  }

  .b2b-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .contact-grid {
    gap: 22px;
  }

  .contact-card {
    padding: 18px;
    gap: 12px;
  }

  .footer {
    padding-top: 38px;
  }

  .footer-grid {
    gap: 25px;
  }
}

/* Respecter les préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ===== SAMA-PACK : image principale plus grande ===== */

/* Donner davantage de place à la partie visuelle */
.hero-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 38px;
  align-items: center;
}

/* Agrandir la carte qui contient l'image */
.hero-card {
  width: 100%;
  max-width: none;
  padding: 18px;
  border-radius: 24px;
}

/* Augmenter nettement la taille de l'image */
.hero-image-wrap {
  width: 100%;
  height: 400px;
  min-height: 400px;
  aspect-ratio: auto;
  margin: 16px 0 22px;
  overflow: hidden;
  border-radius: 18px;
  background: #f1f5f1;
}

/* Faire occuper toute la zone disponible à la photo */
.hero-feature-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Tablettes */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero-card {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  .hero-image-wrap {
    height: 360px;
    min-height: 360px;
  }
}

/* Téléphones */
@media (max-width: 600px) {
  .hero-image-wrap {
    height: 270px;
    min-height: 270px;
  }

  .hero-card {
    padding: 14px;
  }
}

/* Sama-Pack V2: account, secure checkout, audit, product management and notifications. */
.notification-btn{position:relative;white-space:nowrap}.notification-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;background:#dc2626;color:#fff!important;border-radius:999px;font-size:10px;font-weight:900;line-height:1}.nav-actions .btn{white-space:nowrap}.toast.toast-error{background:#991b1b}.muted{color:var(--muted);font-size:14px;line-height:1.6}.inline-message{padding:12px 14px;margin:12px 0;border-radius:12px;background:#f0fdf4;color:#166534;border:1px solid #bbf7d0;font-size:13px}.auth-actions{display:grid;gap:4px}.dark-link{color:#475569!important;font-size:13px}.auth-actions .link-btn{text-align:center}.account-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.account-orders,.account-password,.bootstrap-panel{margin:14px 0}.account-orders h3,.account-password h3,.bootstrap-panel h3{margin-bottom:14px}.compact-empty{padding:18px}.notification-list{display:grid;gap:10px;margin-top:18px}.notification-item{border:1px solid var(--line);padding:14px;border-radius:14px;background:#fff}.notification-item.unread{background:#f0fdf4;border-color:#bbf7d0}.notification-title{font-weight:850;font-size:14px}.notification-message{color:#475569;font-size:13px;line-height:1.6;margin-top:5px}.notification-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:11px;margin-top:8px}.notification-meta .link-btn{padding:0}.confirmation-mark{display:grid;place-items:center;margin:18px auto;width:64px;height:64px;background:#dcfce7;color:#166534;border-radius:50%;font-size:34px;font-weight:900}.product-card .pack-visual{position:relative;overflow:hidden}.product-photo{display:block;max-width:100%;width:100%;height:100%;min-height:165px;object-fit:contain;position:relative;z-index:1}.product-card .pack-visual.has-photo{padding:0;background:#fff}.product-card .pack-visual.has-photo .product-photo{height:190px;min-height:190px;object-fit:contain;padding:8px}.product-card .photo-fallback{position:absolute;inset:0;margin:auto}.product-photo-detail{max-height:300px;object-fit:contain;margin:16px auto}.check-label{display:flex!important;align-items:center;gap:9px;font-size:13px!important;color:var(--ink)!important}.check-label input{width:17px;height:17px;accent-color:var(--green)}.form-actions{display:flex;gap:10px;flex-wrap:wrap}.form-actions .btn{flex:1}.admin-panel-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}.admin-panel-head h3{margin:0}.admin-panel-head .small-note{text-align:right}.loading-panel{padding:24px;color:var(--muted)}.table-actions{display:flex;gap:6px;align-items:center}.table-actions .btn{white-space:nowrap}.stock-field{width:110px;min-width:85px;padding:8px}.stock-field[data-stock-key="supplier"]{width:150px}.admin-form input:disabled{background:#f8fafc;color:#94a3b8}.modal-card h2{font-size:25px;line-height:1.15;margin:5px 0 10px}.modal-card .summary{margin-top:12px}.modal-card form{margin-top:15px}.modal-card .input{width:100%;min-width:0}
@media(max-width:900px){.nav{gap:10px}.nav-actions{gap:6px}.nav-actions .btn.small{padding:8px;font-size:11px}.notification-btn{padding:8px}}
@media(max-width:600px){.topbar .nav{width:96vw}.brand{gap:6px;font-size:13px}.brand-mark{width:32px;height:32px}.nav-actions{gap:4px}.nav-actions .btn.small{font-size:10px;padding:7px 8px}.notification-btn{padding:7px 8px}.admin-panel-head{align-items:flex-start;flex-direction:column}.admin-panel-head .small-note{text-align:left}.table-actions{flex-direction:column;align-items:stretch}.table-actions .btn{justify-content:center}.modal{padding:10px}.modal-card{padding:18px;border-radius:18px;max-height:94vh}.checkout-grid{grid-template-columns:1fr}.checkout-grid .full{grid-column:auto}.account-buttons{flex-direction:column}.account-buttons .btn{width:100%}.product-card .pack-visual.has-photo .product-photo{height:220px;min-height:220px}}


/* SAMA-PACK: promotions, pagination et catalogue mobile à deux colonnes */
.promo-section { background:linear-gradient(180deg,#f0fdf4 0%,#fff 100%); }
.promo-section-head { align-items:center; }
.promo-section-head .muted { margin:10px 0 0; }
.promo-arrows { display:flex; gap:8px; flex-shrink:0; }
.promo-card { display:grid; grid-template-columns:minmax(0,0.95fr) minmax(0,1.05fr); overflow:hidden; border:1px solid #bbf7d0; border-radius:24px; background:#fff; box-shadow:0 18px 46px rgba(15,23,42,.08); min-height:300px; }
.promo-image { display:flex; align-items:center; justify-content:center; min-height:300px; padding:22px; background:linear-gradient(135deg,#dcfce7,#f8fafc); }
.promo-image .promo-visual { width:100%; min-height:250px; display:flex; align-items:center; justify-content:center; }
.promo-image .product-photo { width:100%; height:260px; min-height:260px; object-fit:contain; }
.promo-image .pack-box { width:190px; height:135px; }
.promo-copy { padding:30px; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.promo-copy h3 { margin:0; font-size:clamp(22px,3vw,32px); line-height:1.15; }
.promo-copy p { margin:0; color:var(--muted); line-height:1.6; }
.promo-price-line { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:2px 0; }
.promo-price-line strong { font-size:27px; font-weight:950; color:#166534; }
.promo-price-line del,.old-price { color:#94a3b8; font-size:13px; }
.promo-label,.product-promo-ribbon { background:#dc2626; color:#fff; border-radius:999px; font-size:11px; font-weight:850; padding:5px 9px; }
.promo-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.promo-copy small { color:var(--muted); font-size:11px; margin-top:auto; }
.promo-dots { display:flex; justify-content:center; gap:8px; margin-top:16px; }
.promo-dot { width:9px; height:9px; padding:0; border:0; border-radius:999px; background:#bbf7d0; cursor:pointer; }
.promo-dot.active { width:25px; background:#15803d; }
.product-promo-ribbon { position:absolute; z-index:2; left:12px; top:12px; }
.promo-price-block { display:flex; flex-direction:column; align-items:flex-start; gap:1px; }
.price-row .promo-label { white-space:nowrap; }
.promo-admin-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; border:1px dashed #bbf7d0; border-radius:14px; padding:12px; background:#f8fffb; }
.promo-admin-fields .check-label,.promo-admin-fields p { grid-column:1/-1; }
.product-pagination { display:flex; align-items:center; justify-content:center; gap:14px; padding-top:26px; color:var(--muted); font-size:13px; }
.product-pagination:empty { display:none; }
.product-pagination button:disabled { opacity:.45; cursor:not-allowed; }
@media(max-width:700px) {
  .promo-card { grid-template-columns:1fr; }
  .promo-image { min-height:175px; padding:12px; }
  .promo-image .promo-visual { min-height:170px; }
  .promo-image .product-photo { height:180px; min-height:180px; }
  .promo-copy { padding:18px; }
  .promo-copy h3 { font-size:22px; }
  .promo-section-head { flex-direction:row; align-items:center; }
  .promo-admin-fields { grid-template-columns:1fr; }
  .product-pagination { gap:8px; font-size:11px; padding-top:18px; flex-wrap:wrap; }
}
@media(max-width:600px) {
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:9px; }
  .product-card { min-width:0; border-radius:13px; }
  .product-card .pack-visual.has-photo .product-photo { height:145px; min-height:145px; padding:5px; object-fit:contain; }
  .product-card .pack-visual { min-height:145px; padding:8px; }
  .product-card .pack-box { width:100px; height:76px; border-radius:12px; }
  .product-card .pack-box .emoji { font-size:28px; }
  .product-card .pack-box .pack-code { font-size:10px; }
  .product-body { padding:10px; gap:7px; }
  .product-name { font-size:13px; line-height:1.25; overflow-wrap:anywhere; }
  .product-cat { font-size:9px; letter-spacing:.06em; }
  .product-desc { font-size:11px; line-height:1.35; min-height:0; }
  .product-card .price { font-size:15px; line-height:1.2; }
  .product-card .old-price { font-size:10px; }
  .product-card .promo-label { font-size:9px; padding:4px 6px; }
  .product-card .price-row { align-items:flex-start; gap:4px; flex-wrap:wrap; }
  .product-card .small-note { font-size:9px; }
  .product-actions { gap:5px; }
  .product-actions .btn { min-width:0; padding:8px 5px; font-size:10px; border-radius:9px; }
}


/* SAMA-PACK — accueil et catalogue compacts */
.hero-card.promo-hero-card { min-width:0; padding:22px; border-radius:24px; overflow:hidden; }
.promo-hero-card .hero-card-head { gap:12px; margin-bottom:15px; }
.promo-hero-card .hero-card-head>span { font-size:15px; font-weight:900; letter-spacing:-.02em; }
.promo-hero-card .promo-arrows { gap:6px; }
.promo-hero-card .promo-arrows .btn { width:34px; height:34px; padding:0; font-size:15px; }
.promo-inline-section { min-width:0; }
.promo-card { display:grid; grid-template-columns:112px minmax(0,1fr); align-items:center; gap:14px; min-height:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
.promo-image { width:112px; min-height:112px; max-height:112px; padding:8px; border-radius:16px; background:linear-gradient(140deg,#e8f7ec,#f8fafc); overflow:hidden; }
.promo-image .promo-visual { display:grid; place-items:center; width:100%; min-height:96px; }
.promo-image .product-photo { width:100%; height:96px; min-height:96px; object-fit:contain; }
.promo-image .pack-box { width:80px; height:62px; border-radius:13px; }
.promo-image .pack-box .emoji { font-size:25px; }
.promo-image .pack-box .pack-code { font-size:10px; }
.promo-copy { display:flex; align-items:flex-start; flex-direction:column; min-width:0; gap:7px; padding:0; }
.promo-copy h3 { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin:0; font-size:clamp(15px,1.5vw,19px); line-height:1.25; }
.promo-price-line { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; margin:0; }
.promo-price-line strong { font-size:20px; line-height:1.2; }
.promo-price-line del { font-size:12px; }
.promo-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.promo-actions .btn { padding:8px 10px; font-size:12px; border-radius:10px; }
.promo-hero-card .promo-dots { margin-top:13px; }
.promo-hero-card .promo-dot { width:7px; height:7px; }
.promo-hero-card .promo-dot.active { width:21px; }
.promo-slide-in { animation:promo-enter-from-left 360ms cubic-bezier(.2,.7,.25,1) both; }
@keyframes promo-enter-from-left { from { opacity:0; transform:translateX(-22px); } to { opacity:1; transform:translateX(0); } }
.product-card .product-body { gap:12px; }
.product-card .product-name { overflow-wrap:anywhere; }
#footerAdminSection { display:flex; flex-direction:column; gap:8px; }
#footerAdminSection.hidden { display:none !important; }
@media(max-width:700px) {
  .hero-card.promo-hero-card { padding:15px; border-radius:18px; }
  .promo-hero-card .hero-card-head { margin-bottom:12px; }
  .promo-hero-card .hero-card-head>span { font-size:13px; }
  .promo-card { grid-template-columns:86px minmax(0,1fr); gap:10px; }
  .promo-image { width:86px; min-height:88px; max-height:88px; padding:5px; border-radius:13px; }
  .promo-image .promo-visual { min-height:76px; }
  .promo-image .product-photo { height:76px; min-height:76px; }
  .promo-image .pack-box { width:66px; height:52px; }
  .promo-copy { gap:6px; }
  .promo-copy h3 { font-size:14px; }
  .promo-price-line { gap:6px; }
  .promo-price-line strong { font-size:17px; }
  .promo-price-line del { font-size:10px; }
  .promo-label { font-size:9px; padding:4px 7px; }
  .promo-actions { gap:5px; }
  .promo-actions .btn { padding:7px 8px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .promo-slide-in { animation:none; } }

/* Masquer l'emoji et le numéro dans les images des promotions */
.promo-image .pack-box {
  display: none !important;
}

/* ===== Accueil SAMA-PACK : ventes flash immersives + fond administrable ===== */
.hero.has-custom-bg {
  background-image: linear-gradient(90deg, rgba(248,252,249,.96) 0%, rgba(255,255,255,.89) 48%, rgba(239,250,242,.62) 100%), var(--hero-custom-background);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero.has-custom-bg .hero-card { background: rgba(255,255,255,.91); backdrop-filter: blur(12px); }
.discovery-hero-card { align-self: stretch; display:flex; flex-direction:column; justify-content:center; }
.discovery-hero-card .hero-card-head { display:flex; align-items:flex-start; flex-direction:column; gap:4px; }
.discovery-hero-card .hero-card-head>span { font-size:18px; font-weight:950; letter-spacing:-.03em; }
.discovery-hero-card .hero-card-head small { color:var(--muted); font-size:12px; font-weight:500; }
.discovery-hero-card .top-packs { gap:12px; }
.discovery-hero-card .mini-pack { padding:13px; border-radius:17px; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.discovery-hero-card .mini-pack:hover { transform:translateY(-2px); border-color:#b4d8bf; box-shadow:0 10px 24px rgba(23,107,67,.08); }
.discovery-hero-card .mini-icon { width:48px; height:48px; border-radius:15px; font-size:22px; flex-shrink:0; }
.hero-discovery-link { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-top:16px; padding:12px 14px; border-radius:13px; background:#ecfdf3; color:var(--green); font-weight:850; font-size:13px; }
.hero-discovery-link span { font-size:20px; }

/* Large, image-first Vente flash carousel */
.flash-section { background:linear-gradient(180deg,#f4f8f4 0%,#fff 100%); padding-top:62px; padding-bottom:66px; scroll-margin-top:88px; }
.flash-section-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.flash-section-header h2 { margin:6px 0 0; font-size:clamp(32px,4.5vw,50px); line-height:1.04; letter-spacing:-.055em; }
.flash-section-header p { margin:10px 0 0; color:var(--muted); font-size:15px; }
.flash-title-mark { color:#ef8b24; }
.flash-arrows { display:flex; gap:8px; padding-bottom:4px; }
.flash-arrows .btn { width:46px; height:46px; padding:0; border-radius:14px; font-size:21px; }
.flash-slide { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); align-items:stretch; min-height:405px; overflow:hidden; border-radius:30px; background:linear-gradient(125deg,#e3f7e9 0%,#d2f0dc 50%,#0b5a36 50%,#073f29 100%); box-shadow:0 24px 58px rgba(18,75,43,.17); }
.flash-photo { position:relative; min-width:0; min-height:405px; padding:32px 26px 32px 34px; display:grid; place-items:center; overflow:hidden; background:radial-gradient(ellipse at 50% 48%,rgba(255,255,255,.98),rgba(235,249,239,.80) 64%,rgba(218,242,225,.20) 100%); }
.flash-photo::before { content:"SAMA-PACK"; position:absolute; left:25px; bottom:15px; color:rgba(22,107,67,.11); font-size:clamp(32px,5vw,64px); font-weight:1000; letter-spacing:-.07em; line-height:1; pointer-events:none; }
.flash-photo .promo-visual, .flash-photo .product-image-frame { position:relative; z-index:1; display:grid; place-items:center; width:100%; min-height:325px; height:100%; background:transparent; }
.flash-photo .product-photo { display:block; width:100%; height:335px; max-height:335px; object-fit:contain; filter:drop-shadow(0 18px 22px rgba(24,63,37,.14)); }
.flash-photo .promo-visual-empty { min-height:325px; }
.flash-content { position:relative; z-index:2; align-self:center; display:flex; flex-direction:column; gap:18px; min-width:0; margin:28px 0 28px -28px; padding:34px clamp(24px,3.2vw,44px); border:1px solid rgba(255,255,255,.22); border-radius:25px; color:#fff; background:linear-gradient(135deg,rgba(10,91,53,.95),rgba(4,59,36,.99)); box-shadow:0 18px 40px rgba(0,0,0,.15); }
.flash-kickers { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.flash-badge { display:inline-flex; align-items:center; gap:5px; padding:7px 11px; background:#ffddae; border-radius:999px; color:#863b08; font-size:10px; letter-spacing:.09em; font-weight:1000; }
.flash-offer-label { color:#d3fbe0; font-size:12px; font-weight:800; }
.flash-copy-main h3 { margin:0; font-size:clamp(27px,3vw,39px); line-height:1.05; letter-spacing:-.045em; overflow-wrap:anywhere; }
.flash-copy-main p { margin:12px 0 0; color:rgba(255,255,255,.78); font-size:14px; line-height:1.65; }
.flash-price-row { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.flash-price-row strong { color:#fff; font-size:clamp(28px,3vw,38px); font-weight:1000; line-height:1.1; letter-spacing:-.05em; }
.flash-price-row del { color:rgba(255,255,255,.6); font-size:14px; }
.flash-discount { padding:5px 8px; background:#ffdca7; color:#813c09; border-radius:8px; font-size:12px; font-weight:950; }
.flash-countdown { display:flex; flex-direction:column; gap:5px; border:1px solid rgba(255,255,255,.19); border-radius:13px; padding:11px 13px; background:rgba(255,255,255,.08); }
.flash-countdown span { color:rgba(255,255,255,.68); font-size:9px; font-weight:950; letter-spacing:.13em; }
.flash-countdown strong { color:#fff; font-size:17px; font-variant-numeric:tabular-nums; letter-spacing:.03em; }
.flash-countdown.is-open { flex-direction:row; justify-content:space-between; align-items:center; gap:10px; }
.flash-countdown.is-open strong { font-size:12px; letter-spacing:0; }
.flash-slide .promo-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:0; }
.flash-detail-btn,.flash-add-btn { border-radius:12px; min-height:46px; padding:12px 15px; font-size:13px; font-weight:900; }
.flash-detail-btn { background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.28); color:#fff; }
.flash-detail-btn:hover { background:rgba(255,255,255,.18); }
.flash-add-btn { background:#d3fbe0; color:#075331; box-shadow:0 8px 18px rgba(0,0,0,.12); }
.flash-add-btn:hover { background:#fff; transform:translateY(-1px); }
.flash-dots { display:flex; justify-content:center; gap:8px; margin-top:19px; }
.flash-dots:empty { display:none; }
.flash-dots .promo-dot { border:0; width:8px; height:8px; padding:0; border-radius:999px; background:#c9d8ce; cursor:pointer; transition:width .2s ease,background .2s ease; }
.flash-dots .promo-dot.active { width:26px; background:var(--green); }
.flash-empty { display:flex; align-items:center; gap:22px; min-height:210px; padding:clamp(24px,5vw,50px); border:1px solid #dcebe0; border-radius:25px; background:linear-gradient(115deg,#f1fbf4,#fff); }
.flash-empty-icon { flex:0 0 68px; width:68px; height:68px; display:grid; place-items:center; border-radius:20px; background:#d8f7e2; color:#0c7947; font-size:34px; }
.flash-empty strong { font-size:22px; letter-spacing:-.03em; }
.flash-empty p { color:var(--muted); margin:6px 0 18px; font-size:14px; }
.homepage-bg-preview-wrap { display:grid; gap:8px; }
.homepage-bg-preview { width:min(420px,100%); max-height:160px; object-fit:cover; border-radius:13px; border:1px solid var(--line); }

/* Navigation hamburger de la boutique : activée uniquement sur téléphone */
.mobile-bottom-nav { display:none; }
.mobile-menu-shell { display:none; position:relative; flex:0 0 auto; align-items:center; }

html { scroll-padding-top:88px; }
@media (max-width:900px) {
  .flash-slide { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .flash-content { padding:28px 24px; }
  .flash-photo { padding:24px 18px; }
}
@media (max-width:700px) {
  body { padding-bottom:0; }
  #adminBtn { display:none !important; }
  .nav-actions { position:relative; }
  .mobile-menu-shell {
    display:flex;
    position:relative;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
  }
  .mobile-menu-toggle {
    display:flex;
    align-items:center;
    justify-content:center;
    width:39px;
    height:40px;
    min-height:40px;
    padding:8px;
    border:1px solid #dce9df;
    border-radius:10px;
    background:#f7fbf8;
    color:#17452d;
    cursor:pointer;
  }
  .mobile-menu-shell.is-open .mobile-menu-toggle {
    background:#eaf6ed;
    border-color:#bddac5;
  }
  .mobile-menu-icon {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    width:20px;
    flex:0 0 20px;
  }
  .mobile-menu-icon i {
    display:block;
    width:20px;
    height:2px;
    border-radius:2px;
    background:currentColor;
  }
  .mobile-nav-menu {
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    left:auto;
    z-index:95;
    width:min(270px,calc(100vw - 16px));
    max-height:calc(100dvh - 95px - env(safe-area-inset-top));
    padding:8px;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    border:1px solid rgba(220,233,224,.98);
    border-radius:16px;
    background:rgba(255,255,255,.98);
    box-shadow:0 12px 36px rgba(9,49,27,.2);
  }
  .mobile-menu-shell.is-open .mobile-nav-menu {
    display:flex;
    flex-direction:column;
    gap:4px;
  }
  .mobile-nav-menu .mobile-nav-item {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:13px;
    width:100%;
    min-width:0;
    min-height:44px;
    padding:10px 12px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#34483b;
    text-decoration:none;
    text-align:left;
    cursor:pointer;
    font:inherit;
  }
  .mobile-nav-menu .mobile-nav-item > span {
    display:inline-flex;
    flex:0 0 24px;
    align-items:center;
    justify-content:center;
    width:24px;
    font-size:19px;
    line-height:1.1;
  }
  .mobile-nav-menu .mobile-nav-item > small {
    color:inherit;
    font-size:13px;
    font-weight:800;
    white-space:nowrap;
  }
  .mobile-nav-menu .mobile-nav-item:hover,
  .mobile-nav-menu .mobile-nav-item:focus-visible {
    color:var(--green);
    background:#edf9f0;
    outline:none;
  }
  .mobile-nav-menu .mobile-nav-item.hidden { display:none !important; }
  .flash-section { padding:38px 0 42px; }
  .flash-section-header { align-items:center; gap:12px; margin-bottom:17px; }
  .flash-section-header h2 { font-size:33px; }
  .flash-section-header p { max-width:260px; font-size:12px; line-height:1.5; }
  .flash-arrows { gap:5px; }
  .flash-arrows .btn { width:38px; height:38px; font-size:18px; }
  .flash-slide { display:flex; flex-direction:column; min-height:0; border-radius:23px; background:#083f2a; }
  .flash-photo { min-height:235px; height:235px; padding:15px 20px 0; }
  .flash-photo::before { left:12px; bottom:7px; font-size:32px; }
  .flash-photo .promo-visual,.flash-photo .product-image-frame { min-height:210px; }
  .flash-photo .product-photo { height:215px; max-height:215px; }
  .flash-content { margin:-34px 11px 11px; padding:22px 19px; gap:14px; border-radius:19px; }
  .flash-copy-main h3 { font-size:27px; }
  .flash-copy-main p { font-size:12px; margin-top:8px; }
  .flash-price-row strong { font-size:29px; }
  .flash-price-row del { font-size:12px; }
  .flash-countdown strong { font-size:15px; }
  .flash-slide .promo-actions { display:grid; grid-template-columns:1fr 1.2fr; }
  .flash-detail-btn,.flash-add-btn { padding:10px 8px; font-size:12px; }
  .flash-empty { min-height:0; gap:14px; padding:22px 17px; border-radius:20px; align-items:flex-start; }
  .flash-empty-icon { flex-basis:48px; width:48px; height:48px; border-radius:15px; font-size:25px; }
  .flash-empty strong { font-size:17px; }
  .flash-empty p { font-size:12px; line-height:1.6; }
  .hero.has-custom-bg { background-image:linear-gradient(90deg,rgba(250,253,250,.94),rgba(255,255,255,.82)),var(--hero-custom-background); }
  .discovery-hero-card .mini-pack { padding:10px; }
  .toast { bottom:calc(92px + env(safe-area-inset-bottom)); right:12px; left:12px; text-align:center; }
}
@media (prefers-reduced-motion:reduce) {
  .flash-slide,.flash-photo img,.mobile-nav-item { animation:none!important; transition:none!important; }
}

/* ===== SAMA-PACK home: simple image-first layout ===== */
/* Place the existing flash-sales carousel where the removed discovery panel was. */
.hero-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(310px, .97fr);
  align-items: center;
  gap: clamp(26px, 4vw, 54px);
}
.hero-content { min-width: 0; }
.hero-promo-panel.flash-section {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  scroll-margin-top: 90px;
}
.hero-promo-panel .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}
.hero-promo-panel .flash-section-header {
  margin-bottom: 14px;
  align-items: center;
  gap: 12px;
}
.hero-promo-panel .flash-section-header h2 {
  color: var(--ink);
  margin: 0;
  font-size: clamp(25px, 2.7vw, 32px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.hero-promo-panel .flash-title-mark { display: none; }
.hero-promo-panel .flash-section-header p {
  color: #64748b;
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.5;
}
.hero-promo-panel .flash-arrows { gap: 6px; padding: 0; }
.hero-promo-panel .flash-arrows .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 17px;
}
.hero-promo-panel .flash-slide {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.10);
}
.hero-promo-panel .flash-photo {
  min-height: 170px;
  height: 170px;
  padding: 12px 18px;
  background: #f7faf7;
}
.hero-promo-panel .flash-photo::before { display: none; }
.hero-promo-panel .flash-photo .promo-visual,
.hero-promo-panel .flash-photo .product-image-frame {
  min-height: 145px;
  height: 100%;
}
.hero-promo-panel .flash-photo .product-photo {
  width: 100%;
  height: 145px;
  max-height: 145px;
  object-fit: contain;
  filter: none;
}
.hero-promo-panel .flash-content {
  min-width: 0;
  gap: 11px;
  margin: 0;
  padding: 17px 18px 18px;
  border: 0;
  border-top: 1px solid #edf1ee;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}
.hero-promo-panel .flash-kickers { gap: 8px; align-items: center; }
.hero-promo-panel .flash-badge {
  padding: 5px 8px;
  border-radius: 6px;
  background: #eaf6ed;
  color: #166534;
  font-size: 9px;
  letter-spacing: .08em;
}
.hero-promo-panel .flash-offer-label { color: #64748b; font-size: 11px; }
.hero-promo-panel .flash-copy-main h3 {
  color: #0f172a;
  margin: 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.hero-promo-panel .flash-copy-main p {
  color: #64748b;
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.55;
}
.hero-promo-panel .flash-price-row { gap: 9px; }
.hero-promo-panel .flash-price-row strong {
  color: #166534;
  font-size: clamp(25px, 2.5vw, 31px);
  letter-spacing: -.04em;
}
.hero-promo-panel .flash-price-row del { color: #94a3b8; font-size: 12px; }
.hero-promo-panel .flash-discount {
  padding: 4px 6px;
  border-radius: 5px;
  background: #eef7ef;
  color: #166534;
  font-size: 10px;
}
.hero-promo-panel .flash-countdown {
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #e5eee7;
  border-radius: 9px;
  background: #f7faf7;
}
.hero-promo-panel .flash-countdown span {
  color: #64748b;
  font-size: 8px;
  letter-spacing: .08em;
}
.hero-promo-panel .flash-countdown strong {
  color: #1e293b;
  font-size: 13px;
}
.hero-promo-panel .flash-countdown.is-open strong { font-size: 12px; }
.hero-promo-panel .promo-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.hero-promo-panel .flash-detail-btn,
.hero-promo-panel .flash-add-btn {
  min-width: 0;
  min-height: 41px;
  padding: 9px 8px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: none;
}
.hero-promo-panel .flash-detail-btn {
  color: #334155;
  background: #fff;
  border: 1px solid #dbe4dd;
}
.hero-promo-panel .flash-add-btn { color: #fff; background: #166534; }
.hero-promo-panel .flash-add-btn:hover { background: #14532d; transform: none; }
.hero-promo-panel .flash-dots { margin-top: 11px; }
.hero-promo-panel .flash-dots .promo-dot { background: #cbd5ce; }
.hero-promo-panel .flash-dots .promo-dot.active { background: #166534; }
.hero-promo-panel .flash-empty {
  min-height: 0;
  display: block;
  padding: 22px;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 17px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
}
.hero-promo-panel .flash-empty-icon { display: none; }
.hero-promo-panel .flash-empty strong { font-size: 18px; color: #0f172a; }
.hero-promo-panel .flash-empty p { color: #64748b; margin: 7px 0 15px; font-size: 13px; }

/* The custom image is now the real hero background; the text sits on top. */
.hero.has-custom-bg {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: #173d29;
  background-image: linear-gradient(
    100deg,
    rgba(4, 27, 16, .64) 0%,
    rgba(4, 27, 16, .43) 50%,
    rgba(4, 27, 16, .27) 100%
  ), var(--hero-custom-background);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero.has-custom-bg .eyebrow { color: #c5f0d1; }
.hero.has-custom-bg h1 { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.12); }
.hero.has-custom-bg h1 span { color: #b5edc6; }
.hero.has-custom-bg .hero-content > p { color: rgba(255,255,255,.91); }
.hero.has-custom-bg .trust-row strong { color: #fff; }
.hero.has-custom-bg .trust-row span { color: rgba(255,255,255,.78); }
.hero.has-custom-bg .btn.secondary {
  color: #fff;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.62);
}
.hero.has-custom-bg .btn.secondary:hover { background: rgba(255,255,255,.22); }
.hero.has-custom-bg .hero-promo-panel .flash-section-header h2 { color: #fff; }
.hero.has-custom-bg .hero-promo-panel .flash-section-header p { color: rgba(255,255,255,.82); }
.hero.has-custom-bg .hero-promo-panel .flash-arrows .btn {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.10);
}
.hero.has-custom-bg .hero-promo-panel .flash-arrows .btn:hover { background: rgba(255,255,255,.2); }

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    max-width: 780px;
  }
  .hero-promo-panel { max-width: 620px; }
  .hero.has-custom-bg {
    background-image: linear-gradient(
      180deg,
      rgba(4, 27, 16, .43) 0%,
      rgba(4, 27, 16, .57) 52%,
      rgba(4, 27, 16, .62) 100%
    ), var(--hero-custom-background);
    background-position: center 38%;
  }
}
@media (max-width: 600px) {
  .hero { padding: 38px 0 44px; }
  .hero-grid { gap: 26px; }
  h1 { font-size: clamp(36px, 9.5vw, 47px); line-height: 1.02; }
  .hero.has-custom-bg { background-position: center 32%; }
  .hero-content > p { font-size: 15px; line-height: 1.65; }
  .hero-actions { gap: 9px; margin: 21px 0 0; }
  .trust-row { gap: 17px; margin-top: 25px; }
  .trust-row strong { font-size: 21px; }
  .trust-row span { font-size: 10px; }
  .hero-promo-panel .flash-section-header { margin-bottom: 11px; }
  .hero-promo-panel .flash-section-header h2 { font-size: 26px; }
  .hero-promo-panel .flash-section-header p { max-width: 235px; font-size: 12px; }
  .hero-promo-panel .flash-photo { height: 158px; min-height: 158px; }
  .hero-promo-panel .flash-photo .promo-visual,
  .hero-promo-panel .flash-photo .product-image-frame { min-height: 132px; }
  .hero-promo-panel .flash-photo .product-photo { height: 132px; max-height: 132px; }
  .hero-promo-panel .flash-content { padding: 15px; gap: 10px; }
  .hero-promo-panel .flash-copy-main h3 { font-size: 20px; }
  .hero-promo-panel .flash-price-row strong { font-size: 25px; }
  .hero-promo-panel .flash-detail-btn,
  .hero-promo-panel .flash-add-btn { min-height: 42px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-promo-panel .flash-slide,
  .hero-promo-panel .flash-photo img,
  .hero-promo-panel .flash-detail-btn,
  .hero-promo-panel .flash-add-btn { animation: none !important; transition: none !important; }
}

/* ===== SAMA-PACK mobile home: compact app-style layout ===== */
/* Scoped to phones: desktop composition and other pages stay unchanged. */
@media (max-width: 600px) {
  .topbar { background: rgba(255,255,255,.96); }
  .nav { height: 58px; gap: 8px; }
  .brand { gap: 7px; flex: 0 0 auto; font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .nav-actions { gap: 5px; flex-shrink: 0; }
  .icon-btn { min-width: 35px; padding: 7px 8px; border-radius: 10px; font-size: 13px; }
  .nav-actions .btn.small { padding: 8px 9px; font-size: 11px; border-radius: 10px; }

  .hero {
    padding: 22px 0 24px;
    overflow: hidden;
  }
  .hero-grid {
    width: min(100% - 28px, 520px);
    max-width: 520px;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .hero-content { min-width: 0; }
  .hero-content .eyebrow {
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: .12em;
  }
  .hero-content h1 {
    max-width: 15ch;
    margin: 8px 0 9px;
    font-size: clamp(31px, 8.2vw, 38px);
    line-height: 1.03;
    letter-spacing: -.045em;
    text-wrap: balance;
  }
  .hero-content > p {
    max-width: 36ch;
    margin: 0;
    font-size: 13px;
    line-height: 1.48;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    margin: 15px 0 0;
  }
  .hero-actions .btn {
    min-width: 0;
    min-height: 42px;
    padding: 9px 7px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .hero.has-custom-bg .hero-actions .btn.primary {
    color: #14532d;
    background: #f4fff7;
    border: 1px solid rgba(255,255,255,.7);
  }
  .trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px solid rgba(100,116,139,.2);
  }
  .trust-row > div {
    min-width: 0;
    align-items: center;
    padding: 0 4px;
    text-align: center;
  }
  .trust-row > div + div { border-left: 1px solid rgba(100,116,139,.2); }
  .trust-row strong { font-size: 18px; line-height: 1.15; }
  .trust-row span { margin-top: 3px; font-size: 9px; line-height: 1.25; }
  .hero.has-custom-bg .trust-row { border-top-color: rgba(255,255,255,.25); }
  .hero.has-custom-bg .trust-row > div + div { border-left-color: rgba(255,255,255,.22); }

  /* Flash offer appears as a compact product module, not a second long page. */
  .hero-promo-panel { width: 100%; max-width: none; min-width: 0; }
  .hero-promo-panel .flash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
  }
  .hero-promo-panel .flash-section-header > div:first-child { min-width: 0; }
  .hero-promo-panel .flash-section-header .eyebrow {
    font-size: 8px;
    letter-spacing: .12em;
  }
  .hero-promo-panel .flash-section-header h2 {
    margin: 3px 0 0;
    font-size: 22px;
    line-height: 1.08;
  }
  .hero-promo-panel .flash-section-header p { display: none; }
  .hero-promo-panel .flash-arrows { flex: 0 0 auto; gap: 5px; }
  .hero-promo-panel .flash-arrows .btn {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 15px;
  }
  .hero-promo-panel .flash-slide {
    display: grid;
    grid-template-columns: minmax(88px, .36fr) minmax(0, .64fr);
    align-items: stretch;
    min-height: 0;
    border: 1px solid #e2e8e4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15,23,42,.08);
  }
  .hero-promo-panel .flash-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 8px;
    background: #f3f7f4;
  }
  .hero-promo-panel .flash-photo .promo-visual,
  .hero-promo-panel .flash-photo .product-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
  }
  .hero-promo-panel .flash-photo .product-photo {
    display: block;
    width: 100%;
    height: 124px;
    max-height: 124px;
    object-fit: contain;
    filter: none;
  }
  .hero-promo-panel .flash-content {
    min-width: 0;
    align-self: stretch;
    gap: 7px;
    margin: 0;
    padding: 10px 10px 11px;
    border: 0;
    border-left: 1px solid #edf1ee;
    border-radius: 0 13px 13px 0;
    color: #0f172a;
    background: #fff;
    box-shadow: none;
  }
  .hero-promo-panel .flash-kickers { display: flex; flex-wrap: wrap; gap: 4px; }
  .hero-promo-panel .flash-badge {
    padding: 4px 6px;
    border-radius: 5px;
    background: #eaf5ed;
    color: #166534;
    font-size: 0;
    line-height: 1.1;
    letter-spacing: .06em;
  }
  .hero-promo-panel .flash-badge::after {
    content: "VENTE FLASH";
    font-size: 8px;
    font-weight: 900;
  }
  .hero-promo-panel .flash-offer-label {
    min-width: 0;
    color: #64748b;
    font-size: 9px;
    line-height: 1.3;
  }
  .hero-promo-panel .flash-copy-main h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.17;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }
  .hero-promo-panel .flash-copy-main p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 4px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.35;
  }
  .hero-promo-panel .flash-price-row { flex-wrap: wrap; align-items: baseline; gap: 5px 7px; }
  .hero-promo-panel .flash-price-row strong {
    color: #166534;
    font-size: 19px;
    line-height: 1.1;
    letter-spacing: -.035em;
  }
  .hero-promo-panel .flash-price-row del { color: #94a3b8; font-size: 9px; }
  .hero-promo-panel .flash-discount {
    padding: 3px 5px;
    border-radius: 4px;
    background: #eef7ef;
    color: #166534;
    font-size: 8px;
  }
  .hero-promo-panel .flash-countdown {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 5px 6px;
    border: 1px solid #e5eee7;
    border-radius: 7px;
    background: #f7faf7;
  }
  .hero-promo-panel .flash-countdown span { font-size: 6px; letter-spacing: .04em; }
  .hero-promo-panel .flash-countdown strong { font-size: 9px; white-space: nowrap; }
  .hero-promo-panel .flash-countdown.is-open { display: none; }
  .hero-promo-panel .promo-actions {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 5px;
    margin-top: 0;
  }
  .hero-promo-panel .flash-detail-btn,
  .hero-promo-panel .flash-add-btn {
    min-width: 0;
    min-height: 34px;
    padding: 7px 4px;
    border-radius: 7px;
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
  }
  .hero-promo-panel .flash-detail-btn { color: #334155; background: #fff; border: 1px solid #dbe4dd; }
  .hero-promo-panel .flash-add-btn { color: #fff; background: #166534; }
  .hero-promo-panel .flash-add-btn:hover { transform: none; background: #14532d; }
  .hero-promo-panel .flash-dots { margin-top: 8px; }
  .hero-promo-panel .flash-dots .promo-dot { width: 6px; height: 6px; }
  .hero-promo-panel .flash-dots .promo-dot.active { width: 18px; }
  .hero-promo-panel .flash-empty {
    min-height: 0;
    display: block;
    padding: 13px;
    border: 1px solid #e2e8e4;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15,23,42,.07);
  }
  .hero-promo-panel .flash-empty strong { display: block; font-size: 14px; line-height: 1.3; }
  .hero-promo-panel .flash-empty p { display: block; margin: 5px 0 10px; font-size: 11px; line-height: 1.45; }
  .hero-promo-panel .flash-empty .btn { min-height: 38px; padding: 9px 12px; border-radius: 9px; font-size: 11px; }

  /* Lighter, controlled crop so the uploaded photo remains recognizable. */
  .hero.has-custom-bg {
    background-image: linear-gradient(
      180deg,
      rgba(4,27,16,.34) 0%,
      rgba(4,27,16,.46) 44%,
      rgba(4,27,16,.55) 100%
    ), var(--hero-custom-background);
    background-position: center 34%;
    background-size: cover;
  }
  .hero.has-custom-bg .hero-content > p { color: rgba(255,255,255,.94); }
  .hero.has-custom-bg .hero-actions .btn.secondary { background: rgba(255,255,255,.12); }
}

@media (max-width: 380px) {
  .hero-grid { width: calc(100% - 24px); gap: 16px; }
  .hero-content h1 { font-size: 30px; max-width: 14ch; }
  .hero-content > p { font-size: 12px; }
  .hero-actions .btn { padding-inline: 5px; font-size: 10px; }
  .trust-row span { font-size: 8px; }
  .hero-promo-panel .flash-slide { grid-template-columns: minmax(78px, .32fr) minmax(0, .68fr); }
  .hero-promo-panel .flash-photo .product-photo { height: 112px; max-height: 112px; }
  .hero-promo-panel .flash-content { padding: 9px 8px; gap: 6px; }
  .hero-promo-panel .flash-copy-main h3 { font-size: 14px; }
  .hero-promo-panel .flash-copy-main p { display: none; }
  .hero-promo-panel .flash-price-row strong { font-size: 17px; }
  .hero-promo-panel .flash-detail-btn,
  .hero-promo-panel .flash-add-btn { font-size: 8px; padding-inline: 3px; }
}

/* ===== Avis clients et notes produits ===== */
.product-rating-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 16px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
}
.product-rating-summary strong { color: #334155; font-size: 11px; font-weight: 850; }
.rating-stars, .review-item-rating { display: inline-flex; align-items: center; gap: 1px; white-space: nowrap; letter-spacing: .01em; }
.rating-stars { color: #d5dce2; font-size: 14px; line-height: 1; }
.rating-stars .is-filled, .review-item-rating .is-filled { color: #e5a323; }
.product-rating-summary.is-empty { gap: 5px; color: #87939e; }
.product-reviews-panel { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-review-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.product-review-section-head h3 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.product-review-section-head > span { color: var(--muted); font-size: 12px; }
.review-form-wrap { padding: 17px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafc; }
.review-form-wrap h4 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.review-form-hint { margin: 5px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.review-rating-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.review-form-label { display: block; margin-bottom: 7px; color: #334155; font-size: 12px; font-weight: 800; }
.review-star-picker { display: flex; align-items: center; gap: 5px; }
.review-star-choice { padding: 0; border: 0; background: transparent; color: #cbd5e1; font-size: 30px; line-height: 1.05; cursor: pointer; transition: color .15s ease; }
.review-star-choice.is-selected { color: #e5a323; }
.review-star-choice:focus-visible { outline: 2px solid #166534; outline-offset: 3px; border-radius: 3px; }
.review-textarea { display: block; width: 100%; min-height: 100px; resize: vertical; padding: 12px; font-size: 14px; line-height: 1.55; }
.review-form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.review-form-footer > span { color: var(--muted); font-size: 10px; }
.review-form-footer .btn { min-height: 42px; padding: 10px 14px; font-size: 12px; }
.review-signin-prompt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 15px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.review-signin-prompt p { flex: 1 1 200px; margin: 0; color: #475569; font-size: 13px; line-height: 1.55; }
.review-signin-prompt .btn { padding: 10px 13px; font-size: 12px; }
.product-review-list { display: grid; gap: 0; }
.product-review-item { padding: 15px 0; border-bottom: 1px solid #edf0f2; }
.product-review-item:first-child { padding-top: 2px; }
.product-review-item:last-child { border-bottom: 0; }
.product-review-item-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.product-review-item-head strong { color: #1e293b; font-size: 13px; font-weight: 850; }
.product-review-item-head time { color: #94a3b8; font-size: 10px; }
.review-item-rating { margin-top: 5px; color: #d5dce2; font-size: 13px; }
.product-review-item p { margin: 7px 0 0; color: #475569; font-size: 13px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.review-empty, .review-loading, .review-load-error { margin: 0; padding: 17px; border-radius: 12px; background: #f8fafc; color: #64748b; font-size: 13px; line-height: 1.6; }
.review-load-error { color: #9f3434; background: #fff7f7; }
@media (max-width: 600px) {
  .product-rating-summary { font-size: 10px; }
  .rating-stars { font-size: 13px; }
  .product-reviews-panel { margin-top: 20px; padding-top: 16px; }
  .product-review-section-head h3 { font-size: 19px; }
  .review-form-wrap { padding: 13px; border-radius: 13px; }
  .review-star-choice { font-size: 32px; }
  .review-form-footer { align-items: stretch; }
  .review-form-footer .btn { width: 100%; }
  .product-review-item-head time { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .review-star-choice { transition: none; } }

/* ===== SAMA-PACK prospects + individual cleaning catalogues ===== */
.individual-catalog-section .section-head { align-items: end; }
.individual-catalog-section .section-head p { margin: 8px 0 0; font-size: 14px; }
.individual-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.individual-catalog-empty { grid-column: 1 / -1; }
.prospect-form-panel { margin-bottom: 22px; }
.prospect-form-panel h3, #adminContent > .panel h3 { margin: 3px 0 0; }
.prospect-status-field { display: grid; gap: 5px; min-width: 135px; }
.prospect-status-field .input { max-width: 175px; padding: 8px; font-size: 12px; }
.prospect-notes { margin-top: 7px; max-width: 220px; color: #475569; font-size: 12px; }
.prospect-notes summary { cursor: pointer; font-weight: 700; color: var(--green); }
.prospect-notes p { white-space: pre-wrap; overflow-wrap: anywhere; }
.prospect-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.prospect-actions .btn { padding: 7px 9px; font-size: 11px; }
.prospect-actions .btn.danger { color: #9f3434; border-color: #f2d4d4; }
.catalog-active-check { display: flex !important; align-items: center; gap: 9px !important; color: var(--ink) !important; }
.catalog-active-check input { width: 16px; height: 16px; accent-color: var(--green); }
.price-calculation-feedback { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 12px; line-height: 1.5; }
.selling-price-input[readonly] { background: #f8fafc; color: #166534; font-weight: 850; cursor: not-allowed; }
@media (max-width: 900px) {
  .individual-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .individual-catalog-section { padding: 44px 0; }
  .individual-catalog-section .section-head { margin-bottom: 17px; }
  .individual-catalog-section .section h2,
  .individual-catalog-section h2 { font-size: 27px; }
  .individual-catalog-section .section-head p { font-size: 12px; line-height: 1.5; }
  .individual-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .individual-catalog-grid .product-card { border-radius: 14px; }
  .individual-catalog-grid .pack-visual { min-height: 112px; padding: 8px; }
  .individual-catalog-grid .product-photo { max-height: 112px; }
  .individual-catalog-grid .product-body { gap: 8px; padding: 11px; }
  .individual-catalog-grid .product-cat { font-size: 9px; }
  .individual-catalog-grid .product-name { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
  .individual-catalog-grid .price { font-size: 16px; }
  .individual-catalog-grid .product-actions { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .individual-catalog-grid .product-actions .btn { width: 100%; min-height: 36px; padding: 8px 5px; font-size: 11px; }
  .prospect-form-panel .section-head { flex-direction: row; align-items: center; }
  .prospect-actions { flex-direction: column; align-items: stretch; }
  .prospect-actions .btn { width: 100%; }
}

/* ===== SAMA-PACK separate individual catalog pages ===== */
.individual-catalog-section { min-height:calc(100vh - 190px); }
.individual-catalog-section .section-head { align-items:flex-end; }
.individual-catalog-section .section-head > div:first-child p { max-width:560px; margin:8px 0 0; color:var(--muted); font-size:14px; }
.individual-catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:900px) { .individual-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
  .mobile-bottom-nav { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .mobile-nav-item small { font-size:8px; }
  .individual-catalog-section { min-height:calc(100vh - 150px); padding:34px 0 42px; }
  .individual-catalog-section .section-head { gap:14px; margin-bottom:18px; }
  .individual-catalog-section .section-head > div:first-child p { font-size:12px; line-height:1.5; }
  .individual-catalog-section .controls { width:100%; gap:8px; }
  .individual-catalog-section .controls .input { width:100%; min-width:0; }
  .individual-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .individual-catalog-grid .product-card { min-width:0; border-radius:14px; }
  .individual-catalog-grid .pack-visual { min-height:112px; padding:8px; }
  .individual-catalog-grid .product-photo { max-height:112px; }
  .individual-catalog-grid .product-body { gap:8px; padding:11px; }
  .individual-catalog-grid .product-name { font-size:13px; line-height:1.3; overflow-wrap:anywhere; }
  .individual-catalog-grid .price { font-size:16px; }
  .individual-catalog-grid .product-actions { display:grid; grid-template-columns:1fr; gap:6px; }
  .individual-catalog-grid .product-actions .btn { width:100%; min-height:36px; padding:8px 5px; font-size:11px; }
}



/* SAMA-PACK catalogue references, availability and supplier-aware admin search */
.availability-badge{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:850;line-height:1.25;border:1px solid transparent}
.availability-badge.is-available{color:#166534;background:#dcfce7;border-color:#bbf7d0}
.availability-badge.is-out{color:#991b1b;background:#fee2e2;border-color:#fecaca}
.product-reference{display:block;color:var(--muted);font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.product-reference strong{color:#334155;letter-spacing:.02em}
.product-detail-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0 14px}
.product-detail-meta .product-reference{margin:0}
.catalog-admin-search-label{display:grid;gap:7px;font-size:12px;color:var(--muted);margin:10px 0 16px;max-width:620px}
.catalog-admin-search-label .input{width:100%;min-width:0}
.selling-price-input[readonly]{background:#f0fdf4;border-color:#bbf7d0;color:#166534;font-weight:800}
tr[hidden]{display:none!important}
@media(max-width:600px){.product-card .availability-badge{font-size:10px}.product-reference{font-size:10px}.product-detail-meta{align-items:flex-start}}

/* ===== SAMA-PACK admin dashboard charts + super admin management ===== */
.dashboard-welcome { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin:0 0 18px; }
.dashboard-welcome h2 { margin:4px 0 6px; font-size:clamp(22px,2.3vw,30px); letter-spacing:-.035em; }
.dashboard-welcome p { margin:0; color:var(--muted,#64748b); font-size:13px; line-height:1.55; }
.dashboard-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.dashboard-kpi { --kpi-accent:#0f766e; position:relative; overflow:hidden; padding:18px 18px 16px; background:#fff; border:1px solid #e6ece8; border-radius:17px; box-shadow:0 5px 18px rgba(17,55,38,.035); min-width:0; }
.dashboard-kpi::before { content:""; position:absolute; top:0; left:0; width:4px; height:100%; background:var(--kpi-accent); }
.dashboard-kpi.revenue { --kpi-accent:#0b8063; }
.dashboard-kpi.pending { --kpi-accent:#bd7c18; }
.dashboard-kpi.orders { --kpi-accent:#4873b8; }
.dashboard-kpi.average { --kpi-accent:#7654ae; }
.dashboard-kpi.published { --kpi-accent:#16816c; }
.dashboard-kpi.stockout { --kpi-accent:#c24b46; }
.dashboard-kpi-label { display:block; color:#65736c; font-size:12px; font-weight:650; line-height:1.35; }
.dashboard-kpi strong { display:block; margin:9px 0 7px; color:#15372b; font-size:clamp(21px,2vw,29px); line-height:1.15; letter-spacing:-.035em; overflow-wrap:anywhere; }
.dashboard-kpi small { display:block; color:#819087; font-size:11px; line-height:1.4; }
.dashboard-chart-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.9fr); gap:16px; margin-bottom:16px; align-items:stretch; }
.dashboard-chart-grid-secondary { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.dashboard-chart-panel, .dashboard-alert-panel, .dashboard-recent-panel { min-width:0; padding:20px; }
.dashboard-panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:16px; }
.dashboard-panel-heading h3 { margin:4px 0 0; font-size:17px; color:#16382c; }
.dashboard-panel-heading .eyebrow { font-size:10px; letter-spacing:.12em; color:#829188; font-weight:750; }
.dashboard-chart-pill { display:inline-flex; align-items:center; padding:7px 10px; border-radius:99px; background:#eef7f1; color:#167453; font-size:11px; font-weight:750; white-space:nowrap; }
.dashboard-line-wrap { min-width:0; }
.dashboard-chart-summary { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:2px 0 4px; color:#69776f; font-size:12px; }
.dashboard-chart-summary strong { color:#15372b; font-size:14px; }
.dashboard-line-svg { width:100%; height:auto; display:block; overflow:visible; }
.dashboard-chart-gridline { stroke:#edf1ee; stroke-width:1; }
.dashboard-chart-axis { fill:#829087; font-size:10px; }
.dashboard-chart-line { fill:none; stroke:#16815f; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.dashboard-chart-point { fill:#fff; stroke:#16815f; stroke-width:2.5; }
.dashboard-line-wrap > .small-note { margin:0; font-size:10px; line-height:1.5; }
.dashboard-donut-layout { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:18px; padding:10px 0 4px; }
.dashboard-donut-svg { width:min(168px,45%); min-width:125px; height:auto; overflow:visible; }
.dashboard-donut-segment { fill:none; stroke-width:15; stroke-linecap:butt; }
.dashboard-donut-segment.new, .dashboard-legend-dot.new { stroke:#e6a23c; background:#e6a23c; }
.dashboard-donut-segment.processing, .dashboard-legend-dot.processing { stroke:#4c88c7; background:#4c88c7; }
.dashboard-donut-segment.delivered, .dashboard-legend-dot.delivered { stroke:#19836a; background:#19836a; }
.dashboard-donut-segment.cancelled, .dashboard-legend-dot.cancelled { stroke:#c95b57; background:#c95b57; }
.dashboard-donut-empty { fill:none; stroke:#e7ece8; stroke-width:15; }
.dashboard-donut-total { fill:#15372b; text-anchor:middle; font-size:27px; font-weight:800; }
.dashboard-donut-caption { fill:#839087; text-anchor:middle; font-size:10px; }
.dashboard-chart-legend { flex:1; min-width:130px; display:grid; gap:11px; }
.dashboard-chart-legend-item { display:grid; grid-template-columns:10px minmax(0,1fr) auto; gap:8px; align-items:center; color:#637168; font-size:12px; }
.dashboard-chart-legend-item strong { color:#193c2e; font-size:12px; }
.dashboard-legend-dot { display:inline-block; width:9px; height:9px; border-radius:50%; }
.dashboard-availability-bars { padding:4px 0 0; }
.dashboard-availability-row { margin:0 0 20px; }
.dashboard-availability-row > div:first-child { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; color:#52645a; font-size:12px; }
.dashboard-availability-row strong { color:#193c2e; }
.dashboard-bar-track { width:100%; height:11px; overflow:hidden; border-radius:99px; background:#edf1ee; }
.dashboard-bar-fill { display:block; height:100%; border-radius:99px; min-width:0; }
.dashboard-bar-fill.available { background:#16815f; }
.dashboard-bar-fill.out { background:#d56a62; }
.dashboard-availability-bars .small-note { font-size:11px; line-height:1.5; }
.dashboard-alert-list { display:grid; gap:2px; }
.dashboard-alert-item { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:10px; align-items:center; padding:12px 0; border-bottom:1px solid #eef1ee; }
.dashboard-alert-item:last-child { border-bottom:0; }
.dashboard-alert-icon { display:grid; place-items:center; width:29px; height:29px; border-radius:10px; background:#edf7f0; color:#167453; font-size:14px; font-weight:800; }
.dashboard-alert-item.is-warning .dashboard-alert-icon { background:#fff4df; color:#9a6614; }
.dashboard-alert-item strong { display:block; color:#284638; font-size:12px; line-height:1.45; }
.dashboard-alert-item small { display:block; margin-top:3px; color:#829087; font-size:10px; line-height:1.4; }
.dashboard-alert-item .btn { white-space:nowrap; }
.dashboard-recent-panel { margin-bottom:12px; }
.dashboard-data-footnote { margin:6px 0 0; text-align:right; font-size:10px; }
.admin-invite-panel { margin-bottom:16px; }
.admin-invite-panel h3, .admin-permission-note h3 { margin:5px 0 8px; }
.admin-invite-panel > p, .admin-permission-note p { color:#66766d; font-size:12px; line-height:1.6; }
.admin-invite-panel .admin-form { margin-top:12px; }
.admin-permission-note { border-left:4px solid #d5a24e; }
.admin-accounts-list .dashboard-panel-heading { align-items:center; }
.admin-accounts-list .table td { vertical-align:middle; }
.admin-accounts-list .btn.danger { border-color:#e9b8b4; color:#a33d37; background:#fff8f7; }
.admin-accounts-list .btn.danger:hover { background:#fff0ef; }
@media (min-width:1300px) { .dashboard-kpis { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media (max-width:1050px) { .dashboard-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } .dashboard-chart-grid { grid-template-columns:minmax(0,1fr); } .dashboard-chart-grid-secondary { grid-template-columns:minmax(0,1fr); } }
@media (max-width:650px) {
  .dashboard-welcome { flex-direction:column; }
  .dashboard-welcome .btn { width:100%; }
  .dashboard-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .dashboard-kpi { padding:15px 13px 13px; border-radius:14px; }
  .dashboard-kpi strong { font-size:22px; }
  .dashboard-chart-panel, .dashboard-alert-panel, .dashboard-recent-panel { padding:15px 13px; }
  .dashboard-panel-heading { flex-direction:column; align-items:flex-start; }
  .dashboard-panel-heading > .btn, .dashboard-panel-heading > .dashboard-chart-pill { align-self:flex-start; }
  .dashboard-donut-layout { gap:8px; }
  .dashboard-donut-svg { width:135px; min-width:120px; }
  .dashboard-chart-legend { min-width:120px; }
  .dashboard-alert-item { grid-template-columns:28px minmax(0,1fr); }
  .dashboard-alert-item .btn { grid-column:2; justify-self:start; }
  .dashboard-data-footnote { text-align:left; }
}


/* ===== SAMA-PACK active accounts presence ===== */
.dashboard-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
.dashboard-kpi.active-users { --kpi-accent:#15946b; }
@media (max-width:1050px) { .dashboard-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:650px) { .dashboard-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }



/* SAMA-PACK payment checkout patch v1 */
.payment-choice-list { display:grid; gap:10px; padding-top:4px; }
.payment-choice-list > .eyebrow { margin-bottom:2px; }
.payment-choice-card { display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid var(--line); border-radius:15px; background:#fff; cursor:pointer; transition:border-color .15s ease,background .15s ease,box-shadow .15s ease; }
.payment-choice-card.is-selected { border-color:#2a8a58; background:#f1faf3; box-shadow:0 0 0 2px rgba(34,197,94,.08); }
.payment-choice-card.is-disabled { opacity:.55; cursor:not-allowed; }
.payment-choice-card input { margin:4px 0 0; accent-color:#176b43; flex:0 0 auto; }
.payment-choice-copy { display:grid; gap:5px; flex:1; min-width:0; }
.payment-choice-copy strong { color:#143d29; font-size:14px; }
.payment-choice-copy small { color:#62746a; font-size:11px; line-height:1.55; }
.payment-choice-amount { flex:0 0 auto; color:#176b43; font-size:13px; white-space:nowrap; }
#paymentChoiceHint { margin:8px 0 0; line-height:1.5; }
.status.awaiting_payment,.status.awaiting_delivery_payment { color:#87570b; background:#fff4d9; border-color:#f0d69a; }
.dashboard-kpi.payment-pending { --kpi-accent:#c17f29; }
@media (min-width:1300px) { .dashboard-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:600px) {
  .payment-choice-card { gap:8px; padding:12px 10px; }
  .payment-choice-copy strong { font-size:13px; }
  .payment-choice-copy small { font-size:10px; }
  .payment-choice-amount { font-size:11px; white-space:normal; text-align:right; }
}


/* Nettoyage SAMA-PACK : interface client claire et fiches produits homogènes */
.how-teaser{display:flex;align-items:center;justify-content:space-between;gap:28px}.how-teaser>div{max-width:760px}.how-teaser h2{margin:7px 0 10px}.how-teaser p{margin:0;color:var(--muted);font-size:15px;line-height:1.7}.how-teaser>.btn{flex-shrink:0}
.product-card .product-desc{font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;min-height:0}.product-placeholder{width:100%;min-height:165px;display:grid;place-items:center;background:linear-gradient(135deg,#f0fdf4,#fff)}.product-placeholder .cleaning-bottle-icon{width:66px;height:84px;display:block}.product-card .pack-visual.has-photo .product-placeholder.photo-fallback{height:190px;min-height:190px;padding:0}
.product-detail-image-wrap{position:relative;min-height:220px;display:grid;place-items:center;margin:12px 0 16px;border-radius:14px;overflow:hidden;background:#f8fafc}.product-detail-image-wrap .product-photo-detail{width:100%;height:auto;min-height:220px;max-height:300px;object-fit:contain;margin:0;padding:12px}.product-detail-image-wrap .product-placeholder{position:absolute;inset:0;height:100%;min-height:220px}.product-detail-placeholder{margin:12px 0 16px;border-radius:14px;overflow:hidden}.product-detail-placeholder.product-placeholder{min-height:220px}.product-detail-placeholder .cleaning-bottle-icon{width:82px;height:108px}
.cart-product-icon{width:42px;height:46px;flex:0 0 42px;display:grid;place-items:center;background:#ecfdf5;border-radius:12px}.cart-product-icon .cleaning-bottle-icon{width:22px;height:31px}
.catalog-unavailable{min-height:48vh;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px}.catalog-unavailable h1{font-size:clamp(32px,4vw,48px);margin:0;line-height:1.08}.catalog-unavailable p{max-width:660px;margin:0;color:var(--muted);font-size:16px;line-height:1.75}.catalog-unavailable-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
@media(max-width:700px){.how-teaser{align-items:stretch;flex-direction:column;gap:18px}.how-teaser>.btn{width:100%}.catalog-unavailable{min-height:55vh}.catalog-unavailable-actions{width:100%;flex-direction:column}.catalog-unavailable-actions .btn{width:100%}}



/* Pack personnalisé selon le budget */
.budget-builder-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 24px;
  padding: 22px 24px;
  border: 1px solid #cfe5d4;
  border-radius: 18px;
  background: linear-gradient(110deg, #f0fdf4 0%, #ffffff 76%);
}
.budget-builder-launch-copy .eyebrow { margin-bottom: 7px; }
.budget-builder-launch-copy h3 { margin: 0 0 6px; color: #14532d; font-size: 1.16rem; }
.budget-builder-launch-copy p { margin: 0; color: #52645a; font-size: .94rem; }
.budget-builder-launch > .btn { flex: 0 0 auto; }
.modal-card:has(.budget-builder-modal) { width: min(760px, 100%); max-width: 760px; }
.budget-builder-modal { width: 100%; }
.budget-builder-intro { margin: 0 0 18px; color: #5b6b61; line-height: 1.55; }
.budget-builder-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 9px 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e1eae3;
  background: #f8fbf8;
  border-radius: 14px;
}
.budget-builder-form label { align-self: end; color: #304438; font-size: .88rem; font-weight: 700; }
.budget-builder-form .input { width: 100%; min-width: 0; }
#budgetBuilderSuggestBtn { grid-column: 1 / -1; margin-top: 3px; }
.budget-builder-results { margin-top: 18px; }
.budget-builder-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.budget-builder-summary > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  background: #f6f8f6;
  border: 1px solid #e1e9e2;
  border-radius: 12px;
}
.budget-builder-summary span { color: #657468; font-size: .76rem; }
.budget-builder-summary strong { color: #14532d; font-size: 1rem; overflow-wrap: anywhere; }
.budget-builder-list { display: grid; gap: 8px; }
.budget-builder-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5ebe6;
  border-radius: 12px;
  background: #fff;
}
.budget-builder-thumb {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f7f3;
}
.budget-builder-thumb .cleaning-bottle-icon { width: 32px; height: 40px; }
.budget-builder-thumb-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.budget-builder-item-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.budget-builder-item-copy strong { color: #1d3426; font-size: .9rem; line-height: 1.3; }
.budget-builder-item-copy small { color: #647568; font-size: .8rem; }
.budget-builder-qty { margin: 0; }
.budget-builder-qty button { width: 30px; height: 30px; }
.budget-builder-footer { margin-top: 16px; }
.budget-builder-footer .small-note { margin: 9px 0 0; }
.account-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 170px; }
.account-order-actions .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .budget-builder-launch { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 18px; padding: 17px; }
  .budget-builder-launch > .btn { width: 100%; }
  .budget-builder-form { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 13px; }
  #budgetBuilderSuggestBtn { grid-column: auto; margin-top: 7px; }
  .budget-builder-summary { grid-template-columns: 1fr; gap: 7px; }
  .budget-builder-summary > div { flex-direction: row; align-items: center; justify-content: space-between; }
  .budget-builder-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 9px; padding: 9px; }
  .budget-builder-thumb { width: 44px; height: 44px; }
  .budget-builder-item-copy strong { font-size: .82rem; }
  .budget-builder-item-copy small { font-size: .74rem; }
  .budget-builder-qty { gap: 5px; }
  .budget-builder-qty button { width: 27px; height: 27px; }
  .account-order-actions { min-width: 0; }
}


/* Order tracking and replenishment subscriptions */
.order-track {
  display: flex;
  list-style: none;
  gap: 0;
  width: 390px;
  max-width: 100%;
  margin: 10px 0 6px;
  padding: 0;
}
.order-track li {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.order-track li:not(:last-child)::after {
  content: "";
  height: 2px;
  position: absolute;
  top: 9px;
  left: calc(50% + 10px);
  right: calc(-50% + 10px);
  background: var(--border, #e5e7eb);
}
.order-track li.is-done::after { background: #15803d; }
.order-track-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
}
.order-track li.is-done .order-track-dot,
.order-track li.is-current .order-track-dot {
  border-color: #15803d;
  background: #15803d;
  color: #fff;
}
.order-track li.is-current .order-track-dot { box-shadow: 0 0 0 3px rgba(21,128,61,.12); }
.order-track-label { font-size: 10px; line-height: 1.2; color: var(--muted, #6b7280); }
.order-track li.is-current .order-track-label { color: var(--text, #1f2937); font-weight: 700; }
.order-tracking-pending,
.order-tracking-cancelled { font-size: 12px; line-height: 1.45; margin-top: 7px; }
.order-tracking-pending { color: #92400e; }
.order-tracking-cancelled { color: #b91c1c; font-weight: 600; }
.order-slot { margin-top: 6px; max-width: 260px; white-space: normal; }
.subscription-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.subscription-panel-heading h3 { margin: 0 0 5px; }
.subscription-panel-heading p { margin: 0; max-width: 650px; }
.subscription-list { display: grid; gap: 12px; }
.subscription-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface, #fff);
}
.subscription-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.subscription-card-head h4 { margin: 0 0 4px; font-size: 15px; }
.subscription-card-head .small-note { margin: 0; }
.subscription-items { margin: 12px 0; padding-left: 20px; }
.subscription-items li { margin: 4px 0; font-size: 13px; }
.subscription-estimate {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-muted, #f8fafc);
  font-size: 13px;
}
.subscription-estimate strong { display: inline; }
.subscription-estimate span { color: var(--muted, #6b7280); font-size: 11px; }
.subscription-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.subscription-form { display: grid; gap: 13px; }
.subscription-field,
.subscription-product-field,
.subscription-quantity-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.subscription-field > span,
.subscription-product-field > span,
.subscription-quantity-field > span { font-size: 12px; font-weight: 650; color: var(--muted, #6b7280); }
.subscription-lines-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.subscription-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 36px;
  align-items: end;
  gap: 8px;
  margin: 8px 0;
}
.subscription-remove-line { min-width: 36px; padding-left: 0; padding-right: 0; }
.subscription-schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.account-subscriptions { margin-top: 14px; }
@media (max-width: 700px) {
  .subscription-panel-heading { flex-direction: column; align-items: stretch; }
  .subscription-panel-heading > .btn { align-self: flex-start; }
  .subscription-schedule-grid { grid-template-columns: 1fr; }
  .subscription-actions .btn { flex: 1 1 auto; }
  .order-track { width: 350px; }
  .order-track-label { font-size: 9px; }
  .subscription-card { padding: 11px; }
}
@media (max-width: 420px) {
  .subscription-line { grid-template-columns: minmax(0,1fr) 70px 32px; gap: 6px; }
  .order-track { width: 315px; }
  .order-track-label { font-size: 8px; }
}


/* Espace professionnel B2B, réapprovisionnement et pilotage financier */
.account-business-launch,.b2b-history-panel,.account-subscriptions { margin-top:14px; }
.account-business-launch { display:flex;align-items:center;justify-content:space-between;gap:16px; }
.account-business-launch h3,.b2b-section-title h3 { margin:0 0 6px; }
.account-business-launch p,.b2b-section-title p { margin:0; }
.b2b-workspace-form { display:grid;gap:13px; }
.b2b-workspace-form>label,.b2b-two-columns label,.b2b-product-line label { display:grid;gap:6px;min-width:0;font-size:.9rem; }
.b2b-workspace-form label>span,.b2b-two-columns label>span,.b2b-product-line label>span { font-weight:600; }
.b2b-two-columns { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.b2b-section-title { display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 4px; }
.b2b-product-line { display:grid;grid-template-columns:minmax(0,1fr) 110px 36px;gap:9px;align-items:end;padding:10px 0;border-bottom:1px solid rgba(22,101,52,.14); }
.b2b-action-row { display:flex;flex-wrap:wrap;gap:10px; }
.b2b-history-panel { padding:14px; }
.profit-delivery-input { min-width:115px; }
.order-cost-form { display:grid;gap:9px;margin-top:14px;padding:14px;background:rgba(22,101,52,.06);border-radius:12px; }
.order-cost-form label { display:grid;gap:7px; }
.subscription-panel-heading { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.subscription-panel-heading p { margin:4px 0 0; }
.subscription-line { display:grid;grid-template-columns:minmax(0,1fr) 110px 36px;gap:9px;align-items:end;padding:10px 0;border-bottom:1px solid rgba(22,101,52,.14); }
.subscription-line label { display:grid;gap:6px;font-size:.9rem; }
.subscription-line label span { font-weight:600; }
.subscription-schedule-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.subscription-field { display:grid;gap:6px; }
.subscription-field span { font-weight:600;font-size:.9rem; }
.subscription-card { border:1px solid rgba(22,101,52,.18);border-radius:12px;padding:14px;margin-top:12px; }
.subscription-card-head { display:flex;align-items:flex-start;justify-content:space-between;gap:10px; }
.subscription-card h4 { margin:0 0 4px; }
.subscription-card p { margin:0; }
.subscription-items { margin:10px 0;padding-left:20px; }
.subscription-estimate { display:grid;gap:3px;font-size:.9rem; }
.subscription-estimate span { color:#6b7280;font-size:.82rem; }
.subscription-actions { display:flex;flex-wrap:wrap;gap:7px;margin-top:12px; }
.order-track { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 4px;list-style:none;margin:10px 0;padding:0;min-width:180px; }
.order-track li { display:flex;align-items:center;gap:5px;font-size:.7rem;color:#6b7280; }
.order-track-dot { display:inline-grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border-radius:50%;border:1px solid rgba(22,101,52,.2);font-size:.68rem; }
.order-track li.is-done .order-track-dot,.order-track li.is-current .order-track-dot { background:#166534;color:white;border-color:#166534; }
.order-track li.is-current { color:#111827;font-weight:700; }
.order-tracking-pending,.order-tracking-cancelled { font-size:.82rem;color:#6b7280;margin-top:6px; }
@media(max-width:680px) {
  .account-business-launch,.subscription-panel-heading,.b2b-section-title { align-items:stretch;flex-direction:column; }
  .b2b-two-columns,.subscription-schedule-grid { grid-template-columns:1fr; }
  .b2b-product-line,.subscription-line { grid-template-columns:minmax(0,1fr) 86px 32px;gap:7px; }
  .b2b-action-row { flex-direction:column; }
  .subscription-actions .btn { flex:1 1 100%; }
  .order-track { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* Profil client et galeries multi-photos SAMA-PACK */
.account-profile-panel { margin: 0 0 14px; }
.account-profile-panel h3 { margin: 4px 0 6px; }
.profile-whatsapp-test { display:flex; flex-direction:column; justify-content:center; gap:5px; min-width:0; }
.profile-whatsapp-test .small-note { margin:0; line-height:1.4; }
.auth-whatsapp-test { display:flex; flex-direction:column; justify-content:center; gap:5px; min-width:0; }
.auth-whatsapp-test .small-note { margin:0; line-height:1.4; }
.product-detail-gallery { display:grid; gap:10px; margin:12px 0 16px; }
.product-detail-gallery .product-detail-image-wrap { margin:0; }
.product-image-thumbnails { display:flex; gap:8px; overflow-x:auto; padding:2px 1px 6px; }
.product-image-thumb { flex:0 0 68px; width:68px; height:68px; padding:3px; border:1px solid var(--line,#e5e7eb); border-radius:10px; background:#fff; overflow:hidden; cursor:pointer; }
.product-image-thumb.is-active { border-color:#198754; box-shadow:0 0 0 2px rgba(25,135,84,.14); }
.product-image-thumb img { width:100%; height:100%; object-fit:contain; display:block; }
@media(max-width:600px) {
  .profile-whatsapp-test .btn,.auth-whatsapp-test .btn { width:100%; }
  .product-image-thumb { flex-basis:58px; width:58px; height:58px; }
}


/* Espace client — fiche profil professionnelle et responsive */
.account-profile-panel { padding:20px; border:1px solid #e2e8f0; border-radius:20px; background:linear-gradient(180deg,#fff 0%,#fbfdfb 100%); }
.profile-card-header { display:flex; align-items:center; gap:15px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.profile-avatar { flex:0 0 72px; width:72px; height:72px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(145deg,#166534,#22c55e); color:#fff; border:4px solid #dcfce7; box-shadow:0 0 0 1px #bbf7d0; font-size:22px; font-weight:900; letter-spacing:.02em; }
.profile-card-heading { min-width:0; }
.profile-card-heading h3 { margin:4px 0 3px; font-size:20px; overflow-wrap:anywhere; }
.profile-card-heading > p { margin:0 0 8px; color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.profile-completion { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:800; }
.profile-completion.is-complete { color:#166534; background:#dcfce7; }
.profile-completion.is-incomplete { color:#92400e; background:#fef3c7; }
.profile-summary-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:18px 0 12px; }
.profile-summary-heading h4,.profile-edit-heading h4 { margin:0 0 4px; font-size:16px; }
.profile-summary-heading .small-note,.profile-edit-heading .small-note { margin:0; line-height:1.5; }
.profile-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.profile-summary-item { min-width:0; padding:12px 13px; border:1px solid #e8edf2; border-radius:13px; background:#fff; }
.profile-summary-item.is-full { grid-column:1/-1; }
.profile-summary-item > span { display:block; margin-bottom:5px; color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.profile-summary-item > strong { display:block; color:var(--ink); font-size:13px; font-weight:650; line-height:1.55; overflow-wrap:anywhere; white-space:pre-wrap; }
.profile-edit-form { margin-top:16px; padding-top:18px; border-top:1px solid var(--line); }
.profile-edit-heading { margin-bottom:2px; }
.profile-edit-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }
.profile-edit-actions .btn { min-width:160px; }
@media(max-width:600px) {
  .account-profile-panel { padding:15px; border-radius:16px; }
  .profile-avatar { flex-basis:60px; width:60px; height:60px; font-size:19px; }
  .profile-card-heading h3 { font-size:17px; }
  .profile-summary-heading { align-items:flex-start; flex-direction:column; }
  .profile-summary-heading .btn { width:100%; }
  .profile-summary-grid { grid-template-columns:1fr; gap:8px; }
  .profile-summary-item.is-full { grid-column:auto; }
  .profile-edit-actions { flex-direction:column; }
  .profile-edit-actions .btn { width:100%; }
}


/* Navigation de compte compacte : une rubrique visible à la fois */
.account-modal-header { align-items:flex-start; margin-bottom:14px; }
.account-modal-header h2 { margin:3px 0 5px; }
.account-modal-header .small-note { margin:0; line-height:1.45; }
.account-workspace { min-width:0; }
.account-tabs { display:flex; gap:5px; padding:5px; margin:0 0 16px; overflow-x:auto; border:1px solid #e5eaf0; border-radius:14px; background:#f8fafc; scrollbar-width:thin; }
.account-tab { display:flex; flex:1 0 auto; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:9px 12px; border:1px solid transparent; border-radius:10px; background:transparent; color:#475569; font:inherit; font-size:12px; font-weight:750; white-space:nowrap; cursor:pointer; transition:background .15s,border-color .15s,color .15s; }
.account-tab:hover { background:#eef2f7; color:#0f172a; }
.account-tab.is-active { background:#fff; border-color:#dce5df; color:#166534; box-shadow:0 1px 3px rgba(15,23,42,.06); }
.account-tab-icon { font-size:16px; line-height:1; }
.account-tab-count { display:inline-grid; place-items:center; min-width:19px; height:19px; padding:0 5px; border-radius:999px; background:#e2e8f0; color:#334155; font-size:10px; }
.account-tab.is-active .account-tab-count { background:#dcfce7; color:#166534; }
.account-tab-panel { min-width:0; animation:accountPanelIn .16s ease-out; }
@keyframes accountPanelIn { from { opacity:.7; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
.account-section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:3px 0 14px; }
.account-section-heading h3 { margin:3px 0 5px; font-size:19px; }
.account-section-heading .small-note { margin:0; line-height:1.5; max-width:520px; }
.account-section-badge { flex:0 0 auto; margin-top:5px; padding:6px 9px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:11px; font-weight:800; }
.account-tab-panel > .panel { margin-top:12px; }
.account-tab-panel .account-orders,.account-tab-panel .account-subscriptions { margin:0; }
.account-notification-list { margin-top:0; }
.account-signout { margin-top:12px; }
.account-tabs + .account-tab-panel .account-profile-panel { margin-top:0; }
@media(max-width:600px) {
  .account-tabs { margin:0 -2px 13px; gap:3px; border-radius:12px; }
  .account-tab { min-height:40px; padding:8px 10px; gap:5px; font-size:11px; }
  .account-tab-icon { font-size:14px; }
  .account-section-heading { flex-direction:column; gap:10px; }
  .account-section-heading > .btn { width:100%; }
  .account-section-heading h3 { font-size:17px; }
  .account-modal-header { padding-right:0; }
}
@media(prefers-reduced-motion:reduce) { .account-tab-panel { animation:none; } }

.account-modal-card { width:min(920px,100%); }
@media(max-width:600px) {
  .account-modal-card { padding:15px; border-radius:18px; max-height:94vh; }
}


/* Ajustement global mobile : interface plus compacte sans réduire la lisibilité */
@media (max-width: 600px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 14px; line-height: 1.45; }
  .container, .site-container, .page-container { padding-left: 12px; padding-right: 12px; }
  section { scroll-margin-top: 76px; }
  section, .section, .section-block { margin-top: 22px; margin-bottom: 22px; }
  h1 { font-size: clamp(24px, 6.5vw, 30px); line-height: 1.15; }
  h2 { font-size: clamp(20px, 5.5vw, 25px); line-height: 1.2; }
  h3 { font-size: 17px; line-height: 1.25; }
  h4 { font-size: 15px; }
  p { line-height: 1.5; }
  .btn, button.btn, a.btn { min-height: 38px; padding: 9px 12px; font-size: 12px; border-radius: 9px; }
  input, select, textarea { min-height: 39px; padding: 9px 10px; font-size: 13px; border-radius: 9px; }
  textarea { min-height: 88px; }
  label { margin-bottom: 5px; font-size: 12px; }
  .card, .panel, .surface, .product-card, .pack-card, .promo-card { border-radius: 13px; }
  .card, .panel { padding: 12px; }
  .grid, .cards-grid, .product-grid, .packs-grid { gap: 10px; }
  .section-heading, .section-header { gap: 8px; margin-bottom: 12px; }
  .section-heading h2, .section-header h2 { margin-bottom: 4px; }
  .small-note, .muted, .text-muted { font-size: 11px; line-height: 1.45; }
  .badge, .tag, .pill { padding: 4px 7px; font-size: 10px; }
  .modal-card, .modal-content { padding: 15px; border-radius: 16px; max-height: 92dvh; }
  .modal-card h2, .modal-content h2 { font-size: 20px; }
  .form-grid, .form-row { gap: 10px; }
  .site-header, header.site-header { min-height: 56px; }
  .site-header .logo, .brand-logo { max-height: 34px; }
  .hero { min-height: 0; padding-top: 28px; padding-bottom: 28px; }
  .hero h1 { margin-bottom: 10px; }
  .hero p { margin-bottom: 14px; font-size: 13px; }
  .hero .btn { min-height: 40px; }
  .product-card img, .pack-card img, .product-image, .pack-image { max-height: 180px; }
  .product-card .card-body, .pack-card .card-body { padding: 10px; }
  .product-card h3, .pack-card h3 { font-size: 14px; margin-bottom: 5px; }
  .product-card .price, .pack-card .price { font-size: 15px; }
  .product-card .btn, .pack-card .btn { min-height: 34px; padding: 7px 9px; }
  .account-modal-card { padding: 13px; }
  .account-tabs { padding: 4px; margin-bottom: 10px; }
  .account-tab { min-height: 36px; padding: 7px 8px; font-size: 10px; }
  .account-section-heading { margin-bottom: 10px; }
  .account-section-heading h3 { font-size: 16px; }
  .account-profile-panel { padding: 12px; }
  .profile-avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 16px; }
  .profile-summary-item { padding: 9px 10px; }
  .profile-summary-item > strong { font-size: 12px; }
  .account-notification-list .panel, .account-orders .panel, .account-subscriptions .panel { padding: 10px; }
}
@media (max-width: 380px) {
  .container, .site-container, .page-container { padding-left: 10px; padding-right: 10px; }
  .btn, button.btn, a.btn { padding: 8px 10px; font-size: 11px; }
  .product-grid, .packs-grid, .cards-grid { gap: 8px; }
  .product-card img, .pack-card img, .product-image, .pack-image { max-height: 150px; }
  .account-tab { gap: 4px; padding: 7px 6px; font-size: 9px; }
}


/* Accueil : recentrer l'image de fond sur ordinateur et mobile */
.hero.has-custom-bg {
  background-position: center center;
}
@media (max-width: 600px) {
  .hero.has-custom-bg {
    background-position: center center;
  }
}


/* Espace compte : navigation repliée et profil accessible par l'avatar */
.account-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.account-menu-toggle {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}
.account-menu-toggle > span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}
.account-menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(7px) rotate(45deg); }
.account-menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.account-menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-7px) rotate(-45deg); }
.account-tabs.account-menu-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin: 0 0 14px;
  padding: 8px;
  max-height: min(48vh, 360px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc;
}
.account-tabs.account-menu-open .account-tab {
  flex: initial;
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 10px 12px;
  text-align: left;
}
.account-tabs.account-menu-open .account-tab.is-active {
  background: #fff;
}
.profile-card-header {
  align-items: center;
  padding-bottom: 0;
  border-bottom: 0;
}
.profile-avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.profile-avatar:hover,
.profile-avatar.is-expanded {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(34,197,94,.16);
}
.profile-avatar:focus-visible,
.account-menu-toggle:focus-visible {
  outline: 3px solid rgba(34,197,94,.45);
  outline-offset: 3px;
}
.profile-card-heading h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.profile-card-heading > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.profile-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  animation: accountPanelIn .16s ease-out;
}
.profile-details-heading {
  margin-bottom: 14px;
}
.profile-details-heading h3 {
  margin: 0 0 4px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.profile-details-heading p { margin: 0 0 8px; }
@media (max-width: 600px) {
  .account-header-actions { gap: 6px; }
  .account-menu-toggle, .account-modal-header .close {
    width: 36px;
    height: 36px;
  }
  .profile-avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    font-size: 16px;
  }
  .profile-details { margin-top: 14px; padding-top: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-menu-toggle > span, .profile-avatar, .profile-details { transition: none; animation: none; }
}


/* Espace compte stable : seules les zones internes défilent */
.account-menu-toggle { display: none; }
.account-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(80vh, 740px);
  min-height: min(520px, 80vh);
  max-height: 80vh;
  overflow: hidden;
}
.account-modal-header {
  flex: 0 0 auto;
  min-height: 58px;
  align-items: center;
  margin-bottom: 14px;
}
.account-workspace {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.account-workspace > .account-tabs {
  flex: 0 0 auto;
}
.account-workspace > .account-tab-panel:not(.hidden) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 1px 4px 8px 1px;
}
.account-tabs.account-menu-open { display: flex; }
@media (max-width: 600px) {
  .account-menu-toggle { display: grid; }
  .account-modal-card {
    width: 100%;
    height: min(84dvh, 760px);
    min-height: min(480px, 84dvh);
    max-height: 84dvh;
    padding: 13px;
    border-radius: 18px;
  }
  .account-modal-header {
    min-height: 46px;
    margin-bottom: 12px;
    gap: 10px;
  }
  .account-header-actions { gap: 7px; }
  .account-workspace { overflow: visible; }
  .account-workspace > .account-tabs.account-menu-open {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    display: grid;
    width: min(280px, 100%);
    max-height: min(54dvh, 360px);
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15,23,42,.18);
  }
  .account-tabs.account-menu-open .account-tab {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 10px 12px;
    text-align: left;
  }
  .account-workspace > .account-tab-panel:not(.hidden) {
    padding-right: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .account-tab-panel { animation: none; }
}


/* Champs de mot de passe avec contrôle de visibilité accessible */
.password-field { display: grid; gap: 6px; min-width: 0; }
.password-input-wrap { position: relative; display: block; width: 100%; min-width: 0; }
.password-input-wrap > .input { width: 100%; padding-right: 46px !important; }
.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.password-visibility-toggle:hover { background: #f1f5f9; color: #166534; }
.password-visibility-toggle:focus-visible { outline: 2px solid #22c55e; outline-offset: 1px; }
.password-visibility-toggle svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-field .input { margin: 0; }
@media (max-width: 600px) {
  .password-visibility-toggle { width: 32px; height: 32px; right: 5px; }
}


/* Photo de profil client — facultative, privée et responsive */
.profile-avatar { overflow: hidden; padding: 0; }
.profile-avatar-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-photo-settings {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.profile-photo-preview-wrap {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #dce8df;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  display: grid;
  place-items: center;
}
.profile-photo-preview { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-photo-placeholder { font-size: 20px; font-weight: 900; }
.profile-photo-content { min-width: 0; display: grid; gap: 8px; }
.profile-photo-content h4 { margin: 0 0 4px; font-size: 15px; }
.profile-photo-content p { margin: 0; line-height: 1.45; }
.profile-photo-optional {
  display: inline-block;
  margin-left: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.profile-photo-input-label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; }
.profile-photo-input-label input { font-size: 12px; background: #fff; }
.profile-photo-help { font-size: 11px; }
.profile-photo-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-photo-actions .btn { min-width: 0; }
.profile-photo-actions button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 420px) {
  .profile-photo-settings { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .profile-photo-preview-wrap { width: 48px; height: 48px; }
  .profile-photo-placeholder { font-size: 16px; }
  .profile-photo-content h4 { font-size: 13px; }
  .profile-photo-actions { flex-direction: column; }
  .profile-photo-actions .btn { width: 100%; }
}


/* En-tête : photo de compte au-dessus du libellé */
#accountBtn.account-nav-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 64px;
  min-height: 58px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-size: 11px;
  line-height: 1.05;
  white-space: nowrap;
}
#accountBtn.account-nav-user:hover {
  border-color: #b4d8bf;
  background: #f4faf5;
}
.account-nav-avatar {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 2px solid #dcfce7;
  border-radius: 50%;
  background: linear-gradient(145deg, #166534, #22c55e);
  color: #fff;
  box-shadow: 0 0 0 1px #bbf7d0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}
.account-nav-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-nav-label {
  display: block;
  max-width: 78px;
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  #accountBtn.account-nav-user {
    min-width: 54px;
    min-height: 51px;
    padding: 2px 4px;
    gap: 3px;
    font-size: 10px;
  }
  .account-nav-avatar {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
    border-width: 1.5px;
    font-size: 10px;
  }
  .account-nav-label {
    max-width: 62px;
    font-size: 9px;
  }
}
@media (max-width: 380px) {
  #accountBtn.account-nav-user {
    min-width: 48px;
    padding-inline: 2px;
  }
  .account-nav-avatar {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }
  .account-nav-label {
    max-width: 54px;
    font-size: 8px;
  }
}


/* Espace professionnel B2B : interface claire, libre choix et mobile-first */
.modal-card.b2b-workspace-modal {
  width: min(960px, calc(100vw - 28px));
  max-height: min(92dvh, 980px);
  padding: clamp(16px, 2.8vw, 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e1ebe3;
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(15, 45, 27, .22);
}
.b2b-modal-head { align-items: center; padding-bottom: 15px; border-bottom: 1px solid #edf2ee; }
.b2b-modal-head h2 { margin: 4px 0 3px; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.035em; }
.b2b-modal-head .small-note { margin: 0; }
.b2b-workspace-intro {
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  margin:18px 0 14px; padding:clamp(16px,2.7vw,24px);
  border:1px solid #d7ecdd; border-radius:20px;
  background:linear-gradient(125deg,#effaf2 0%,#f9fcfa 62%,#fff 100%);
}
.b2b-intro-kicker,.b2b-section-kicker { display:inline-block; margin-bottom:6px; color:#247447; font-size:10px; font-weight:900; letter-spacing:.12em; }
.b2b-workspace-intro h3 { margin:0 0 6px; color:#142c1d; font-size:clamp(18px,2.3vw,24px); letter-spacing:-.025em; }
.b2b-workspace-intro p { max-width:620px; margin:0; color:#586b5e; font-size:13px; line-height:1.6; }
.b2b-intro-mark {
  display:grid; flex:0 0 64px; place-items:center; width:64px; height:64px;
  border:1px solid rgba(255,255,255,.55); border-radius:19px;
  background:linear-gradient(145deg,#176b43,#2c9b5d); box-shadow:0 9px 24px rgba(23,107,67,.18);
  color:white; font-size:15px; font-weight:900; letter-spacing:.04em;
}
.b2b-overview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.b2b-overview-card { display:flex; align-items:center; gap:11px; min-width:0; padding:13px 14px; border:1px solid #e7eee8; border-radius:15px; background:#fff; }
.b2b-overview-icon { display:grid; flex:0 0 36px; place-items:center; width:36px; height:36px; border-radius:12px; background:#edf8ef; color:#176b43; font-size:17px; font-weight:900; }
.b2b-overview-card>div { display:grid; gap:3px; min-width:0; }
.b2b-overview-card strong { color:#173a25; font-size:15px; line-height:1.2; overflow-wrap:anywhere; }
.b2b-overview-card span:last-child { color:#718076; font-size:11px; line-height:1.35; }
.b2b-workspace-form { gap:15px; }
.b2b-form-section { min-width:0; padding:clamp(14px,2.4vw,22px); border:1px solid #e4ebe5; border-radius:18px; background:#fff; }
.b2b-form-section .b2b-section-title { margin:0 0 15px; align-items:center; }
.b2b-section-title h3 { margin:0 0 4px; color:#193423; font-size:17px; letter-spacing:-.02em; }
.b2b-section-title .small-note { line-height:1.5; }
.b2b-section-badge { flex:0 0 auto; padding:6px 10px; border:1px solid #f0ddb5; border-radius:999px; background:#fff9eb; color:#93641a; font-size:11px; font-weight:800; white-space:nowrap; }
.b2b-section-badge.is-saved { border-color:#c8e8d0; background:#effaf2; color:#176b43; }
.b2b-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 15px; }
.b2b-form-grid>label,.b2b-notes-field { display:grid; gap:6px; min-width:0; color:#344a3b; font-size:12px; font-weight:750; }
.b2b-form-grid .b2b-field-full { grid-column:1 / -1; }
.b2b-form-grid .input,.b2b-notes-field .input { width:100%; min-width:0; min-height:43px; border-color:#dde7df; border-radius:11px; background:#fcfdfc; color:#172d1f; font-size:13px; }
.b2b-form-grid .input:focus,.b2b-notes-field .input:focus { border-color:#50a975; background:#fff; }
.b2b-profile-save-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid #edf2ee; }
.b2b-profile-save-row .small-note { margin:0; }
.b2b-selection-note { display:flex; align-items:flex-start; gap:8px; margin:-4px 0 12px; padding:10px 12px; border-radius:11px; background:#f6faf7; color:#566b5d; font-size:11px; line-height:1.5; }
.b2b-selection-note>span { color:#247447; font-weight:900; }
.b2b-empty-selection { display:grid; justify-items:center; gap:7px; padding:27px 18px; border:1px dashed #cbdace; border-radius:15px; background:#fafcfb; text-align:center; }
.b2b-empty-selection-icon { display:grid; place-items:center; width:38px; height:38px; margin-bottom:2px; border-radius:13px; background:#eaf7ed; color:#176b43; font-size:24px; }
.b2b-empty-selection strong { color:#213c2b; font-size:13px; }
.b2b-empty-selection p { max-width:420px; margin:0; color:#647469; font-size:12px; line-height:1.55; }
.b2b-empty-selection .small-note { margin:2px 0 0; font-size:10px; }
.b2b-product-line { grid-template-columns:minmax(0,1fr) 125px 38px; gap:12px; padding:13px 0; border-bottom-color:#e8eee9; }
.b2b-product-line:first-child { padding-top:3px; }
.b2b-product-line label { color:#344a3b; font-size:12px; font-weight:750; }
.b2b-product-line .input { min-width:0; min-height:43px; border-color:#dde7df; border-radius:11px; background:#fcfdfc; font-size:13px; }
.b2b-product-line .b2b-remove-line { width:38px; height:42px; padding:0; border-radius:11px; font-size:16px; }
.b2b-notes-field .input { min-height:92px; resize:vertical; }
.b2b-action-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:15px; }
.b2b-action-row .btn { min-height:46px; padding-inline:12px; }
.b2b-history-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-top:17px; }
.b2b-history-panel { min-width:0; margin:0; padding:clamp(13px,2vw,18px); border-color:#e4ebe5; border-radius:17px; box-shadow:none; background:#fff; }
.b2b-history-panel .b2b-section-title { margin:0 0 13px; }
.b2b-history-panel .b2b-section-title h3 { font-size:15px; }
.b2b-history-list { display:grid; gap:9px; }
.b2b-history-item { min-width:0; padding:12px; border:1px solid #e8eee9; border-radius:13px; background:#fcfdfc; }
.b2b-history-item-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.b2b-history-item-top>div { display:grid; gap:4px; min-width:0; }
.b2b-history-ref { color:#718076; font-size:9px; font-weight:900; letter-spacing:.1em; }
.b2b-history-item-top strong { color:#193423; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.b2b-status { flex:0 0 auto; max-width:45%; padding:4px 7px; border-radius:999px; background:#edf8ef; color:#176b43; font-size:9px; font-weight:800; line-height:1.3; text-align:center; }
.b2b-history-item>p { margin:9px 0; color:#657469; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.b2b-history-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding-top:9px; border-top:1px solid #edf2ee; color:#7a877e; font-size:10px; }
.b2b-history-meta .btn { min-height:32px; padding:6px 9px; font-size:10px; }
.b2b-order-money { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:12px 0; }
.b2b-order-money>div { display:grid; gap:3px; }
.b2b-order-money span { color:#738076; font-size:10px; }
.b2b-order-money strong { color:#193423; font-size:12px; }
.b2b-empty-history { padding:18px 12px; border:1px dashed #d8e3da; border-radius:13px; background:#fafcfb; }
.b2b-empty-history strong { color:#304c39; font-size:12px; }
.b2b-empty-history p { margin:5px 0 0; color:#728075; font-size:11px; line-height:1.5; }
.b2b-workspace-modal .close { flex:0 0 auto; width:36px; height:36px; font-size:18px; }
@media (max-width:700px) {
  .modal-card.b2b-workspace-modal { width:calc(100vw - 16px); max-height:94dvh; padding:13px; border-radius:18px; }
  .b2b-workspace-intro { align-items:flex-start; padding:15px; gap:10px; border-radius:15px; }
  .b2b-intro-mark { flex-basis:43px; width:43px; height:43px; border-radius:13px; font-size:11px; }
  .b2b-workspace-intro p { font-size:12px; }
  .b2b-overview-grid { gap:7px; margin-bottom:12px; }
  .b2b-overview-card { display:grid; justify-items:start; gap:7px; padding:10px 8px; border-radius:12px; }
  .b2b-overview-icon { flex-basis:29px; width:29px; height:29px; border-radius:9px; font-size:14px; }
  .b2b-overview-card strong { font-size:12px; }
  .b2b-overview-card span:last-child { font-size:9px; }
  .b2b-form-section { padding:13px; border-radius:15px; }
  .b2b-form-section .b2b-section-title { align-items:stretch; }
  .b2b-form-grid { grid-template-columns:minmax(0,1fr); gap:11px; }
  .b2b-form-grid .b2b-field-full { grid-column:auto; }
  .b2b-profile-save-row { align-items:stretch; flex-direction:column; }
  .b2b-profile-save-row .btn { width:100%; }
  .b2b-section-badge { align-self:flex-start; }
  .b2b-product-line { grid-template-columns:minmax(0,1fr) 38px; gap:9px; }
  .b2b-product-line>label:first-child { grid-column:1 / -1; }
  .b2b-product-line .b2b-product-quantity { grid-column:1; }
  .b2b-product-line .b2b-remove-line { grid-column:2; grid-row:2; align-self:end; }
  .b2b-action-row,.b2b-history-grid { grid-template-columns:minmax(0,1fr); }
  .b2b-action-row .btn { width:100%; }
  .b2b-history-grid { gap:10px; }
  .b2b-modal-head { align-items:flex-start; gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
  .b2b-workspace-modal * { scroll-behavior:auto; transition:none; animation:none; }
}


/* Administrateur général : masquer les raccourcis et actions destinés aux clients */
body.general-admin-mode #openCartBtn,
body.general-admin-mode #notificationBtn,
body.general-admin-mode #quoteBtn,
body.general-admin-mode #businessSpaceBtn,
body.general-admin-mode #heroWhatsApp,
body.general-admin-mode #budgetPackBuilderBtn,
body.general-admin-mode #b2b,
body.general-admin-mode .mobile-bottom-nav [data-mobile-action="cart"],
body.general-admin-mode .product-actions button[onclick^="addToCart("],
body.general-admin-mode .price-row button[onclick*="addToCart("],
body.general-admin-mode .flash-add-btn,
body.general-admin-mode .product-rating-summary,
body.general-admin-mode #productRatingSummaryDetail,
body.general-admin-mode .product-reviews-panel {
  display: none !important;
}
body.general-admin-mode .product-actions { grid-template-columns: minmax(0, 1fr); }
body.general-admin-mode .general-admin-account-modal {
  width: min(650px, calc(100vw - 24px));
  max-height: min(92dvh, 900px);
  padding: clamp(16px, 3vw, 28px);
  overflow-y: auto;
  border: 1px solid #dfe9e1;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 45, 27, .2);
}
.general-admin-modal-head {
  align-items: flex-start;
  padding-bottom: 15px;
  border-bottom: 1px solid #edf2ee;
}
.general-admin-modal-head h2 {
  margin: 4px 0 5px;
  font-size: clamp(22px, 3.6vw, 29px);
  letter-spacing: -.035em;
}
.general-admin-modal-head .small-note {
  max-width: 48ch;
  margin: 0;
  line-height: 1.5;
}
.general-admin-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 17px 0;
  padding: 17px;
  border: 1px solid #e4ebe5;
  border-radius: 17px;
  background: #fbfdfb;
}
.general-admin-avatar {
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 3px solid #dcfce7;
  border-radius: 50%;
  background: linear-gradient(145deg, #166534, #22c55e);
  box-shadow: 0 0 0 1px #bbf7d0;
  color: white;
  font-size: 16px;
  font-weight: 900;
}
.general-admin-role, .general-admin-kicker {
  display: inline-block;
  color: #247447;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.general-admin-identity h3 {
  margin: 3px 0;
  color: #193423;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.general-admin-identity p {
  margin: 0 0 7px;
  color: #67766b;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.general-admin-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #effaf2;
  color: #176b43;
  font-size: 10px;
  font-weight: 800;
}
.general-admin-control {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #e4ebe5;
  border-radius: 17px;
  background: white;
}
.general-admin-control h3 {
  margin: 4px 0 5px;
  color: #193423;
  font-size: 16px;
}
.general-admin-control p {
  margin: 0;
  color: #657469;
  font-size: 12px;
  line-height: 1.6;
}
.general-admin-control .checkout-grid { gap: 12px; margin-top: 0; }
.general-admin-control .input { width: 100%; min-width: 0; border-radius: 11px; }
.general-admin-account-modal .account-signout { margin-top: 6px; }
@media (max-width: 600px) {
  body.general-admin-mode .nav-actions { gap: 4px; }
  body.general-admin-mode #accountBtn.account-nav-user { min-width: 56px; }
  body.general-admin-mode .general-admin-account-modal {
    width: calc(100vw - 16px);
    max-height: 94dvh;
    padding: 13px;
    border-radius: 18px;
  }
  .general-admin-identity { gap: 11px; padding: 13px; }
  .general-admin-avatar { flex-basis: 46px; width: 46px; height: 46px; font-size: 14px; }
  .general-admin-control { gap: 12px; padding: 14px; border-radius: 14px; }
  .general-admin-control .btn { width: 100%; }
}


/* Compte administrateur général : profil modifiable et photo privée */
.general-admin-avatar {
  overflow: hidden;
}
.general-admin-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.general-admin-profile-control .profile-photo-settings {
  margin: 0;
  width: 100%;
}
.general-admin-profile-control .general-admin-profile-form {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}
.general-admin-profile-control .general-admin-profile-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #344a3b;
  font-size: 12px;
  font-weight: 750;
}
.general-admin-profile-control .general-admin-profile-form .input {
  width: 100%;
  min-width: 0;
  border-radius: 11px;
}
@media (max-width: 600px) {
  .general-admin-profile-control .profile-photo-settings {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .general-admin-profile-control .profile-photo-preview-wrap {
    width: 52px;
    height: 52px;
  }
  .general-admin-profile-control .profile-photo-actions {
    flex-direction: column;
  }
  .general-admin-profile-control .profile-photo-actions .btn {
    width: 100%;
  }
}
#adminPanel .admin-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dfe8e1;
}
#adminPanel .admin-top-heading {
  min-width: 180px;
  flex: 1 1 220px;
}
#adminPanel .admin-top h2 {
  margin: 4px 0 5px;
  color: #183426;
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.04em;
}
#adminPanel .admin-context {
  margin: 0;
  color: #718077;
  font-size: 11px;
  overflow-wrap: anywhere;
}
#adminPanel .admin-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}
#adminPanel .admin-global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 225px;
  min-width: 160px;
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid #dbe6dd;
  border-radius: 11px;
  background: #fff;
  color: #63806c;
}
#adminPanel .admin-global-search > span { font-size: 21px; line-height: 1; }
#adminPanel .admin-global-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #183426;
  font: inherit;
  font-size: 11px;
}
#adminPanel .admin-global-search:focus-within { border-color: #5cac79; box-shadow: 0 0 0 3px rgba(76,175,111,.1); }
#adminPanel .admin-header-action {
  min-height: 39px;
  border-radius: 10px;
  white-space: nowrap;
}
#adminPanel #adminContent { min-width: 0; }
#adminPanel #adminContent > .panel,
#adminPanel #adminContent .panel {
  border-color: #e0e9e2;
  border-radius: 17px;
  box-shadow: 0 5px 22px rgba(20,51,32,.035);
}
#adminPanel #adminContent .panel h3 {
  color: #1b3928;
  letter-spacing: -.018em;
}
#adminPanel #adminContent .table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #e9efe9;
  border-radius: 12px;
  background: #fff;
}
#adminPanel #adminContent .table {
  min-width: 640px;
  font-size: 12px;
}
#adminPanel #adminContent .table th {
  padding: 12px 11px;
  background: #f7faf7;
  color: #68796d;
  font-size: 9px;
  letter-spacing: .075em;
}
#adminPanel #adminContent .table td {
  padding: 11px;
  color: #304337;
  vertical-align: middle;
}
#adminPanel #adminContent .table tbody tr:hover { background: #f8fbf8; }
#adminPanel #adminContent .table input.input,
#adminPanel #adminContent .table select.input {
  min-width: 92px;
  min-height: 36px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 11px;
}
#adminPanel .admin-no-match {
  margin: 8px 2px 0;
  padding: 12px;
  border: 1px dashed #cbd9ce;
  border-radius: 10px;
  background: #fbfdfb;
  color: #718077;
  text-align: center;
}
#adminPanel .loading-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 110px;
  color: #375343;
}
#adminPanel .loading-panel p { margin: 4px 0 0; }
#adminPanel .admin-loading-spinner {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 3px solid #d9e8dc;
  border-top-color: #23834b;
  border-radius: 50%;
  animation: sama-admin-spin .8s linear infinite;
}
@keyframes sama-admin-spin { to { transform: rotate(360deg); } }
#adminPanel .admin-error-panel {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: clamp(18px, 3vw, 30px);
}
#adminPanel .admin-error-panel h3,
#adminPanel .admin-error-panel p { margin: 0; }
#adminPanel .admin-error-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #fff1e8;
  color: #a64b17;
  font-weight: 900;
}
#adminPanel .admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 17px;
}
#adminPanel .admin-quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid #deeadf;
  border-radius: 14px;
  background: #fff;
  color: #1c3928;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
#adminPanel .admin-quick-action:hover {
  border-color: #9fc9aa;
  box-shadow: 0 6px 18px rgba(22,74,39,.07);
  transform: translateY(-1px);
}
#adminPanel .admin-quick-icon {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #edf7ef;
  color: #247447;
  font-size: 16px;
  font-weight: 900;
}
#adminPanel .admin-quick-action > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}
#adminPanel .admin-quick-action strong { font-size: 11px; line-height: 1.35; }
#adminPanel .admin-quick-action small { color: #738176; font-size: 9px; line-height: 1.4; }
#adminPanel .admin-quick-arrow { color: #5c8e6d; font-weight: 900; }
@media (max-width: 1180px) {
  #adminPanel .admin-quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #adminPanel .admin-top-actions { flex: 1 1 100%; justify-content: flex-start; }
  #adminPanel .admin-global-search { flex: 1 1 260px; }
}
@media (max-width: 900px) {
  #adminPanel .admin-top { margin-bottom: 15px; padding-bottom: 14px; gap: 11px; }
}
@media (max-width: 600px) {
  #adminPanel .admin-top { align-items: flex-start; flex-direction: column; }
  #adminPanel .admin-top-heading { width: 100%; }
  #adminPanel .admin-top h2 { font-size: 24px; }
  #adminPanel .admin-top-actions { display: flex; width: 100%; justify-content: stretch; gap: 6px; }
  #adminPanel .admin-global-search { flex: 1 1 100%; width: 100%; min-width: 100%; }
  #adminPanel .admin-header-action { flex: 1 1 auto; justify-content: center; padding: 8px 9px; font-size: 10px; }
  #adminPanel #viewShopBtn { display: inline-flex; }
  #adminPanel .admin-quick-actions { grid-template-columns: minmax(0,1fr); gap: 8px; }
  #adminPanel .admin-quick-action { padding: 11px 12px; }
  #adminPanel #adminContent .panel { padding: 13px; border-radius: 14px; }
  #adminPanel #adminContent .table { min-width: 600px; }
  #adminPanel #adminContent .table th,
  #adminPanel #adminContent .table td { padding: 9px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #adminPanel .admin-loading-spinner { animation: none; }#adminPanel .admin-quick-action{ transition: none; }
}


/* Consentement e-mail commercial : explicite, facultatif et réversible */
.marketing-consent {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid #d9e9dc;
  border-radius: 12px;
  background: #f6faf6;
  color: #284733;
}
.marketing-consent > span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}
.marketing-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #176b43;
}
.marketing-consent small {
  padding-left: 26px;
  color: #6c7b70;
  font-size: 11px;
  line-height: 1.5;
}

/* Fiche CRM client */
.admin-customer-detail-modal {
  width: min(920px, calc(100vw - 28px));
  max-height: min(94dvh, 1000px);
  padding: clamp(14px, 2.4vw, 25px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce8dd;
  border-radius: 22px;
}
.customer-detail-modal-head {
  align-items: flex-start;
  padding-bottom: 15px;
  border-bottom: 1px solid #e7eee8;
}
.customer-detail-modal-head h2 {
  margin: 4px 0;
  color: #183b28;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -.035em;
}
.customer-detail-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 16px 0 12px;
  padding: 15px;
  border: 1px solid #e0eae1;
  border-radius: 17px;
  background: #fafcf9;
}
.customer-detail-avatar-image,
.customer-detail-avatar-fallback {
  display: grid;
  flex: 0 0 58px;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid #d9efdf;
  border-radius: 50%;
  background: #e8f6eb;
  color: #176b43;
  font-size: 17px;
  font-weight: 900;
  object-fit: cover;
}
.customer-detail-identity-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.customer-detail-identity-copy h3 {
  margin: 0;
  color: #183b28;
  font-size: 19px;
  overflow-wrap: anywhere;
}
.customer-detail-identity-copy p {
  margin: 0;
  color: #53675a;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.customer-detail-identity-copy small {
  margin-top: 4px;
  color: #718075;
  font-size: 10px;
}
.customer-detail-kicker {
  color: #267348;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.customer-detail-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 16px;
}
.customer-detail-contact-actions .btn {
  min-height: 42px;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.customer-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0 18px;
}
.customer-detail-stats article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2ebe3;
  border-radius: 13px;
  background: #fff;
}
.customer-detail-stats article span {
  color: #718075;
  font-size: 10px;
  line-height: 1.4;
}
.customer-detail-stats article strong {
  color: #1b402b;
  font-size: clamp(13px, 1.8vw, 18px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.customer-detail-section {
  min-width: 0;
  margin: 13px 0;
  padding: 16px;
  border: 1px solid #e0e9e1;
  border-radius: 16px;
  background: #fff;
}
.customer-detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.customer-detail-section-heading h3 {
  margin: 0;
  color: #1a3d29;
  font-size: 15px;
}
.customer-detail-section-heading span {
  color: #728076;
  font-size: 10px;
}
.customer-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.customer-detail-info-grid > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 11px;
  background: #f7faf7;
}
.customer-detail-info-grid > div span {
  color: #738077;
  font-size: 10px;
}
.customer-detail-info-grid > div strong {
  color: #284233;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.customer-detail-info-grid .customer-detail-info-full { grid-column: 1 / -1; }
.customer-history-order {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #e7eee8;
  border-radius: 13px;
  background: #fcfdfc;
}
.customer-history-order-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}
.customer-history-order-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.customer-history-order-head > div strong {
  color: #1b3e2a;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.customer-history-order-head > strong:last-child {
  color: #176b43;
  font-size: 12px;
  white-space: nowrap;
}
.customer-order-items {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 19px;
  color: #4b6051;
  font-size: 11px;
  line-height: 1.55;
}
.customer-history-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  padding-top: 9px;
  border-top: 1px solid #e8eee9;
  color: #607065;
  font-size: 10px;
}
.customer-history-order .btn { justify-self: start; }
.customer-detail-list {
  display: grid;
  gap: 9px;
}
.customer-detail-list-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e6eee7;
  border-radius: 12px;
  background: #fbfdfb;
}
.customer-detail-list-item > strong {
  color: #1b3e2a;
  font-size: 12px;
}
.customer-detail-list-item .status { justify-self: start; }
.customer-detail-list-item p {
  margin: 0;
  color: #516356;
  font-size: 12px;
  line-height: 1.55;
}
.customer-detail-list-item small {
  color: #738077;
  font-size: 10px;
}

/* Tableau de bord des campagnes marketing */
.marketing-admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 13px;
  padding: clamp(18px, 2.8vw, 26px);
  border: 1px solid #d6e8d9;
  border-radius: 17px;
  background: linear-gradient(130deg, #eef8f0, #fbfdfb 72%);
}
.marketing-admin-hero h3 {
  margin: 4px 0 7px !important;
  font-size: clamp(20px, 2.5vw, 27px) !important;
  letter-spacing: -.035em;
}
.marketing-admin-hero p {
  max-width: 760px;
  margin: 0;
  color: #5c6f61;
  font-size: 12px;
  line-height: 1.7;
}
.marketing-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.marketing-admin-stat {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #e0e9e1;
  border-radius: 14px;
  background: #fff;
}
.marketing-admin-stat span {
  color: #66786b;
  font-size: 11px;
  line-height: 1.45;
}
.marketing-admin-stat strong {
  color: #176b43;
  font-size: 25px;
  line-height: 1.15;
}
.marketing-admin-stat small {
  color: #758178;
  font-size: 10px;
  line-height: 1.5;
}
.marketing-admin-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.marketing-admin-schedule h4 {
  margin: 5px 0 7px;
  color: #1b402b;
  font-size: 16px;
}
.marketing-admin-schedule p {
  max-width: 780px;
  margin: 0 0 8px;
  color: #586b5e;
  font-size: 12px;
  line-height: 1.65;
}
.marketing-admin-schedule .marketing-send-now {
  max-width: 300px;
  min-height: 44px;
}
.marketing-admin-history .admin-panel-head { align-items: center; }

@media (max-width: 760px) {
  .admin-customer-detail-modal {
    width: calc(100vw - 14px);
    max-height: 95dvh;
    padding: 12px;
    border-radius: 17px;
  }
  .customer-detail-identity { gap: 11px; padding: 12px; }
  .customer-detail-avatar-image, .customer-detail-avatar-fallback {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 14px;
  }
  .customer-detail-contact-actions { flex-direction: column; }
  .customer-detail-contact-actions .btn { width: 100%; }
  .customer-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .customer-detail-stats article { padding: 11px; }
  .customer-detail-info-grid { grid-template-columns: minmax(0, 1fr); }
  .customer-detail-info-grid .customer-detail-info-full { grid-column: auto; }
  .customer-detail-section { padding: 12px; }
  .customer-history-order-head { grid-template-columns: minmax(0,1fr) auto; }
  .customer-history-order-head > strong:last-child { grid-column: 1 / -1; }
  .marketing-admin-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .marketing-admin-stat { padding: 11px; }
  .marketing-admin-stat strong { font-size: 21px; }
  .marketing-admin-schedule { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .marketing-admin-schedule .marketing-send-now { max-width: none; width: 100%; }
}


/* Owner-controlled associate permissions */
.permission-option-list {
  display: grid;
  gap: 8px;
  max-height: min(62dvh, 620px);
  overflow: auto;
  padding: 2px 2px 8px;
}
.permission-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border, #dce5dc);
  border-radius: 12px;
  background: var(--surface, #fff);
  cursor: pointer;
}
.permission-option-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.permission-option-copy strong {
  font-size: 14px;
}
.permission-option-copy small {
  color: var(--muted, #607064);
  font-size: 12px;
  line-height: 1.45;
}
.permission-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  accent-color: var(--primary, #176b43);
}
.permission-option:focus-within {
  outline: 2px solid var(--primary, #176b43);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .permission-option { padding: 11px; gap: 10px; }
  .permission-option-copy strong { font-size: 13px; }
}


/* SAMA-PACK — correctifs audit : accueil, cartes mobiles et fiches produits indexables */
#home .hero-grid:has(#promoSection.hidden) { grid-template-columns: minmax(0, 1fr); }
#home .hero-content { max-width: 820px; }
.desktop-nav { gap: 16px; font-size: 13px; }
.product-name-link { display:block; color:var(--ink); font-weight:900; line-height:1.25; text-decoration:none; }
.product-name-link:hover { color:var(--green); text-decoration:underline; text-underline-offset:3px; }
.product-load-error { grid-column:1/-1; padding:22px; border:1px solid #fecaca; border-radius:16px; background:#fff7f7; color:#7f1d1d; }
.product-load-error p { margin:8px 0 14px; color:#7f1d1d; }
.seo-product-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:34px; align-items:start; }
.seo-product-photo-wrap { min-height:300px; display:grid; place-items:center; border:1px solid var(--line); border-radius:22px; overflow:hidden; background:var(--alt); }
.seo-product-photo { display:block; width:100%; height:auto; max-height:520px; object-fit:contain; }
.seo-product-info { display:flex; flex-direction:column; gap:14px; }
.seo-product-price { font-size:clamp(25px,3.5vw,38px); font-weight:950; letter-spacing:-.04em; }
.seo-product-list { padding-left:22px; color:var(--muted); line-height:1.9; }
.seo-product-breadcrumb { font-size:13px; color:var(--muted); margin-bottom:20px; }
.seo-product-breadcrumb a { color:var(--green); font-weight:700; }
.legal-content { max-width:880px; margin:0 auto; }
.legal-content h2 { margin-top:32px; font-size:24px; letter-spacing:-.025em; }
.legal-content p,.legal-content li { color:#475569; line-height:1.8; font-size:15px; }
.legal-content ul { padding-left:22px; }
.legal-updated { color:var(--muted); font-size:12px; margin-top:12px; }
@media (max-width: 600px) {
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .product-card { min-width:0; border-radius:14px; }
  .pack-visual { min-height:132px; padding:9px; }
  .product-body { min-width:0; padding:11px; gap:9px; }
  .product-name-link { font-size:14px; }
  .product-desc { font-size:12px; min-height:0; }
  .product-card .price { font-size:16px; }
  .product-actions { flex-direction:column; gap:6px; }
  .product-actions .btn { width:100%; min-height:36px; padding:8px; font-size:12px; }
  .seo-product-layout { grid-template-columns:minmax(0,1fr); gap:22px; }
  .seo-product-photo-wrap { min-height:220px; }
  body.legal-page, body.product-detail-page { padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
}

/* Heading scale for the single-product catalogue page */
.individual-catalog-section h1 { font-size:clamp(30px,3.2vw,38px); line-height:1.08; letter-spacing:-.04em; margin:6px 0 0; }


/* Menu hamburger du back-office sur mobile : ouverture verticale dans la hauteur de l'écran. */



/* Admin inbox: messages submitted through the public contact page */
.contact-message-body {
  max-width: 620px;
  margin: 8px 0 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.contact-message-status {
  min-width: 120px;
  margin-top: 8px;
}
.status-badge.status-new { background:#fff0d7; color:#8a4b00; }
.status-badge.status-read { background:#e8f1ff; color:#2454a6; }
.status-badge.status-replied { background:#e7f7eb; color:#17633a; }
.status-badge.status-closed { background:#eef0f2; color:#475467; }
@media(max-width:700px) {
  .contact-message-body { min-width:220px; }
}


/* SAMA-PACK Livraison — back-office assignment and reconciliation */
.delivery-assignment-select { min-width: 165px; }
.delivery-admin-collection-note { min-width: 170px; }
.delivery-admin-event-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.delivery-admin-event-actions .btn { white-space:nowrap; }
@media(max-width:700px) {
  .delivery-assignment-select { min-width: 145px; }
  .delivery-admin-event-actions { flex-direction:column; }
  .delivery-admin-event-actions .btn { width:100%; justify-content:center; }
}


/* Delivery failure reports — readable, persistent admin history */
.delivery-failure-message {
  min-width: 240px;
  max-width: 560px;
  padding: 12px 14px;
  border: 1px solid #f0d8b7;
  border-left: 4px solid #c17a22;
  border-radius: 10px;
  background: #fffaf3;
  color: #563b1b;
  white-space: normal;
  overflow-wrap: anywhere;
}
.delivery-failure-message strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}
.delivery-failure-message p {
  margin: 0;
  color: #604c32;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}
@media (max-width: 700px) {
  .delivery-failure-message { min-width: 180px; }
}


/* Dedicated notification control in the general-admin workspace */
.admin-notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: 3px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.admin-notification-badge.hidden { display: none !important; }
.admin-notification-permission {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid #e6d6b8;
  border-radius: 12px;
  background: #fffaf1;
  color: #533e1b;
  font-size: 13px;
}
.admin-notification-permission span {
  color: #68583c;
  line-height: 1.45;
}
.admin-notification-permission.is-enabled {
  border-color: #b9dcc7;
  background: #f3faf5;
  color: #195b37;
}
.admin-notification-permission.is-enabled span { color: #426a52; }
@media (max-width: 700px) {
  #adminNotificationBtn { min-width: 0; padding-inline: 9px; }
  #adminNotificationBtn span:not(.admin-notification-badge) { display: none; }
}


/* Navigation boutique : la barre défile avec la page, sans rester collée en haut. */
@media (max-width: 700px) {
  .topbar .nav { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; width:96vw; min-width:0; height:58px; gap:6px; }
  .topbar .brand { min-width:0; white-space:nowrap; }
  .topbar .nav-actions { display:flex; justify-self:end; align-items:center; justify-content:flex-end; flex-wrap:nowrap; min-width:0; gap:4px; white-space:nowrap; }
  .topbar .nav-actions > * { flex:0 0 auto; }
  .topbar .icon-btn { display:inline-flex; align-items:center; justify-content:center; min-width:34px; min-height:36px; padding:6px 7px; }
  .topbar #accountBtn { max-width:82px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:7px 8px; font-size:10px; }
  .topbar .mobile-menu-toggle { width:36px; height:36px; min-height:36px; padding:7px; }
  .topbar .mobile-menu-icon { width:19px; flex-basis:19px; }
  .topbar .mobile-menu-icon i { width:19px; }
}
html.maintenance-checking body > *:not(#siteMaintenanceScreen) { visibility:hidden !important; }
body.site-maintenance-active { min-height:100vh; overflow:hidden !important; background:#f2f7f3 !important; }
body.site-maintenance-active > *:not(#siteMaintenanceScreen):not(#modalRoot) { display:none !important; }
body.site-maintenance-active #modalRoot { position:relative; z-index:100002; }
.site-maintenance-screen {
  position:fixed; inset:0; z-index:100000; display:grid; place-items:center; min-height:100dvh;
  padding:24px; overflow-y:auto;
  background:radial-gradient(circle at 12% 8%,rgba(34,197,94,.12),transparent 32%),linear-gradient(145deg,#f7faf8,#eaf4ed);
}
.site-maintenance-card { width:min(540px,100%); padding:clamp(28px,6vw,48px); border:1px solid #dce9df; border-radius:26px; background:rgba(255,255,255,.96); box-shadow:0 22px 70px rgba(16,53,31,.11); text-align:center; }
.site-maintenance-mark { display:grid; place-items:center; width:58px; height:58px; margin:0 auto 18px; border-radius:18px; background:#166534; color:#fff; font-size:28px; font-weight:950; }
.site-maintenance-eyebrow { color:#166534; font-size:10px; font-weight:900; letter-spacing:.18em; }
.site-maintenance-card h1 { margin:12px 0; color:#173b27; font-size:clamp(27px,5vw,38px); line-height:1.12; letter-spacing:-.04em; }
.site-maintenance-message { margin:14px 0; color:#405447; font-size:15px; line-height:1.7; white-space:pre-line; }
.site-maintenance-note { margin:0; color:#77877c; font-size:12px; line-height:1.6; }
.site-maintenance-admin-access { margin-top:23px; padding:8px 12px; border:1px solid #e1eae3; border-radius:10px; background:#fff; color:#6a7a6e; font-size:11px; font-weight:700; cursor:pointer; }
.settings-maintenance-card { display:grid; gap:10px; padding:17px; border:1px solid #dfe9e1; border-radius:14px; background:#f7faf8; }
.settings-maintenance-card h3,.settings-maintenance-card p { margin:0; }
@media(max-width:600px) { .site-maintenance-card { padding:28px 20px; border-radius:20px; } .site-maintenance-message { font-size:14px; } }

/* En-tête flottant compact pour les pages d'information : logo + menu uniquement. */
.info-floating-header .nav{height:64px;padding:0 14px;gap:12px}
.info-floating-header .brand{font-size:clamp(18px,2.5vw,25px)}
.info-floating-header .brand-mark{width:42px;height:42px;border-radius:13px}
.info-floating-header .nav-actions{margin-left:auto}
.info-floating-header .mobile-menu-shell{display:flex!important;position:relative;align-items:center}
.info-floating-header .mobile-menu-toggle{display:grid;place-items:center;width:48px;height:48px;border:1px solid #dce8df;border-radius:14px;background:#f8fbf9;color:#174b31;cursor:pointer}
.info-floating-header .mobile-menu-icon{display:flex;flex-direction:column;gap:5px;width:22px}
.info-floating-header .mobile-menu-icon i{display:block;width:22px;height:3px;border-radius:4px;background:#174b31}
.info-floating-header .mobile-nav-menu{display:none;position:absolute;right:0;top:calc(100% + 12px);width:min(290px,calc(100vw - 34px));padding:9px;border:1px solid #e0e9e2;border-radius:17px;background:#fff;box-shadow:0 16px 42px rgba(12,45,26,.18);z-index:1002}

.info-floating-header .mobile-nav-item{display:flex;align-items:center;gap:12px;padding:12px;border:0;border-radius:10px;background:transparent;color:#243b2d;text-align:left;text-decoration:none;font-size:14px;font-weight:700;cursor:pointer}
.info-floating-header .mobile-nav-item:hover{background:#f0f8f2}
.info-floating-header .mobile-nav-item small{font-size:13px}
@media(max-width:700px){
 body{padding-top:88px}
 .info-floating-header{top:8px;width:calc(100% - 16px);border-radius:15px}
 .info-floating-header .nav{height:58px;padding:0 9px}
 .info-floating-header .brand{font-size:17px}
 .info-floating-header .brand-mark{width:36px;height:36px;border-radius:11px}
 .info-floating-header .mobile-menu-toggle{width:42px;height:42px}
}


/* SAMA-PACK — en-tête partagé : mêmes dimensions et même alignement sur toutes les pages */
header.topbar.info-floating-header{
  position:fixed!important;top:10px!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;width:min(1160px,calc(100% - 20px))!important;
  z-index:10000!important;margin:0!important;border-radius:16px!important;
  background:rgba(255,255,255,.97)!important;backdrop-filter:blur(16px);
}
body{padding-top:100px!important}
.info-floating-header .wrap.nav{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  width:100%!important;max-width:none!important;height:64px!important;min-height:64px!important;
  padding:0 12px!important;margin:0!important;gap:10px!important;
}
.info-floating-header .brand{display:flex!important;align-items:center!important;flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important;gap:7px!important;font-size:18px!important}
.info-floating-header .brand-mark{flex:0 0 auto!important;width:36px!important;height:36px!important}
.info-floating-header .nav-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;flex-wrap:nowrap!important;gap:6px!important;margin-left:auto!important;min-width:0!important}
.info-floating-header .nav-actions>.icon-btn,
.info-floating-header .nav-actions>#accountBtn,
.info-floating-header .nav-actions>.mobile-menu-shell{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;margin:0!important}
.info-floating-header .nav-actions>.icon-btn{min-width:36px!important;width:auto!important;height:38px!important;min-height:38px!important;padding:5px 7px!important;border-radius:10px!important;font-size:14px!important;white-space:nowrap!important}
.info-floating-header .nav-actions>#accountBtn{height:38px!important;min-height:38px!important;max-width:86px!important;min-width:0!important;padding:6px 9px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important}
.info-floating-header .mobile-menu-shell{position:relative!important;display:inline-flex!important;align-items:center!important;flex:0 0 auto!important}
.info-floating-header .mobile-menu-toggle{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-height:38px!important;padding:6px!important;border:1px solid #dce8df!important;border-radius:11px!important;background:#f8fbf9!important}
.info-floating-header .mobile-menu-icon{display:flex!important;flex-direction:column!important;gap:4px!important;width:19px!important}
.info-floating-header .mobile-menu-icon i{display:block!important;width:19px!important;height:2px!important;border-radius:3px!important;background:#174b31!important}
.info-floating-header .mobile-nav-menu{display:none;position:absolute!important;right:0!important;top:calc(100% + 10px)!important;width:min(290px,calc(100vw - 24px))!important;max-height:min(70vh,520px)!important;overflow-y:auto!important;padding:9px!important;border:1px solid #e0e9e2!important;border-radius:15px!important;background:#fff!important;box-shadow:0 16px 42px rgba(12,45,26,.18)!important;z-index:10001!important}
.info-floating-header .mobile-menu-shell.is-open .mobile-nav-menu{display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.info-floating-header .mobile-nav-item{display:flex!important;align-items:center!important;gap:12px!important;padding:12px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#243b2d!important;text-align:left!important;text-decoration:none!important;font-size:14px!important;font-weight:700!important;cursor:pointer!important}
@media(max-width:700px){
 body{padding-top:82px!important}
 header.topbar.info-floating-header{top:7px!important;width:calc(100% - 12px)!important;border-radius:13px!important}
 .info-floating-header .wrap.nav{height:54px!important;min-height:54px!important;padding:0 6px!important;gap:4px!important}
 .info-floating-header .brand{gap:4px!important;font-size:clamp(13px,3.8vw,17px)!important;letter-spacing:-.04em!important}
 .info-floating-header .brand-mark{width:30px!important;height:30px!important;border-radius:9px!important;font-size:15px!important}
 .info-floating-header .nav-actions{gap:3px!important}
 .info-floating-header .nav-actions>.icon-btn{min-width:29px!important;height:33px!important;min-height:33px!important;padding:4px 4px!important;font-size:12px!important;border-radius:8px!important}
 .info-floating-header .nav-actions>#accountBtn{max-width:65px!important;height:33px!important;min-height:33px!important;padding:4px 5px!important;font-size:9px!important;border-radius:8px!important}
 .info-floating-header .mobile-menu-toggle{width:32px!important;height:33px!important;min-height:33px!important;padding:5px!important;border-radius:8px!important}
 .info-floating-header .mobile-menu-icon,.info-floating-header .mobile-menu-icon i{width:17px!important}
}
@media(max-width:360px){
 .info-floating-header .brand{font-size:12px!important}
 .info-floating-header .brand-mark{width:27px!important;height:27px!important}
 .info-floating-header .nav-actions{gap:2px!important}
 .info-floating-header .nav-actions>.icon-btn{min-width:27px!important;padding:3px!important}
 .info-floating-header .nav-actions>#accountBtn{max-width:56px!important;font-size:8px!important}
 .info-floating-header .mobile-menu-toggle{width:29px!important}
}


/* ÉTAT CONNECTÉ — le profil prend la place de Connexion sans déplacer les actions */
.info-floating-header .nav-actions > #accountBtn.account-nav-user{
 display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:96px!important;
 min-height:38px!important;height:38px!important;gap:5px!important;padding:4px 7px!important;
 border:1px solid #dce8df!important;border-radius:10px!important;background:#fff!important;color:#173b29!important;
 line-height:1!important;white-space:nowrap!important;overflow:hidden!important;
}
.info-floating-header .nav-actions > #accountBtn.account-nav-user:hover{background:#f4faf5!important;border-color:#b4d8bf!important}
.info-floating-header #accountBtn.account-nav-user .account-nav-avatar{
 display:grid!important;flex:0 0 23px!important;width:23px!important;height:23px!important;border-width:1px!important;font-size:9px!important;
}
.info-floating-header #accountBtn.account-nav-user .account-nav-label{
 display:block!important;flex:0 1 auto!important;min-width:0!important;max-width:62px!important;overflow:hidden!important;
 text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;line-height:1!important;
}
/* La gestion reste dans le hamburger : celui-ci demeure toujours le dernier élément à droite. */
.info-floating-header .nav-actions > #adminBtn{display:none!important}
@media(max-width:700px){
 .info-floating-header .nav-actions > #accountBtn.account-nav-user{max-width:76px!important;min-height:33px!important;height:33px!important;padding:3px 5px!important;gap:4px!important;border-radius:8px!important}
 .info-floating-header #accountBtn.account-nav-user .account-nav-avatar{flex-basis:20px!important;width:20px!important;height:20px!important;font-size:8px!important}
 .info-floating-header #accountBtn.account-nav-user .account-nav-label{max-width:49px!important;font-size:9px!important}
}
@media(max-width:380px){
 .info-floating-header .nav-actions > #accountBtn.account-nav-user{max-width:62px!important;padding:3px 4px!important;gap:3px!important}
 .info-floating-header #accountBtn.account-nav-user .account-nav-avatar{flex-basis:19px!important;width:19px!important;height:19px!important}
 .info-floating-header #accountBtn.account-nav-user .account-nav-label{max-width:35px!important;font-size:8px!important}
}
#adminPanel .admin-top {
  padding:18px 20px;
  border:1px solid #e2ebe5;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 20px rgba(20,60,36,.045);
}
#adminPanel .admin-top .eyebrow { color:#397b50; }
#adminPanel .admin-context { color:#64796a; }
@media(max-width:900px) {
  #adminPanel .admin-top { padding:14px; border-radius:13px; }
}


/* Correction d’empilement : les fenêtres modales doivent passer au-dessus du back-office. */
#modalRoot {
  position: relative;
  z-index: 10020;
}
#modalRoot .modal {
  z-index: 10021;
}


/* Découverte aléatoire de l'autre catalogue */
.catalog-discovery {
  position: fixed;
  z-index: 980;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 28px));
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(.985);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
  font-family: inherit;
}
.catalog-discovery.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}
.catalog-discovery-card {
  position: relative;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #dce9df;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 48px rgba(15, 45, 27, .22);
  backdrop-filter: blur(14px);
}
.catalog-discovery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #e2e8e2;
  border-radius: 50%;
  background: #fff;
  color: #405348;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.catalog-discovery-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 34px;
  margin-bottom: 12px;
}
.catalog-discovery-kicker {
  color: #287148;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.catalog-discovery-heading strong {
  color: #183b28;
  font-size: 14px;
  line-height: 1.35;
}
.catalog-discovery-content {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}
.catalog-discovery-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 112px;
  overflow: hidden;
  border-radius: 12px;
  background: #f0f7f1;
}
.catalog-discovery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-discovery-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
}
.catalog-discovery-placeholder .cleaning-bottle-icon {
  width: 48px;
  height: 62px;
}
.catalog-discovery-promo-label {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #176b43;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-discovery-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.catalog-discovery-type {
  color: #718075;
  font-size: 10px;
  font-weight: 800;
}
.catalog-discovery-name {
  display: -webkit-box;
  overflow: hidden;
  color: #183b28;
  font-size: 14px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.catalog-discovery-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #637168;
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.catalog-discovery-price {
  margin-top: 2px;
}
.catalog-discovery-price .price {
  color: #176b43;
  font-size: 16px;
  font-weight: 900;
}
.catalog-discovery-price .old-price {
  color: #879289;
  font-size: 10px;
}
.catalog-discovery-price .promo-label {
  display: none;
}
.catalog-discovery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.catalog-discovery-actions .btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 11px;
  font-size: 11px;
}
.catalog-discovery-catalog-link {
  color: #287148;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}
.catalog-discovery-catalog-link:hover {
  color: #14532d;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .catalog-discovery {
    right: 10px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
  }
  .catalog-discovery-card {
    padding: 13px;
    border-radius: 16px;
  }
  .catalog-discovery-content {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
  }
  .catalog-discovery-visual {
    width: 88px;
    height: 102px;
  }
  .catalog-discovery-name {
    font-size: 13px;
  }
  .catalog-discovery-actions {
    gap: 8px;
  }
  .catalog-discovery-actions .btn {
    min-height: 35px;
    padding: 8px 9px;
    font-size: 10px;
  }
  .catalog-discovery-catalog-link {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-discovery {
    transition: none;
  }
}


/* Lien vidéo facultatif du mode d’emploi sur les fiches produits */
.product-howto{margin:16px 0;}
.product-howto-link{display:inline-flex;align-items:center;gap:8px;max-width:100%;white-space:normal;text-align:left;}


/* Navigation partagée ordinateur / mobile : mêmes destinations, présentation adaptée à l'écran. */
.info-floating-header .desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(8px, .8vw, 13px);
  color: #475569;
  font-size: 12px;
  white-space: nowrap;
}
.info-floating-header .desktop-nav > a,
.info-floating-header .desktop-nav-more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #475569;
  font-weight: 750;
  text-decoration: none;
  transition: color .15s ease;
}
.info-floating-header .desktop-nav > a:hover,
.info-floating-header .desktop-nav-more > summary:hover,
.info-floating-header .desktop-nav > a:focus-visible,
.info-floating-header .desktop-nav-more > summary:focus-visible {
  color: var(--green);
}
.info-floating-header .desktop-nav-more {
  position: relative;
  flex: 0 0 auto;
}
.info-floating-header .desktop-nav-more > summary {
  gap: 5px;
  list-style: none;
  cursor: pointer;
}
.info-floating-header .desktop-nav-more > summary::-webkit-details-marker {
  display: none;
}
.info-floating-header .desktop-nav-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 10003;
  display: grid;
  min-width: 220px;
  gap: 3px;
  padding: 8px;
  border: 1px solid #e0e9e2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(12,45,26,.17);
}
.info-floating-header .desktop-nav-more:not([open]) .desktop-nav-dropdown {
  display: none;
}
.info-floating-header .desktop-nav-dropdown a {
  display: block;
  padding: 10px 11px;
  border-radius: 9px;
  color: #34483b;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.info-floating-header .desktop-nav-dropdown a:hover,
.info-floating-header .desktop-nav-dropdown a:focus-visible {
  color: var(--green);
  background: #edf9f0;
  outline: none;
}
@media (min-width: 1241px) {
  .info-floating-header .nav {
    gap: 14px !important;
  }
}
@media (min-width: 1241px) {
  .info-floating-header .desktop-nav {
    display: flex !important;
  }
  .info-floating-header .mobile-menu-shell {
    display: none !important;
  }
  .info-floating-header .nav-actions > #adminBtn:not(.hidden) {
    display: inline-flex !important;
  }
}
@media (max-width: 1240px) {
  .info-floating-header .desktop-nav {
    display: none !important;
  }
  .info-floating-header .mobile-menu-shell {
    display: inline-flex !important;
  }
}
@media (max-width: 700px) {
  .info-floating-header .nav {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    align-items: center !important;
    width: 96vw !important;
    min-width: 0 !important;
    height: 58px !important;
    gap: 6px !important;
  }
  .info-floating-header .nav-actions {
    justify-self: end !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }
}


/* Boutique : navigation horizontale sur ordinateur, hamburger uniquement sur petit écran. */
@media (min-width: 901px) {
  .info-floating-header .desktop-nav {
    display: flex !important;
    min-width: 0 !important;
    font-size: 11px !important;
    gap: clamp(5px, .65vw, 10px) !important;
  }
  .info-floating-header .mobile-menu-shell {
    display: none !important;
  }
  .info-floating-header .nav-actions > #adminBtn:not(.hidden) {
    display: inline-flex !important;
  }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .info-floating-header .wrap.nav {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    grid-template-areas:
      "brand actions"
      "menu menu" !important;
    align-items: center !important;
    height: auto !important;
    min-height: 96px !important;
    padding: 7px 12px 9px !important;
    gap: 3px 10px !important;
  }
  .info-floating-header .wrap.nav > .brand {
    grid-area: brand !important;
  }
  .info-floating-header .wrap.nav > .desktop-nav {
    grid-area: menu !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 2px 10px !important;
    white-space: normal !important;
  }
  .info-floating-header .wrap.nav > .nav-actions {
    grid-area: actions !important;
    justify-self: end !important;
    margin-left: 0 !important;
  }
  body {
    padding-top: 132px !important;
  }
}
@media (max-width: 900px) {
  .info-floating-header .desktop-nav {
    display: none !important;
  }
  .info-floating-header .mobile-menu-shell {
    display: inline-flex !important;
  }
}


/* Correctif final boutique : un ordinateur avec souris ne doit jamais afficher le hamburger public. */
@media (any-hover: hover) and (any-pointer: fine) {
  header.topbar.info-floating-header .nav-actions > .mobile-menu-shell,
  header.topbar.info-floating-header .mobile-menu-shell,
  header.topbar.info-floating-header .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  header.topbar.info-floating-header .desktop-nav {
    display: flex !important;
    visibility: visible !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
  }
}
@media (min-width: 901px) and (any-pointer: fine) {
  header.topbar.info-floating-header .wrap.nav {
    display: flex !important;
  }
}
@media (max-width: 900px) and (any-pointer: fine) {
  header.topbar.info-floating-header .wrap.nav {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    grid-template-areas:
      "brand actions"
      "menu menu" !important;
    align-items: center !important;
    height: auto !important;
    min-height: 104px !important;
    padding: 7px 12px 9px !important;
    gap: 3px 10px !important;
  }
  header.topbar.info-floating-header .wrap.nav > .brand {
    grid-area: brand !important;
  }
  header.topbar.info-floating-header .wrap.nav > .desktop-nav {
    grid-area: menu !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 3px 10px !important;
    font-size: 11px !important;
  }
  header.topbar.info-floating-header .wrap.nav > .nav-actions {
    grid-area: actions !important;
    justify-self: end !important;
    margin-left: 0 !important;
  }
  body {
    padding-top: 136px !important;
  }
}


/* Réglage responsive final de la boutique : hamburger seulement lorsque la fenêtre est réduite. */
@media (min-width: 1241px) {
  header.topbar.info-floating-header .mobile-menu-shell,
  header.topbar.info-floating-header .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  header.topbar.info-floating-header .desktop-nav {
    display: flex !important;
    visibility: visible !important;
    flex: 1 1 auto !important;
  }
  header.topbar.info-floating-header .wrap.nav {
    display: flex !important;
  }
}
@media (max-width: 1240px) {
  header.topbar.info-floating-header .mobile-menu-shell {
    display: inline-flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  header.topbar.info-floating-header .mobile-menu-toggle {
    display: grid !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  header.topbar.info-floating-header .desktop-nav {
    display: none !important;
  }
}






/* SAMA-PACK — BACK-OFFICE : feuille de style de structure unique */
/* Cadre général et barre latérale desktop */
#adminPanel {
  --admin-mobile-header-height: calc(58px + env(safe-area-inset-top));
}
#adminPanel.admin-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200 !important;
  overflow: hidden;
  background: #f4f7f5;
  color: #17261d;
}
#adminPanel.admin-overlay:not(.hidden) {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
#adminPanel .admin-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #f4f7f5;
}
#adminPanel .admin-sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 20px 14px 14px;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.08);
  background: #10251b;
  color: #c9d8ce;
}
#adminPanel .admin-sidebar-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
}
#adminPanel .admin-brand {
  display: flex;
  align-items: center;
  margin: 0 0 5px;
  padding: 0 5px;
  color: #fff;
}
#adminPanel .admin-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 96px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(230,247,236,.2);
  border-radius: 11px;
  background: #1e4932;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
#adminPanel .admin-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 19px;
}
#adminPanel .admin-menu-icon i {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
#adminPanel .admin-sidebar-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
#adminPanel .admin-session-label {
  margin: 0 5px 4px;
  padding: 9px 11px;
  border: 1px solid rgba(122,219,157,.24);
  border-radius: 10px;
  background: rgba(80,178,112,.12);
  color: #c9f5d5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#adminPanel.is-general-admin .admin-session-label {
  border-color: rgba(248,203,105,.32);
  background: rgba(248,203,105,.1);
  color: #ffe8b0;
}
#adminPanel .admin-nav-search {
  display: grid;
  flex: 0 0 auto;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 3px 0 8px;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(229,245,235,.12);
  color: #b7cbbd;
  font-size: 10px;
  font-weight: 800;
}
#adminPanel .admin-nav-search .input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(229,245,235,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 12px;
}
#adminPanel .admin-nav-search .input::placeholder { color: #91aa9a; }
#adminPanel .admin-nav-search .input:focus {
  border-color: #67c68b;
  outline: 2px solid rgba(103,198,139,.15);
}
#adminPanel .admin-nav-group {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 3px;
  width: 100%;
  min-width: 0;
}
#adminPanel .admin-nav-group[hidden],
#adminPanel .admin-nav-group-empty {
  display: none !important;
}
#adminPanel .admin-nav-heading {
  display: block;
  padding: 10px 11px 4px;
  color: #8ecba3;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
}
#adminPanel .side-btn {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #e7f4eb;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
#adminPanel .side-btn > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
#adminPanel .side-btn:hover {
  border-color: rgba(224,246,232,.09);
  background: rgba(255,255,255,.075);
  color: #fff;
}
#adminPanel .side-btn.active {
  border-color: #a7dfb8;
  background: #d8f4e0;
  color: #103c26;
  box-shadow: inset 3px 0 #43ad69;
  font-weight: 850;
}
#adminPanel .admin-nav-hidden { display: none !important; }
#adminPanel .admin-nav-no-results {
  margin: 10px 8px;
  color: #c6d8cc;
  font-size: 12px;
}
#adminPanel .sidebar-foot {
  display: grid;
  flex: 0 0 auto;
  gap: 7px;
  width: 100%;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(229,245,235,.12);
}
#adminPanel .sidebar-foot .btn {
  border-color: rgba(230,247,236,.16);
  color: #effaf2;
  border-radius: 10px;
}
#adminPanel .sidebar-foot .link-btn {
  color: #d5e8dc;
  font-size: 11px;
  border-radius: 10px;
}
#adminPanel .admin-main {
  min-width: 0;
  min-height: 0;
  padding: clamp(16px, 2.2vw, 30px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #f5f8f6;
}
/* Sur l'administrateur général, le rendu des rubriques ne dépend pas des droits secondaires. */
#adminPanel.is-general-admin .admin-nav-group {
  width: 100%;
}
#adminPanel.is-general-admin .admin-nav-heading {
  visibility: visible;
}
/* Navigation compacte pour tablette et téléphone */
@media (max-width: 900px) {
  #adminPanel.admin-overlay { overflow: hidden; }
  #adminPanel .admin-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  #adminPanel .admin-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 90;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    height: var(--admin-mobile-header-height);
    min-height: var(--admin-mobile-header-height);
    max-height: var(--admin-mobile-header-height);
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 3px 12px rgba(5,28,15,.12);
    transition: max-height .18s ease;
  }
  #adminPanel .admin-sidebar.is-open {
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(5,28,15,.32);
  }
  #adminPanel .admin-sidebar-header {
    flex: 0 0 42px;
    min-height: 42px;
    width: 100%;
  }
  #adminPanel .admin-brand {
    display: flex;
    margin: 0;
    padding: 0 4px;
    font-size: 13px;
  }
  #adminPanel .admin-menu-toggle {
    display: inline-flex;
    visibility: visible;
    opacity: 1;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
  }
  #adminPanel .admin-sidebar-content {
    display: none !important;
  }
  #adminPanel .admin-sidebar.is-open .admin-sidebar-content {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    margin-top: 8px;
    padding: 0 0 calc(16px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #adminPanel .admin-sidebar.is-open .admin-session-label,
  #adminPanel .admin-sidebar.is-open .admin-nav-heading {
    display: block;
  }
  #adminPanel .admin-sidebar.is-open .admin-session-label {
    margin: 0 4px 4px;
  }
  #adminPanel .admin-sidebar.is-open .admin-nav-search {
    display: grid;
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 8px;
    padding: 0 4px 10px;
  }
  #adminPanel .admin-sidebar.is-open .admin-nav-search > span { display: block; }
  #adminPanel .admin-sidebar.is-open .admin-nav-search .input {
    width: 100%;
    min-height: 42px;
  }
  #adminPanel .admin-sidebar.is-open .admin-nav-group {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    width: 100%;
  }
  #adminPanel .admin-sidebar.is-open .admin-nav-heading {
    padding: 10px 11px 4px;
  }
  #adminPanel .admin-sidebar.is-open .side-btn {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    min-height: 43px;
    padding: 10px 11px;
    white-space: normal;
    font-size: 13px;
  }
  #adminPanel .admin-sidebar.is-open .side-btn.active {
    box-shadow: inset 3px 0 #61c889;
  }
  #adminPanel .admin-sidebar.is-open .admin-nav-no-results {
    flex: 0 0 auto;
    margin: 10px 8px;
    white-space: normal;
  }
  #adminPanel .admin-sidebar.is-open .sidebar-foot {
    display: grid;
    flex: 0 0 auto;
    gap: 7px;
    width: 100%;
    margin-top: auto;
    padding: 13px 0 0;
    border-top: 1px solid rgba(229,245,235,.12);
    border-left: 0;
  }
  #adminPanel .admin-sidebar.is-open .sidebar-foot .btn,
  #adminPanel .admin-sidebar.is-open .sidebar-foot .link-btn {
    width: 100%;
    min-height: 42px;
    padding: 10px;
    font-size: 12px;
    white-space: normal;
  }
  #adminPanel .admin-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: calc(var(--admin-mobile-header-height) + 12px) 10px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 600px) {
  #adminPanel .admin-shell { min-height: 0; }
  #adminPanel .admin-sidebar { padding-right: 9px; padding-left: 9px; }
  #adminPanel .admin-main { padding-right: 10px; padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #adminPanel .admin-sidebar { transition: none; }
  #adminPanel .side-btn { transition: none; }
}


/* Masquer l'en-tête public de la boutique pendant que la gestion est ouverte. */
body.admin-management-open > .info-floating-header,
body.admin-management-open .info-floating-header {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* BACK-OFFICE — verrouillage du conteneur et des débordements */
#adminPanel.admin-overlay {
  isolation: isolate;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
#adminPanel .admin-shell {
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  overflow: hidden;
  grid-template-columns: minmax(250px, 286px) minmax(0, 1fr);
  align-items: stretch;
}
#adminPanel .admin-sidebar,
#adminPanel .admin-sidebar-content,
#adminPanel .admin-main {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}
#adminPanel .admin-main { width: auto; max-width: none; }
#adminPanel #adminContent {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
#adminPanel #adminContent > * { min-width: 0; max-width: 100%; }
#adminPanel #adminContent .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 900px) {
  #adminPanel .admin-shell { grid-template-columns: minmax(0, 1fr); }
  #adminPanel .admin-main { width: 100%; }
}


/* Prix catalogue : indication discrète du conditionnement vendu. */
.price-unit-label {
  display: inline-block;
  margin-left: .25rem;
  color: #64748b;
  font-size: .72em;
  font-weight: 600;
  vertical-align: baseline;
  white-space: nowrap;
}


/* Prix de référence justifié — affichage public et formulaire d’administration */
.reference-price-admin-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:13px; border:1px dashed #cbd5e1; border-radius:13px; background:#f8fafc; }
.reference-price-admin-heading, .reference-price-admin-fields .small-note, .reference-price-admin-fields .reference-price-note-field { grid-column:1/-1; }
.reference-price-admin-heading { color:var(--ink); font-size:12px; font-weight:900; }
.reference-price-admin-fields label { display:grid; gap:6px; color:var(--muted); font-size:11px; }
@media(max-width:600px) { .reference-price-admin-fields { grid-template-columns:1fr; } .reference-price-admin-heading, .reference-price-admin-fields .small-note, .reference-price-admin-fields .reference-price-note-field { grid-column:1; } }


/* Prix actuel, prix barré et économie — présentation uniforme du catalogue */
.price-display { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; }
.price-display-main { display:flex; align-items:baseline; flex-wrap:wrap; column-gap:10px; row-gap:3px; }
.price-display .current-price { color:var(--green); font-size:22px; font-weight:950; line-height:1.15; white-space:nowrap; }
.reference-price-wrap { display:inline-flex; align-items:baseline; flex-wrap:wrap; gap:5px; }
.reference-price-label { color:var(--muted); font-size:10px; font-weight:700; line-height:1.2; }
.price-display .old-price { color:#94a3b8; font-size:13px; font-weight:650; text-decoration:line-through; text-decoration-thickness:1.5px; text-decoration-color:#94a3b8; white-space:nowrap; }
.price-savings { color:#15803d; font-size:12px; font-weight:750; line-height:1.25; }
.price-savings strong { color:#166534; font-weight:950; }
.price-display .promo-label { display:inline-flex; align-self:flex-start; text-transform:uppercase; letter-spacing:.04em; }
.product-card .price-display { gap:3px; }
.product-card .price-display .current-price { font-size:20px; }
.product-card .price-display .old-price { font-size:12px; }
.product-card .price-display .price-savings { font-size:11px; }
@media(max-width:700px) {
  .product-card .price-display .current-price { font-size:15px; }
  .product-card .price-display .old-price { font-size:10px; }
  .product-card .price-display .reference-price-label { font-size:9px; }
  .product-card .price-display .price-savings { font-size:10px; }
}


/* Partage des produits */
.product-card .pack-visual { position:relative; }
.product-share-button {
  position:absolute; top:10px; right:10px; z-index:5;
  display:grid; place-items:center; width:40px; height:40px;
  padding:0; border:1px solid rgba(22,101,52,.14); border-radius:50%;
  color:#166534; background:rgba(255,255,255,.96);
  box-shadow:0 3px 12px rgba(15,23,42,.14); cursor:pointer;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.product-share-button:hover { transform:translateY(-1px); background:#fff; box-shadow:0 5px 16px rgba(15,23,42,.2); }
.product-share-button svg { width:19px; height:19px; }
.product-detail-share-button { flex:0 0 auto!important; }
.product-share-intro { margin:14px 0; color:#475569; font-weight:700; }
.product-share-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0; }
.product-share-option {
  min-height:76px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px;
  padding:12px 8px; border:1px solid var(--line); border-radius:14px;
  color:#166534; background:#fff; text-decoration:none; font-size:13px; font-weight:800;
}
.product-share-option:hover { background:#f0fdf4; border-color:#86efac; }
.product-share-network-icon { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#dcfce7; color:#166534; font-size:15px; font-weight:900; }
.product-share-copy { display:flex; align-items:center; gap:10px; padding:10px; background:#f8fafc; border:1px solid var(--line); border-radius:12px; }
.product-share-link { min-width:0; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#475569; font-size:11px; }
.product-share-copy .btn { flex:0 0 auto; }
@media(max-width:600px) {
  .product-share-button { width:36px; height:36px; top:8px; right:8px; }
  .product-share-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .product-share-copy { align-items:stretch; flex-direction:column; }
  .product-share-link { width:100%; padding:4px 2px; }
  .product-share-copy .btn { width:100%; }
}


/* Réseaux sociaux configurables — section Suivez-nous */
.footer:has(.social-follow-section) { padding-top: 0; }
.footer .social-follow-section { margin-top: 0; }
.footer .social-follow-link { display: inline-flex; margin-top: 0; color: inherit; font-size: inherit; }
.social-follow-section {
  width: 100%;
  padding: 30px 0 26px;
  background: rgba(255,255,255,.055);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.social-follow-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.social-follow-copy { min-width: 190px; }
.social-follow-copy .eyebrow { margin-bottom: 5px; }
.social-follow-copy h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}
.social-follow-copy p {
  margin: 6px 0 0;
  color: inherit;
  opacity: .78;
  font-size: .92rem;
}
.social-follow-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.social-follow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.social-follow-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.48);
}
.social-follow-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.social-follow-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.social-follow-link.social-instagram .social-follow-icon svg,
.social-follow-link.social-linkedin .social-follow-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-follow-link.social-instagram .social-icon-dot { fill: currentColor; stroke: none; }
.social-follow-label { font-size: .88rem; white-space: nowrap; }
.social-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.social-setting-row {
  display: grid;
  grid-template-columns: minmax(130px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface, #fff);
}
.social-setting-row .check-label { margin: 0; }
.social-setting-url { min-width: 0; }
.social-setting-url .input { margin-top: 5px; width: 100%; }
.settings-social-card {
  padding: 18px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.settings-social-card h3 { margin: 5px 0 6px; }
.settings-social-card > .small-note { margin: 0; }
@media (max-width: 680px) {
  .social-follow-section { padding: 24px 0 20px; }
  .social-follow-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .social-follow-links {
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
  }
  .social-follow-link {
    min-height: 42px;
    padding: 6px 11px 6px 7px;
  }
  .social-follow-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .social-follow-label { font-size: .82rem; }
  .social-settings-grid { grid-template-columns: 1fr; }
  .social-setting-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
