/* ===== Reset ===== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button,input,textarea{ font:inherit; }

:root{
  /* Palette brun / orange / blanc */
  --bg: #ffffff;
  --soft: #fbf7f2;        /* blanc cassé */
  --panel: #fffaf4;       /* panneau clair */
  --text: #3a2a22;        /* brun foncé */
  --muted: #6b5548;       /* brun clair */
  --line: #eadfd6;        /* bordures */
  --brand: #e57a2f;       /* orange */
  --brandH: #cc6420;      /* orange hover */
  --btn: #3a2a22;         /* bouton brun */
  --btnH: #2c201a;        /* bouton brun hover */

  --radius: 18px;
  --shadow: 0 10px 24px rgba(30, 18, 10, .08);
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.container{ width:min(1120px, 92%); margin:0 auto; }

/* ===== Topbar ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  letter-spacing: .2px;
}
.brand .mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #ffb46d);
  display:grid;
  place-items:center;
  color:#fff;
  font-size: 14px;
}

.nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}
.nav a{
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a:hover{
  background: var(--soft);
  color: var(--text);
}
.nav a.is-active{
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
}

.pill strong{ color: var(--text); }

/* ===== Hero ===== */
.hero{
  padding: 64px 0 24px;
}

.hero-box{
  background: radial-gradient(900px 220px at 20% 20%, rgba(229,122,47,.18), transparent 60%),
              radial-gradient(900px 220px at 80% 40%, rgba(255,180,109,.22), transparent 60%),
              var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.kicker{
  margin:0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

h1{
  margin:0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.lead{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
}

/* ===== Sections ===== */
.section{ padding: 34px 0; }
.section h2{
  margin:0 0 8px;
  font-size: clamp(20px, 2.3vw, 28px);
}
.section p{ margin:0; color: var(--muted); }

/* ===== Buttons ===== */
.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  background: #fff;
  border-color: #decfc4;
}

.btn.primary{
  background: var(--btn);
  border-color: transparent;
  color: #fff;
}
.btn.primary:hover{ background: var(--btnH); }

.btn.accent{
  background: var(--brand);
  border-color: transparent;
  color: #fff;
}
.btn.accent:hover{ background: var(--brandH); }

/* ===== Grid / Cards ===== */
.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 10px 20px rgba(30,18,10,.05);
  min-height: 150px;
}

.thumb{
  border-radius: 14px;
  background: linear-gradient(135deg, #f5ede4, #fff);
  border: 1px dashed #eadfd6;
  height: 140px;
  display:grid;
  place-items:center;
  color: var(--muted);
  margin-bottom: 12px;
}

.card h3{ margin: 0 0 6px; font-size: 16px; }
.card .price{ margin:0; color: var(--text); font-weight: 800; }
.card .meta{ margin:6px 0 0; color: var(--muted); font-size: 14px; }

/* ===== Layout product page ===== */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}

.panel{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.breadcrumb{
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.qty{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 10px;
}
.qty input{
  width: 90px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* ===== Form ===== */
form{ display:grid; gap: 12px; margin-top: 14px; }
label{ display:grid; gap: 6px; color: var(--muted); font-size: 14px; }
input, textarea{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}
.hint{ margin: 0; color: var(--muted); }

/* ===== Table (Panier) ===== */
.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.table th, .table td{
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th{
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}
.table tr:last-child td{ border-bottom: none; }

.total{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

/* ===== Footer ===== */
footer{
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .grid-4{ grid-template-columns: 1fr; }
  .hero-box{ padding: 26px; }
}
