/* ======================================================================
   JusteFeu inc — design system « feu nocturne » (palette du logo : #e04020)
   ====================================================================== */
:root {
  --bg: #0c0806;
  --bg-2: #150d09;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f5efec;
  --muted: #a89c94;
  --green: #f75534;          /* accent principal = rouge feu du logo (#e04020 éclairci) */
  --green-deep: #7a1d0e;
  --gold: #ffb25c;
  --danger: #ff6b6b;
  --radius: 18px;
  --font-display: "Marcellus", serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(247, 85, 52, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 178, 92, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; line-height: 1.5; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- nav */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 20px; }
.nav {
  max-width: 1200px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 26px;
  border-radius: 999px;
}
.glass {
  background: rgba(16, 10, 8, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.brand { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.12em; display: inline-flex; align-items: center; gap: 10px; }
.brand b { color: var(--green); font-weight: 400; }
.brand-logo { height: 34px; width: auto; filter: drop-shadow(0 2px 10px rgba(224, 64, 32, 0.5)); }
.footer-logo { height: 96px; width: auto; margin-bottom: 14px; display: block; }
.hero-logo { height: 110px; width: auto; margin: 0 auto 20px; display: block; filter: drop-shadow(0 8px 30px rgba(224, 64, 32, 0.55)); animation: floaty 5s ease-in-out infinite; }
.nav-links { display: flex; gap: 20px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-admin { color: var(--gold) !important; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.cart-btn { position: relative; font-size: 1.15rem; margin-right: 6px; }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--green); color: #1c0803; font-size: 0.68rem; font-weight: 700;
  border-radius: 999px; padding: 1px 6px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), #d13a1a);
  color: #1c0803;
  box-shadow: 0 6px 24px rgba(247, 85, 52, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(247, 85, 52, 0.5); }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--text); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e07b2e); color: #2a1203; }
.btn-danger { background: transparent; border-color: rgba(255, 107, 107, 0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 107, 107, 0.12); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------------------------------------------------------------- flashes */
.flashes { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(560px, 92vw); }
.flash {
  padding: 12px 18px; margin-bottom: 8px; border-radius: 12px; font-size: 0.92rem;
  background: rgba(18, 11, 8, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(12px); animation: flashIn 0.35s ease;
}
.flash-success { border-color: rgba(247, 85, 52, 0.5); color: #ffd9c4; }
.flash-error { border-color: rgba(255, 107, 107, 0.5); color: #ffc9c9; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-12px); } }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 2; padding: 120px 24px 60px; max-width: 860px; }
.hero-eyebrow {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 178, 92, 0.35); color: var(--gold);
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  background: rgba(255, 178, 92, 0.06); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1.08; margin-bottom: 22px;
  background: linear-gradient(120deg, #fff8f4 20%, var(--green) 50%, var(--gold) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 1.4rem; animation: bob 2.2s ease-in-out infinite; z-index: 2; }
@keyframes bob { 50% { transform: translate(-50%, 10px); } }

/* ---------------------------------------------------------------- sections */
.section { max-width: 1200px; margin: 0 auto; padding: 90px 24px; position: relative; z-index: 2; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.eyebrow { color: var(--green); font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 10px; display: block; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* stats band */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.stat-card {
  padding: 28px 22px; border-radius: var(--radius); text-align: center;
  background: var(--panel); border: 1px solid var(--line);
}
.stat-card .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--green); }
.stat-card .lbl { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------------------------------------------------------------- product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.card3d { perspective: 900px; }
.pcard {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.3s ease, border-color 0.3s;
  transform-style: preserve-3d; will-change: transform; display: block;
}
.pcard:hover { border-color: rgba(247, 85, 52, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(247, 85, 52, 0.12); }
.pvisual {
  position: relative; height: 210px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(140px 140px at 50% 45%, hsl(var(--hue, 140) 70% 45% / 0.55), transparent 70%),
    radial-gradient(260px 200px at 80% 110%, hsl(var(--hue, 140) 80% 30% / 0.35), transparent 70%),
    linear-gradient(160deg, #171009, #0d0907);
  transform: translateZ(30px);
}
.pvisual .leaf { font-size: 4.6rem; filter: drop-shadow(0 12px 24px hsl(var(--hue, 140) 80% 40% / 0.55)); transition: transform 0.4s ease; }
.pcard:hover .leaf { transform: scale(1.12) rotate(-6deg); }
.pbadges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.badge-green { color: var(--green); border-color: rgba(247, 85, 52, 0.4); }
.badge-gold { color: var(--gold); border-color: rgba(255, 178, 92, 0.4); }
.pbody { padding: 20px 20px 22px; }
.pbody h3 { font-size: 1.25rem; margin-bottom: 4px; }
.pmeta { color: var(--muted); font-size: 0.82rem; margin-bottom: 12px; }
.pfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); }
.price small { font-size: 0.75rem; color: var(--muted); font-family: var(--font-body); }
.thc-pills { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.pill { font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; background: var(--panel-strong); border: 1px solid var(--line); color: var(--muted); }

/* filter chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.chip {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem; transition: all 0.2s;
}
.chip:hover, .chip.active { border-color: var(--green); color: var(--green); background: rgba(247, 85, 52, 0.08); }

/* ---------------------------------------------------------------- product detail */
.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pd-visual {
  border-radius: 24px; height: 460px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(220px 220px at 50% 42%, hsl(var(--hue, 140) 70% 45% / 0.55), transparent 72%),
    radial-gradient(400px 300px at 85% 115%, hsl(var(--hue, 140) 80% 30% / 0.35), transparent 70%),
    linear-gradient(160deg, #191009, #0d0806);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.pd-visual .leaf { font-size: 9rem; filter: drop-shadow(0 24px 48px hsl(var(--hue, 140) 80% 40% / 0.6)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-16px) rotate(3deg); } }
.pd-info h1 { font-size: 2.6rem; margin-bottom: 8px; }
.pd-info .price { font-size: 2rem; margin: 18px 0; display: block; }
.pd-desc { color: var(--muted); line-height: 1.8; margin: 18px 0 26px; }
.qty-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.qty-input {
  width: 84px; padding: 11px 14px; border-radius: 12px; background: var(--panel);
  border: 1px solid var(--line); color: var(--text); font-size: 1rem; text-align: center;
}
.equiv-note { color: var(--muted); font-size: 0.82rem; }

/* ---------------------------------------------------------------- forms */
.auth-wrap { max-width: 480px; margin: 0 auto; padding: 150px 24px 90px; position: relative; z-index: 2; }
.form-wrap { max-width: 760px; margin: 0 auto; padding: 150px 24px 90px; position: relative; z-index: 2; }
.form-card { padding: 36px; border-radius: 22px; }
.form-card h1 { font-size: 2rem; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 26px; line-height: 1.6; }
fieldset { border: none; margin-bottom: 28px; }
legend {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--green);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); width: 100%;
}
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frow3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.fgroup { margin-bottom: 14px; }
.fgroup label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.fgroup input, .fgroup select, .fgroup textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--text); font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fgroup input:focus, .fgroup select:focus, .fgroup textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(247, 85, 52, 0.15);
}
.fgroup select option { background: #171009; }
.fcheck { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 14px 0; }
.fcheck input { width: auto; margin-top: 3px; }
.info-box {
  padding: 14px 18px; border-radius: 14px; font-size: 0.84rem; line-height: 1.6;
  background: rgba(247, 85, 52, 0.06); border: 1px solid rgba(247, 85, 52, 0.25);
  color: #eecdb2; margin-bottom: 22px;
}
.info-box.gold { background: rgba(255, 178, 92, 0.06); border-color: rgba(255, 178, 92, 0.3); color: #ffdcb0; }

/* ---------------------------------------------------------------- dashboard */
.dash-wrap { max-width: 1200px; margin: 0 auto; padding: 140px 24px 80px; position: relative; z-index: 2; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 34px; flex-wrap: wrap; gap: 16px; }
.dash-head h1 { font-size: 2.3rem; }
.status-chip { padding: 6px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; border: 1px solid; }
.st-pending { color: var(--gold); border-color: rgba(255, 178, 92, 0.45); background: rgba(255, 178, 92, 0.08); }
.st-verified { color: var(--green); border-color: rgba(247, 85, 52, 0.45); background: rgba(247, 85, 52, 0.08); }
.st-rejected, .st-annulee { color: var(--danger); border-color: rgba(255, 107, 107, 0.45); background: rgba(255, 107, 107, 0.08); }
.st-preparation { color: var(--gold); border-color: rgba(255, 178, 92, 0.45); }
.st-expediee { color: #7ec8ff; border-color: rgba(126, 200, 255, 0.45); }
.st-livree { color: var(--green); border-color: rgba(247, 85, 52, 0.45); }

.dash-grid { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { margin-bottom: 16px; font-size: 1.2rem; }

/* jauge de limite */
.gauge { position: relative; width: 210px; margin: 10px auto 6px; }
.gauge svg { display: block; width: 100%; }
.gauge .g-track { stroke: rgba(255, 255, 255, 0.08); }
.gauge .g-fill { stroke: url(#gaugeGrad); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge-center .val { font-family: var(--font-display); font-size: 1.9rem; color: var(--green); }
.gauge-center .cap { color: var(--muted); font-size: 0.75rem; }
.limit-rows { margin-top: 16px; font-size: 0.88rem; }
.limit-rows div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.limit-rows div b { color: var(--text); font-weight: 600; }

/* tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.025); }

/* ---------------------------------------------------------------- admin */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; max-width: 1300px; margin: 0 auto; padding: 130px 24px 80px; position: relative; z-index: 2; }
.admin-side { position: sticky; top: 110px; align-self: start; }
.admin-side a {
  display: block; padding: 12px 18px; border-radius: 12px; color: var(--muted);
  font-size: 0.94rem; margin-bottom: 4px; transition: all 0.2s;
}
.admin-side a:hover { color: var(--text); background: var(--panel); }
.admin-side a.active { color: var(--green); background: rgba(247, 85, 52, 0.08); border: 1px solid rgba(247, 85, 52, 0.25); }
.admin-main h1 { font-size: 2rem; margin-bottom: 26px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 30px; }
.kpi { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.kpi .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--green); }
.kpi.gold .num { color: var(--gold); }
.kpi .lbl { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.mini-select { padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--text); font-size: 0.82rem; }
.mini-select option { background: #171009; }
.hue-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }

/* ---------------------------------------------------------------- cart */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: radial-gradient(40px 40px at 50% 45%, hsl(var(--hue,140) 70% 45% / 0.55), transparent 70%), #171009; border: 1px solid var(--line); }
.cart-summary { margin-top: 26px; text-align: right; }
.cart-summary .big { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); margin-top: 80px; position: relative; z-index: 2; background: rgba(5, 8, 6, 0.6); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 54px 24px 30px; display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 40px; }
.footer h4 { font-family: var(--font-display); margin-bottom: 12px; color: var(--gold); font-weight: 400; }
.footer a { color: var(--muted); font-size: 0.9rem; line-height: 2; }
.footer a:hover { color: var(--green); }
.footer-brand { font-size: 1.15rem; margin-bottom: 10px; }
.footer-bottom { text-align: center; padding: 18px; border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .pd-wrap, .dash-grid, .footer-inner { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .frow, .frow3 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 48px 1fr auto; }
  .cart-line .hide-sm { display: none; }
}

/* ======================================================================
   Couche « polish » — lueurs, brillances, micro-animations
   ====================================================================== */
::selection { background: rgba(224, 64, 32, 0.55); color: #fff; }
input[type="range"], input[type="checkbox"] { accent-color: var(--green); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0c0806; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7a1d0e, #3a1008); border-radius: 8px;
  border: 2px solid #0c0806;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--green), #7a1d0e); }

/* fond vivant : nappes de braise dérivant lentement (transform only = léger) */
.bg-embers { position: fixed; inset: -20%; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-embers i {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 64, 32, 0.14), transparent 65%);
}
.bg-embers i:nth-child(1) { width: 60vw; height: 60vw; top: -12%; right: -10%; animation: drift1 26s ease-in-out infinite alternate; }
.bg-embers i:nth-child(2) {
  width: 46vw; height: 46vw; bottom: -8%; left: -12%;
  background: radial-gradient(circle, rgba(255, 178, 92, 0.10), transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.bg-embers i:nth-child(3) {
  width: 30vw; height: 30vw; top: 42%; left: 38%;
  background: radial-gradient(circle, rgba(224, 64, 32, 0.07), transparent 65%);
  animation: drift1 40s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate(-6vw, 5vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(7vw, -6vh) scale(0.9); } }
main, .footer { position: relative; z-index: 2; }

/* typographie d''accent */
.hero p.lead, .section-head p, .form-card .sub {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 1.28rem; letter-spacing: 0.01em;
}
.hero h1 {
  background-size: 220% 220%;
  animation: shimmer 7s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
.section-head h2 { position: relative; display: inline-block; padding-bottom: 16px; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 74px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--green) 30%, var(--gold) 70%, transparent);
  box-shadow: 0 0 14px rgba(224, 64, 32, 0.7);
}

/* halo derrière le contenu du hero */
.hero-content::before {
  content: ""; position: absolute; inset: -8% -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(12, 8, 6, 0.82), rgba(12, 8, 6, 0.35) 60%, transparent);
  border-radius: 50%;
}
.hero-eyebrow { animation: eyebrowGlow 3.6s ease-in-out infinite alternate; }
@keyframes eyebrowGlow {
  from { box-shadow: 0 0 0 rgba(255, 178, 92, 0); }
  to { box-shadow: 0 0 22px rgba(255, 178, 92, 0.25); }
}

/* boutons : balayage lumineux + presse */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(0.97); }
.btn-primary::after, .pcard::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg); transition: left 0.55s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.pcard:hover::after { left: 140%; }
.btn-primary { animation: btnPulse 3.2s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(247, 85, 52, 0.35); }
  50% { box-shadow: 0 6px 32px rgba(247, 85, 52, 0.55); }
}

/* cartes produits : anneau conique en rotation derrière le visuel (au survol) */
.pvisual::before {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 40%,
    hsl(var(--hue, 20) 85% 60% / 0.5) 50%, transparent 60% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent 74%, #000 76%);
          mask: radial-gradient(farthest-side, transparent 74%, #000 76%);
  opacity: 0; transition: opacity 0.4s;
}
.pcard:hover .pvisual::before { opacity: 1; animation: spin 3.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pvisual .leaf { position: relative; z-index: 1; }
.pbody h3 { transition: color 0.25s; }
.pcard:hover .pbody h3 { color: var(--gold); }

/* apparition en cascade des grilles */
.grid .card3d:nth-child(2) { transition-delay: 0.08s; }
.grid .card3d:nth-child(3) { transition-delay: 0.16s; }
.grid .card3d:nth-child(4) { transition-delay: 0.24s; }
.grid .card3d:nth-child(5) { transition-delay: 0.32s; }
.grid .card3d:nth-child(6) { transition-delay: 0.40s; }
.stats-band .stat-card:nth-child(2) { transition-delay: 0.1s; }
.stats-band .stat-card:nth-child(3) { transition-delay: 0.2s; }
.stats-band .stat-card:nth-child(4) { transition-delay: 0.3s; }

/* cartes stats : chiffres en dégradé + lift au survol */
.stat-card { transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover {
  transform: translateY(-6px); border-color: rgba(247, 85, 52, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 30px rgba(224, 64, 32, 0.10);
}
.stat-card .num, .kpi .num {
  background: linear-gradient(120deg, var(--green), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ticker de cultivars */
.marquee {
  overflow: hidden; white-space: nowrap; position: relative; z-index: 2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(224, 64, 32, 0.045); padding: 16px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
}
.marquee-track { display: inline-block; animation: marquee 30s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted); margin: 0 28px;
}
.marquee span b { color: var(--green); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* nav : s''intensifie au défilement */
.nav { transition: box-shadow 0.35s ease, background 0.35s ease; }
body.scrolled .nav {
  background: rgba(16, 10, 8, 0.88);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(247, 85, 52, 0.15) inset;
}
.cart-badge { animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes badgePop { from { transform: scale(0.3); } }

/* panneaux, jauge, footer */
.panel { transition: border-color 0.3s; }
.panel:hover { border-color: rgba(255, 255, 255, 0.16); }
.gauge svg { filter: drop-shadow(0 0 12px rgba(224, 64, 32, 0.35)); }
.footer { border-top: none; }
.footer::before {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 85, 52, 0.5), rgba(255, 178, 92, 0.5), transparent);
}
.footer-logo { filter: drop-shadow(0 4px 18px rgba(224, 64, 32, 0.35)); }

/* détail produit : halo pulsant */
.pd-visual::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--hue, 20) 85% 55% / 0.22), transparent 70%);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.18); opacity: 0.7; } }
.pd-visual .leaf { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .bg-embers i, .hero h1, .btn-primary, .marquee-track, .hero-eyebrow,
  .pd-visual::after, .hero-scroll, .pd-visual .leaf { animation: none !important; }
}

/* ======================================================================
   Couche « photos 3D » — hero en couches, vitrine 3D, bande parallaxe
   ====================================================================== */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo {
  position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover;
  animation: kenburns 34s ease-in-out infinite alternate;
  will-change: transform; filter: saturate(1.15) contrast(1.05);
}
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.12) translateY(-2%); } }
.hero-smoke {
  position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover;
  mix-blend-mode: screen; opacity: 0.28; will-change: transform;
  animation: smokeDrift 26s ease-in-out infinite alternate;
}
@keyframes smokeDrift { from { transform: translateX(-2%) scale(1.05); } to { transform: translateX(2%) scale(1.14); } }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(12, 8, 6, 0.55) 78%, rgba(12, 8, 6, 0.9)),
    linear-gradient(180deg, rgba(12, 8, 6, 0.55), transparent 30% 62%, var(--bg) 96%);
}
#hero-canvas { z-index: 1; }
.hero-content::before { background: radial-gradient(closest-side, rgba(12, 8, 6, 0.72), rgba(12, 8, 6, 0.28) 60%, transparent); }

/* vitrine 3D des installations */
.showcase {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  perspective: 1400px;
}
.show-card {
  position: relative; height: 360px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); margin: 0;
  transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(3deg);
  transition: transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.55s, border-color 0.4s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.show-card:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg) translateY(-8px) scale(1.02);
  border-color: rgba(247, 85, 52, 0.45);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 44px rgba(224, 64, 32, 0.16);
  z-index: 2;
}
.show-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06); transition: transform 0.6s ease; filter: saturate(1.05);
}
.show-card:hover img { transform: scale(1.14); }
.show-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 4, 0.88) 62%);
  display: flex; flex-direction: column; gap: 2px;
}
.show-card figcaption b { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; letter-spacing: 0.04em; }
.show-card figcaption span { color: var(--muted); font-size: 0.82rem; }
.show-card-center { height: 400px; margin-top: -20px; }

