:root {
  /* Palette reprise de la carte de visite brodée (fond lin bleu-gris, fleurs roses/bordeaux,
     marguerites à cœur doré, feuillage vert sauge, texte gris-taupe). */
  --pink:        #f3dfe4;  /* rose poudré clair */
  --pink-deep:   #e3b9c4;  /* rose moyen */
  --mauve:       #b9566a;  /* bordeaux/rose foncé des fleurs (accent principal) */
  --mauve-deep:  #8f3b4d;  /* bordeaux profond */
  --mint:        #d7e3d6;  /* vert sauge clair */
  --mint-deep:   #6f8a6a;  /* vert feuillage */
  --cream:       #eef3f6;  /* lin bleu-gris très clair (fond) */
  --sky:         #dbe6ee;  /* bleu-gris */
  --gold:        #e8b23a;  /* cœur doré des marguerites (accent) */
  --text:        #585049;  /* gris-taupe du titre */
  --text-soft:   #8a827b;
  --white:       #fbfcfd;
  --shadow:      0 4px 16px rgba(88, 80, 73, 0.14);
  --radius:      16px;
  --radius-sm:   10px;
  --font-head:   'Georgia', 'Times New Roman', serif;
  --font-body:   'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(160deg, var(--cream), var(--sky) 55%, var(--mint) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--mauve-deep); font-weight: 600; }

a { color: var(--mauve-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header, .admin-header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-body); font-size: 1.55rem; color: var(--text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand-tagline { font-size: 0.78rem; color: var(--text-soft); }
.main-nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.main-nav a { color: var(--text); font-weight: 500; }
.cart-link { position: relative; }
.cart-count {
  display: inline-block; min-width: 1.4em; padding: 0 .35em;
  background: var(--mauve); color: #fff; border-radius: 999px;
  font-size: .78rem; text-align: center;
}

/* Hero */
.hero {
  text-align: center; padding: 3.5rem 1.5rem; margin: 2rem 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-top: 0; }
.hero p { color: var(--text-soft); font-size: 1.1rem; max-width: 40ch; margin: 1rem auto 1.8rem; }

/* Buttons */
.btn {
  display: inline-block; padding: .65rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--pink-deep); background: var(--white); color: var(--mauve-deep);
  font: inherit; font-weight: 600; cursor: pointer; transition: all .15s ease; text-decoration: none;
}
.btn:hover { background: var(--pink); text-decoration: none; }
.btn-primary { background: var(--mauve); color: #fff; border-color: var(--mauve); }
.btn-primary:hover { background: var(--mauve-deep); }
.btn-small { padding: .35rem .8rem; font-size: .85rem; }
.btn-danger { background: #e9b3c0; border-color: #e9b3c0; color: #7a3a4a; }
.btn-danger:hover { background: #e39aab; }
.btn-add { margin-top: .5rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 2rem; }
.chip {
  padding: .4rem 1rem; border-radius: 999px; background: var(--white);
  box-shadow: var(--shadow); color: var(--text); font-size: .9rem;
}
.chip:hover, .chip-active { background: var(--mauve); color: #fff; text-decoration: none; }

/* Product grid */
.product-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: 1.5rem 0 3rem;
}
.product-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem; display: flex; flex-direction: column; text-align: center;
}
.product-card-link { color: inherit; }
.product-card-link:hover { text-decoration: none; }
.product-thumb, .product-detail-media {
  background-size: cover; background-position: center; background-color: var(--pink);
  border-radius: var(--radius-sm);
}
.product-thumb { aspect-ratio: 1 / 1; margin-bottom: .8rem; }
.product-name { font-size: 1.05rem; margin: .3rem 0; }
.product-cat {
  display: inline-block; font-size: .75rem; color: var(--mauve-deep);
  background: var(--mint); padding: .15rem .6rem; border-radius: 999px; margin-bottom: .4rem;
}
.product-price { font-weight: 700; color: var(--text); margin: .4rem 0; }
.product-price-lg { font-size: 1.6rem; font-weight: 700; color: var(--mauve-deep); }
.product-oos { color: #b06; font-size: .9rem; font-weight: 600; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; align-items: start; }
.product-detail-media { aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.product-detail-info { background: var(--white); padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-desc { margin: 1rem 0; color: var(--text-soft); }
.stock-info { font-size: .9rem; color: var(--mint-deep); }

/* Cart & checkout tables */
.cart-table, .admin-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 1rem 0;
}
.cart-table th, .cart-table td, .admin-table th, .admin-table td {
  padding: .8rem; text-align: left; border-bottom: 1px solid var(--pink);
}
.cart-table th, .admin-table th { background: var(--pink); color: var(--mauve-deep); }
.cart-item-thumb, .admin-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; vertical-align: middle; margin-right: .5rem; }
.qty-input { width: 64px; padding: .3rem; border: 1px solid var(--pink-deep); border-radius: 8px; }
.btn-remove { background: none; border: none; color: #b06; cursor: pointer; font: inherit; text-decoration: underline; }
.cart-summary { text-align: right; margin-top: 1rem; }
.cart-total { font-size: 1.2rem; }

.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.checkout-summary-box, .checkout-payment { background: var(--white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.checkout-list { list-style: none; padding: 0; margin: 0; }
.checkout-list li { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed var(--pink); }
.bank-details { background: var(--mint); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.bank-details dt { font-weight: 700; color: var(--mauve-deep); }
.bank-details dd { margin: 0 0 .6rem; }
.notice, .hint { font-size: .88rem; color: var(--text-soft); }

/* Forms */
.form-card { background: var(--white); padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 640px; }
.form-card label { display: block; margin-bottom: 1rem; font-weight: 600; color: var(--mauve-deep); }
.form-card input, .form-card textarea, .form-card select {
  display: block; width: 100%; margin-top: .3rem; padding: .6rem .8rem;
  border: 1px solid var(--pink-deep); border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: var(--cream);
}
.form-card .checkbox { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.form-card .checkbox input { width: auto; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .8rem; margin-top: 1rem; }
fieldset { border: 1px solid var(--pink-deep); border-radius: var(--radius-sm); margin: 1rem 0; padding: 1rem; }
legend { color: var(--mauve-deep); font-weight: 700; padding: 0 .5rem; }

/* Flash */
.flash { padding: .8rem 1.2rem; border-radius: var(--radius-sm); margin: 1rem 0; }
.flash-success { background: var(--mint); color: #2f6b52; }
.flash-error { background: #f8d7dd; color: #a23048; }

/* Footer */
.site-footer, .admin-footer { text-align: center; padding: 2rem 0; color: var(--text-soft); font-size: .9rem; margin-top: 2rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; margin-bottom: .4rem; }
.footer-contact a { color: var(--mauve-deep); font-weight: 600; }

.empty { text-align: center; color: var(--text-soft); padding: 2rem; }

@media (max-width: 720px) {
  .product-detail, .checkout-grid, .form-row { grid-template-columns: 1fr; }
}
