/* Charte reprise de les7lotus.be — voir docs/spec.md, section « Charte graphique » */
:root {
  --frame: #d396bf;
  --accent: #7a3d8f;
  --accent-dark: #5b2a6b;
  --nav-text: #2e1a33;
  --text: #585656;
  --title: #3a3838;
  --muted: #6b6969;
  --soft: #f7eef4;
  --visual-bg: #faf5f8;
  --line: #ece4e9;
  --ok: #2f6b3a;
  --low: #a1451f;
  --footer: #262525;
  --footer-link: #f0d3e6;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-title: "Marcellus", Georgia, serif;
  --font-script: "Amarante", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--text); font-size: 17px; line-height: 1.6; background: var(--frame); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; color: var(--title); line-height: 1.2; }

.frame { min-height: 100vh; padding: 0 20px; }
.site { max-width: 1180px; margin: 0 auto; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 48px 20px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.brand img { width: 170px; height: auto; display: block; }
.brand-tagline { font-family: var(--font-script); font-size: 30px; color: var(--accent); line-height: 1.2; }
.back-link { font-size: 15px; font-weight: 600; text-decoration: none; }

/* Nav */
.main-nav { margin: 0 48px; background: var(--frame); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; }
.main-nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav-links a { padding: 10px 14px; color: var(--nav-text); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.main-nav-links a:hover, .main-nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.35); font-weight: 800; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; min-height: 44px; background: var(--accent); color: #fff; border-radius: 50px; font-weight: 700; font-size: 14px; text-decoration: none; }
.cart-button:hover { background: var(--accent-dark); color: #fff; }

/* Hero */
.hero { padding: 48px 48px 8px; text-align: center; }
.hero h1 { margin: 0; font-size: 42px; }
.hero p { margin: 14px auto 0; max-width: 680px; }

/* Grid */
.products { padding: 32px 48px 48px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.product-card { background: #fff; box-shadow: 0 2px 14px rgba(58, 30, 62, 0.12); display: flex; flex-direction: column; }
.product-card-visual { display: block; background: var(--visual-bg); aspect-ratio: 1 / 1; }
.product-card-visual .bracelet { width: 100%; height: 100%; display: block; }
.product-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; text-align: center; }
.product-card-body h2 { margin: 0; font-size: 23px; line-height: 1.25; }
.product-card-body h2 a { color: inherit; text-decoration: none; }
.product-card-body h2 a:hover { color: var(--accent); }
.product-card-action { margin-top: auto; padding-top: 10px; }
.variant { font-size: 14px; color: var(--muted); }
.price { font-size: 22px; font-weight: 800; color: var(--title); }
.price--large { font-size: 30px; }
.stock { font-size: 13px; font-weight: 700; }
.stock--ok { color: var(--ok); }
.stock--low { color: var(--low); }
.stock--out { color: var(--muted); }
.empty { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 20px; border: 0; border-radius: 50px; background: var(--accent); color: #fff; font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--large { min-height: 48px; font-size: 15px; }
.btn--outline { width: auto; background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--disabled, .btn:disabled { background: #f4f1f3; color: var(--muted); border: 1px solid #c9c4c8; cursor: not-allowed; }

/* Info strip */
.info-strip { margin: 0 48px 48px; padding: 28px 24px; background: var(--soft); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; text-align: center; }
.info-strip div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.info-strip strong { color: var(--title); }
.info-strip span { font-size: 15px; }

/* Product detail */
.breadcrumb { margin: 24px 48px 0; font-size: 14px; }
.product-detail { padding: 20px 48px 56px; display: flex; flex-wrap: wrap; gap: 48px; }
.gallery { flex: 1 1 460px; min-width: 0; }
.gallery-main { background: var(--visual-bg); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.gallery-main .bracelet { width: 86%; height: 86%; }
.gallery-note { font-size: 14px; color: var(--muted); }
.product-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.product-info h1 { margin: 0; font-size: 40px; }
.add-to-cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 10px; }
.add-to-cart .btn { flex: 1 1 220px; width: auto; }
.qty { display: flex; flex-direction: column; gap: 6px; }
.qty label { font-size: 14px; font-weight: 700; color: var(--title); }
.qty input { width: 90px; height: 44px; border: 1px solid #c9c4c8; border-radius: 50px; text-align: center; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--title); }
.product-facts { margin: 18px 0 0; padding: 18px 0 0 20px; border-top: 1px solid var(--line); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }


/* Simple pages */
.page-section { padding: 40px 48px 56px; max-width: 760px; }
.page-section--wide { max-width: none; }
.page-section--narrow { max-width: 860px; margin: 0 auto; }
.page-section h1 { font-size: 40px; margin: 0 0 20px; }
.loading { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Toast + alerts */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10; background: var(--nav-text); color: #fff; padding: 12px 20px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 15px; max-width: calc(100% - 40px); }
.toast a { color: var(--footer-link); font-weight: 700; }
.alert { background: #fdf1e9; border-left: 0; border: 1px solid #f0c9b0; color: #6e3417; padding: 12px 18px; margin-bottom: 20px; }
.alert p { margin: 4px 0; }
.cart-feedback { font-size: 15px; font-weight: 600; color: var(--ok); }

/* Cart */
.cart-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.cart-main { flex: 999 1 560px; min-width: 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line-visual { width: 88px; height: 88px; background: var(--visual-bg); flex-shrink: 0; display: block; }
.cart-line-visual .bracelet { width: 100%; height: 100%; }
.cart-line-info { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.cart-line-name { font-family: var(--font-title); font-size: 21px; color: var(--title); text-decoration: none; }
.cart-line-amount { width: 90px; text-align: right; font-weight: 800; color: var(--title); }
.stepper { display: flex; align-items: center; border: 1px solid #c9c4c8; border-radius: 50px; overflow: hidden; }
.stepper button { width: 40px; height: 44px; border: 0; background: #fff; font-size: 18px; color: var(--title); cursor: pointer; }
.stepper button:disabled { color: #c9c4c8; cursor: default; }
.stepper span { width: 32px; text-align: center; font-weight: 700; color: var(--title); }
.icon-button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { color: var(--accent); }
.delivery-choice { margin: 32px 0 0; padding: 0; border: 0; }
.delivery-choice legend, .checkout fieldset legend { font-family: var(--font-title); font-size: 23px; color: var(--title); margin-bottom: 12px; padding: 0; }
.delivery-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.delivery-option { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 2px solid #e3d7df; cursor: pointer; }
.delivery-option:has(input:checked) { border-color: var(--accent); }
.delivery-option input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.delivery-option strong { display: block; color: var(--title); }
.delivery-option span span { font-size: 15px; }
.cart-recap { flex: 1 1 300px; min-width: 0; background: var(--soft); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cart-recap h2 { margin: 0 0 4px; font-size: 26px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }
.summary-row span:last-child { font-weight: 700; color: var(--title); white-space: nowrap; }
.summary-total { border-top: 1px solid #dccbd6; padding-top: 12px; margin-top: 4px; font-size: 20px; font-weight: 800; color: var(--title); }
.recap-note { font-size: 14px; }
.recap-center { text-align: center; }
.cart-empty { padding: 20px 0; }
.summary-compact { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.summary-edit { margin: 4px 0 0; font-size: 14px; }

/* Checkout */
.checkout-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.checkout-form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.checkout-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.checkout-summary { flex: 1 1 280px; min-width: 0; background: var(--soft); padding: 24px; position: sticky; top: 20px; }
.checkout-summary h2 { margin: 0 0 12px; font-size: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.grid-2 .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label, .field-label { font-size: 14px; font-weight: 700; color: var(--title); }
.field input, .field textarea { min-height: 44px; border: 1px solid #c9c4c8; padding: 8px 12px; font-family: inherit; font-size: 16px; color: var(--title); background: #fff; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-static { min-height: 44px; display: flex; align-items: center; }
.field--error input, .field--error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 14px; font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; min-height: 44px; padding-top: 10px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.invoice-block { margin-top: 10px; padding: 18px; background: var(--visual-bg); display: flex; flex-direction: column; gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.form-actions .btn { flex: 1 1 220px; width: auto; }
.form-actions--center { justify-content: center; border-top: 0; }
.form-actions--center .btn { flex: 0 1 auto; }
.form-hint { margin: -12px 0 0; font-size: 13px; text-align: center; }

/* Confirmation */
.confirmation { display: flex; flex-direction: column; gap: 24px; }
.confirmation-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.confirmation-head h1 { margin: 0; }
.confirmation-head p { margin: 0; }
.payment-box { display: flex; flex-wrap: wrap; gap: 28px; padding: 28px; background: var(--soft); align-items: center; }
.payment-details { flex: 999 1 360px; min-width: 0; }
.payment-details h2 { margin: 0 0 12px; font-size: 26px; }
.payment-details dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 16px; }
.payment-details dt { font-weight: 700; color: var(--title); }
.payment-details dd { margin: 0; overflow-wrap: anywhere; }
.payment-details .amount { font-size: 20px; font-weight: 800; color: var(--title); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.strong { font-weight: 700; color: var(--title); }
.payment-note { margin: 12px 0 0; font-size: 15px; }
.payment-qr { flex: 1 1 180px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; text-align: center; }
.payment-qr .qr { background: #fff; padding: 8px; line-height: 0; }
.payment-qr svg { width: 180px; height: 180px; }
.confirmation-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.panel { padding: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.panel h3 { margin: 0 0 4px; font-size: 21px; }
.panel ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.site-footer { background: var(--footer); color: #d9d4d7; padding: 32px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--footer-link); }

/* Phone */
@media (max-width: 700px) {
  .frame { padding: 0; }
  .site-header, .products, .hero, .product-detail, .page-section, .site-footer { padding-left: 20px; padding-right: 20px; }
  .main-nav, .info-strip { margin-left: 20px; margin-right: 20px; }
  .breadcrumb { margin-left: 20px; margin-right: 20px; }
  .brand img { width: 120px; }
  .brand-tagline { font-size: 24px; }
  .hero h1 { font-size: 32px; }
  .product-info h1 { font-size: 32px; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-4, .grid-2 .span-2 { grid-column: auto; }
  .page-section h1 { font-size: 32px; }
  .payment-box { padding: 20px; }
  .checkout-summary { order: -1; position: static; }
}

/* Photos et vidéo */
.product-card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--visual-bg); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.gallery-thumb { position: relative; aspect-ratio: 1 / 1; padding: 0; border: 1px solid #e3d7df; background: var(--visual-bg); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active { border: 2px solid var(--accent); }
.gallery-thumb--video { background: #3a2a3d; }
.gallery-thumb--video svg { position: absolute; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.legal-page h2 { font-family: "Marcellus", serif; font-weight: 400; font-size: 1.35rem; margin: 28px 0 8px; }
.legal-page h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.legal-page p, .legal-page li { line-height: 1.6; }
.legal-page ul { padding-left: 1.2em; }
.legal-page .legal-updated { margin-top: 32px; color: var(--muted, #6b6969); font-size: .9rem; }