/* bande parallaxe pleine largeur */
.parallax-band {
  position: relative; min-height: 44vh; display: flex; align-items: center; justify-content: center;
  background: url("../img/site/hero_plant.jpg") center 30% / cover fixed no-repeat;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.parallax-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg), rgba(12, 8, 6, 0.35) 30% 70%, var(--bg));
}
.parallax-quote { position: relative; text-align: center; padding: 70px 24px; }
.parallax-quote img { height: 74px; margin-bottom: 18px; filter: drop-shadow(0 6px 24px rgba(224, 64, 32, 0.6)); }
.parallax-quote p {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

/* cartes produits avec photo : profondeur réelle dans le tilt */
.pvisual.has-photo { background: #0d0806; }
.pvisual.has-photo .pphoto {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translateZ(34px) scale(1.12); filter: saturate(1.08);
  transition: transform 0.4s ease;
}
.pcard:hover .pvisual.has-photo .pphoto { transform: translateZ(48px) scale(1.18); }
.pvisual.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 4, 0.15), transparent 40%, rgba(10, 6, 4, 0.35));
  transform: translateZ(35px);
}
.pvisual.has-photo::before { display: none; }
.pbadges { transform: translateZ(60px); z-index: 3; }

/* fiche produit avec photo */
.pd-visual.has-photo { background: #0d0806; }
.pd-visual.has-photo .pd-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08);
}
.pd-visual.has-photo::after { mix-blend-mode: screen; opacity: 0.5; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .show-card { --ry: 0deg; height: 240px; }
  .show-card-center { margin-top: 0; height: 280px; }
  .parallax-band { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-smoke { animation: none !important; }
}

/* ======================================================================
   Porte d'âge, sélecteur de langue, recherche admin, téléversements
   ====================================================================== */
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 5, 4, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body:has(.age-gate) { overflow: hidden; }
.age-card {
  max-width: 480px; width: 100%; text-align: center;
  padding: 44px 38px; border-radius: 26px;
  animation: ageIn 0.5s cubic-bezier(0.22, 0.9, 0.3, 1);
}
@keyframes ageIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.age-card img { height: 130px; margin-bottom: 18px; filter: drop-shadow(0 8px 30px rgba(224, 64, 32, 0.55)); }
.age-card h1 { font-size: 1.7rem; margin-bottom: 12px; }
.age-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 8px; }
.age-card .age-alt { font-size: 0.82rem; opacity: 0.75; margin-bottom: 22px; }
.age-card form { margin-bottom: 10px; }
.age-card .btn { width: 100%; padding: 13px; }
.age-langs { margin-top: 18px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em; }
.age-langs a { padding: 4px 8px; }
.age-langs a.active { color: var(--green); font-weight: 700; }

.lang-toggle {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--green); color: var(--green); }

/* barre de recherche admin */
.admin-search {
  display: flex; gap: 8px; margin-bottom: 18px; max-width: 420px;
}
.admin-search input {
  flex: 1; padding: 11px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--text); font-size: 0.9rem;
}
.admin-search input:focus { outline: none; border-color: var(--green); }

/* téléversement de fichiers */
input[type="file"] {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px dashed var(--line);
  color: var(--muted); font-size: 0.88rem; cursor: pointer;
}
input[type="file"]::file-selector-button {
  background: rgba(247, 85, 52, 0.15); color: var(--green);
  border: 1px solid rgba(247, 85, 52, 0.4); border-radius: 999px;
  padding: 6px 16px; margin-right: 12px; cursor: pointer; font-weight: 600;
}
.doc-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem;
  background: rgba(247, 85, 52, 0.08); border: 1px solid rgba(247, 85, 52, 0.3);
  color: var(--text);
}
.doc-chip a { color: var(--green); font-weight: 600; }

/* ======================================================================
   Timbres d'accise — indicateur de disponibilité provinciale
   ====================================================================== */
.prov-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 12px;
  border: 1px solid;
}
.prov-ok {
  color: #7ee2a8; border-color: rgba(126, 226, 168, 0.4);
  background: rgba(126, 226, 168, 0.08);
}
.prov-no {
  color: var(--danger); border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.08);
}
.prov-neutral {
  color: var(--muted); border-color: var(--line);
  background: var(--panel);
}

/* grille de cases à cocher des provinces (admin) */
.prov-checks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.prov-check {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 6px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; transition: border-color 0.2s;
  user-select: none;
}
.prov-check:hover { border-color: rgba(247, 85, 52, 0.4); }
.prov-check:has(input:checked) {
  border-color: rgba(247, 85, 52, 0.55); color: var(--green);
  background: rgba(247, 85, 52, 0.08);
}

/* ======================================================================
   Couche telephone — 2026-08-20
   Defauts mesures sur un ecran de 390 px :
     1. sous 900 px, .nav-links passait en display:none SANS remplacement :
        Accueil / Produits / Contact devenaient injoignables.
     2. la barre portait six elements et rognait « Connexion ».
     3. les champs etaient a 0,95rem (15,2 px) : iOS zoome sous 16 px, donc
        20 zooms intempestifs sur le formulaire d inscription.
     4. cibles tactiles de 19 a 25 px, la ou Apple demande 44 px.
   La barre ne se transforme pas en panneau flottant : elle s agrandit en
   hauteur (flex-wrap). Rien ne bouge dans le HTML, le bureau est intact.
   ====================================================================== */

.nav-burger { display: none; }

@media (max-width: 900px) {
  /* 26px d ecart entre elements est un reglage de bureau : sur 390px il
     coute 52px et fait passer le hamburger a la ligne. */
  .nav { flex-wrap: wrap; row-gap: 6px; column-gap: 10px; }

  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 auto;
    background: transparent; border: 1px solid var(--line); border-radius: 12px;
    color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
  }
  .nav-burger:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

  /* au repos : marque, langue, panier, hamburger — et rien d autre */
  .nav-actions .btn { display: none; }
  .nav-actions { gap: 6px; }

  /* deplie : les liens et les boutons prennent chacun leur ligne */
  .nav.ouvert .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1 0 100%; order: 10;
    padding-top: 8px; border-top: 1px solid var(--line);
  }
  .nav.ouvert .nav-links a {
    display: flex; align-items: center; min-height: 44px;
    padding: 0 10px; border-radius: 10px;
  }
  .nav.ouvert .nav-links a:hover { background: rgba(255, 255, 255, 0.06); }
  .nav.ouvert .nav-actions .btn {
    display: inline-flex; flex: 1 0 auto; justify-content: center;
  }
  .nav.ouvert .nav-actions {
    flex: 1 0 100%; order: 11; flex-wrap: wrap;
  }

  /* 16 px pile : en dessous, iOS zoome a chaque tap */
  .fgroup input, .fgroup select, .fgroup textarea,
  .admin-search input, .qty-input, .mini-select { font-size: 16px; }
  .fgroup input, .fgroup select, .fgroup textarea { min-height: 44px; }

  /* on grandit la zone tactile, pas le texte */
  .lang-toggle, .cart-btn {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .btn { min-height: 44px; align-items: center; justify-content: center; }
  .fcheck { min-height: 44px; align-items: center; }
  .fcheck input { width: 22px; height: 22px; margin-top: 0; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.8rem); line-height: 1.12; }
  .hero p, .sub { font-size: 0.98rem; }
  .form-card, .glass { padding: 18px 14px; }
  .form-wrap { padding: 0 10px; }
  .brand { font-size: 1rem; }
  .brand-logo { width: 26px; height: 26px; }
}
