/* Charte Lounge : minimaliste, noir & blanc, tons nude, capitales espacées.
   Toutes les couleurs et polices sont ici, faciles à ajuster. */
:root {
  --black: #000000;
  --white: #ffffff;
  --nude: #f3e9e2;
  --nude-dark: #e6d5ca;
  --sand: #faf6f3;
  --grey: #757575;
  --line: #e5e5e5;
  --success: #2e7d5b;
  --danger: #b3261e;
  --font: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --radius: 0px;
  --track: 0.14em;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---- Bandeau & header ---- */
.announcement {
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 9px 16px;
}
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.32em;
  text-decoration: none;
  padding-left: 0.32em;
}
.nav-left, .nav-right { display: flex; gap: 26px; align-items: center; }
.nav-left > * + *, .nav-right > * + * { margin-left: 0; }
.nav-left a, .nav-right a { white-space: nowrap; }
.burger { display: none; width: 40px; height: 40px; margin-left: -10px; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; color: var(--black); }
.burger span { display: block; height: 1.5px; width: 100%; background: currentColor; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.25px) rotate(-45deg); }
.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - 100%); height: calc(100dvh - 100%);
  background: var(--white); border-top: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 8px 24px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; z-index: 20;
}
.mobile-nav a, .mobile-nav button.linklike {
  display: block; width: 100%; text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; text-transform: uppercase; letter-spacing: var(--track); text-decoration: none; font-weight: 500;
}
.mobile-nav a.active { text-decoration: underline; text-underline-offset: 6px; }
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a, .nav-right button.linklike {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--track);
  text-decoration: none;
  font-weight: 500;
}
.nav-left a.active, .nav-right a.active { text-decoration: underline; text-underline-offset: 6px; }
button.linklike { background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; color: inherit; }

/* ---- Typo ---- */
h1, h2, h3, h4 { font-weight: 500; margin: 0 0 .6em; letter-spacing: 0.04em; }
h1 { font-size: 34px; text-transform: uppercase; letter-spacing: var(--track); font-weight: 400; }
h2 { font-size: 22px; text-transform: uppercase; letter-spacing: var(--track); font-weight: 400; }
h3 { font-size: 15px; text-transform: uppercase; letter-spacing: var(--track); }
h4 { font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--grey); margin-bottom: 10px; }
.muted { color: var(--grey); }
.center { text-align: center; }

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track);
  padding: 15px 34px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  line-height: 1.3;
}
@media (hover: hover) { .btn:hover { background: var(--white); color: var(--black); } }
.btn:active { opacity: .8; }
.btn.outline { background: transparent; color: var(--black); }
@media (hover: hover) { .btn.outline:hover { background: var(--black); color: var(--white); } }
.btn.light { background: var(--white); color: var(--black); border-color: var(--white); }
@media (hover: hover) { .btn.light:hover { background: transparent; color: var(--white); } }
.btn.small { padding: 9px 18px; font-size: 11px; }
.btn.block { width: 100%; }
.btn:disabled, .btn:disabled:hover { opacity: .5; cursor: default; background: var(--black); color: var(--white); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--nude);
}
.hero-text {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-text h1 { font-size: 44px; line-height: 1.15; }
.hero-text p { max-width: 440px; margin: 0 0 32px; }
.hero-visual {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(160deg, #e8d6ca 0%, #d9bfae 45%, #c9a693 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 32px;
}
.hero-visual span {
  color: var(--white);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.perk { padding: 48px 40px; text-align: center; border-right: 1px solid var(--line); }
.perk:last-child { border-right: 0; }
.perk .num { font-size: 12px; letter-spacing: .2em; color: var(--grey); }

/* ---- Conteneurs ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 56px 32px; }
.narrow { max-width: 520px; }
.wide-form { max-width: 760px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; }

/* ---- Formulaires ---- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .row.three { grid-template-columns: 1fr 1fr 1fr; }
.field { margin-bottom: 18px; }
label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: var(--track); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
  line-height: 1.3;
}
select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}
select::-ms-expand { display: none; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input:disabled { background: var(--sand); color: var(--grey); -webkit-text-fill-color: var(--grey); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); }
textarea { min-height: 90px; resize: vertical; }
.fieldset-title { margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.choice { display: flex; gap: 0; margin-bottom: 18px; }
.choice label {
  flex: 1; text-align: center; border: 1px solid var(--black); padding: 13px; cursor: pointer; margin: 0;
}
.choice label + label { border-left: 0; }
.choice input { display: none; }
.choice input:checked + span { font-weight: 600; }
.choice label.checked { background: var(--black); color: var(--white); }
.choice label { text-transform: uppercase; letter-spacing: var(--track); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.form-error { color: var(--danger); font-size: 14px; min-height: 22px; margin-bottom: 8px; }
.switch-link { margin-top: 22px; text-align: center; font-size: 14px; }
.warning-box { background: var(--sand); border-left: 3px solid var(--black); padding: 12px 16px; font-size: 13px; margin-bottom: 22px; }

/* ---- Tableau de bord ---- */
.welcome { background: var(--nude); padding: 44px 32px; }
.welcome .inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.welcome h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 44px; }
.stat { padding: 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .value { font-size: 30px; font-weight: 300; }
.stat .label { font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--grey); }

/* ---- Commandes ---- */
.order-card { border: 1px solid var(--line); margin-bottom: 22px; }
.order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 24px; background: var(--sand); border-bottom: 1px solid var(--line); }
.order-head > div { min-width: 0; overflow-wrap: anywhere; }
.order-head .num { font-weight: 600; letter-spacing: .1em; }
.order-body { padding: 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.items { list-style: none; padding: 0; margin: 0; }
.items li > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.items li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.items li:last-child { border-bottom: 0; }
.thumb { width: 52px; height: 64px; background: linear-gradient(160deg, var(--nude), var(--nude-dark)); flex-shrink: 0; }
.badge { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: var(--track); padding: 5px 12px; border: 1px solid var(--black); }
.badge.livree { background: var(--black); color: var(--white); }
.badge.expediee { background: var(--nude); border-color: var(--nude-dark); }
.badge.refusee { color: var(--danger); border-color: var(--danger); }

.timeline { display: flex; justify-content: space-between; position: relative; margin: 6px 0 20px; }
.timeline::before { content: ''; position: absolute; top: 7px; left: 10%; right: 10%; height: 1px; background: var(--line); }
.timeline .bar { position: absolute; top: 7px; left: 10%; height: 1px; background: var(--black); }
.step { position: relative; text-align: center; flex: 1; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); }
.step .dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #bbb; background: var(--white); margin: 0 auto 8px; }
.step.done { color: var(--black); }
.step.done .dot { background: var(--black); border-color: var(--black); }
.tracking { font-size: 14px; }
.tracking code { font-family: inherit; font-weight: 600; letter-spacing: .06em; }

.empty { text-align: center; padding: 64px 24px; border: 1px solid var(--line); background: var(--sand); }

/* ---- Nouvelle commande ---- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { border: 1px solid var(--line); }
.product .visual { aspect-ratio: 4/5; background: linear-gradient(160deg, var(--nude) 0%, var(--nude-dark) 100%); display: flex; align-items: flex-end; padding: 14px; }
.product .visual span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.product .info { padding: 16px; }
.product .info h3 { margin-bottom: 2px; }
.product .opts { display: grid; grid-template-columns: 1.3fr 1fr 52px; gap: 8px; margin: 12px 0; }
.product .opts select, .product .opts input { padding: 9px 8px; font-size: 13px; min-height: 42px; }
.product .opts select { padding-right: 22px; background-position: right 7px center; }
.product .opts input { text-align: center; padding: 9px 4px; }
.cart { position: -webkit-sticky; position: sticky; top: 100px; background: var(--sand); border: 1px solid var(--line); padding: 22px; max-height: calc(100vh - 120px); overflow-y: auto; }
.cart textarea { min-height: 70px; }
.cart-list li { gap: 12px; align-items: baseline; }
.cart-list li span { min-width: 0; overflow-wrap: anywhere; }
.cart-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; }
.cart-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---- Raccourci sélection (mobile) ---- */
.cart-fab { display: none; }

/* ---- Admin ---- */
.filters { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.filters label { margin: 0; }
.filters select { width: auto; min-width: 220px; }
.recipient { max-width: 560px; margin-bottom: 28px; }
.recipient-info { font-size: 13px; margin: 8px 0 0; }
.admin-table td.actions { white-space: nowrap; }
.admin-table td.actions .linklike { display: block; margin-top: 8px; font-size: 12px; color: var(--grey); text-decoration: underline; }
.order-note { background: var(--sand); padding: 12px 14px; font-size: 14px; margin: 0 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: var(--track); font-weight: 500; padding: 12px 10px; border-bottom: 1px solid var(--black); }
td { overflow-wrap: anywhere; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td select, td input { padding: 8px; font-size: 13px; }
.tabs { display: flex; gap: 0; margin-bottom: 26px; }
.tabs button { font-family: inherit; background: none; border: 1px solid var(--black); padding: 10px 22px; font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); cursor: pointer; }
.tabs button + button { border-left: 0; }
.tabs button.active { background: var(--black); color: var(--white); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { min-width: 960px; }
.admin-table td:nth-child(2) { white-space: nowrap; }

/* ---- Footer ---- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding: 48px 32px calc(24px + env(safe-area-inset-bottom)); margin-top: 40px; }
.footer-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; font-size: 14px; }
.footer-grid p { margin: 4px 0; }
.logo-footer { font-size: 22px; margin-bottom: 8px; padding-left: 0; }
.copyright { max-width: 1160px; margin: 36px auto 0; font-size: 12px; color: var(--grey); letter-spacing: .06em; }

.toast { max-width: calc(100% - 32px); text-align: center; position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 14px 26px; font-size: 13px; letter-spacing: .06em; z-index: 50; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .order-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cart { position: static; max-height: none; }
  .cart-fab {
    display: block; position: fixed; z-index: 15; left: 50%; transform: translateX(-50%);
    bottom: calc(16px + env(safe-area-inset-bottom));
    background: var(--black); color: var(--white); text-decoration: none; white-space: nowrap;
    font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); padding: 14px 24px;
  }
  .cart-fab[hidden] { display: none; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) {
  .site-header { padding: 12px 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); grid-template-columns: 40px 1fr 40px; }
  .burger { display: flex; }
  .nav-left, .nav-right { display: none; }
  .logo { font-size: 22px; text-align: center; }
  .logo-footer { text-align: left; }
  .announcement { font-size: 10px; letter-spacing: .1em; padding: 8px 12px; }
  h1 { font-size: 26px; letter-spacing: .1em; overflow-wrap: anywhere; }
  h2 { font-size: 18px; letter-spacing: .1em; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 200px; }
  .hero-text { padding: 44px 20px; }
  .hero-text h1 { font-size: 30px; }
  .perks, .footer-grid { grid-template-columns: 1fr; }
  .perk { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat .value { font-size: 26px; }
  .welcome { padding: 32px 20px; }
  .order-head { padding: 14px 16px; }
  .order-body { grid-template-columns: 1fr; padding: 16px; gap: 24px; }
  .container { padding: 32px 20px; }
  .section-head { margin-bottom: 20px; }
  .site-footer { padding: 36px 20px calc(20px + env(safe-area-inset-bottom)); }
  main { padding-bottom: 8px; }
  /* iOS : pas de zoom automatique sur les champs */
  input, select, textarea { font-size: 16px !important; }
  /* Nouvelle demande : cartes produit horizontales, panier en bas de page */
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product { display: grid; grid-template-columns: 96px 1fr; }
  .product .visual { aspect-ratio: auto; min-height: 100%; padding: 8px; }
  .product .visual span { font-size: 8px; letter-spacing: .12em; }
  .product .info { padding: 12px; }
  .product .opts { grid-template-columns: 1fr 1fr 56px; gap: 6px; margin: 8px 0 10px; }
  .product .opts select, .product .opts input { min-height: 42px; padding: 8px 6px; padding-right: 22px; background-position: right 7px center; }
  .product .opts input { padding-right: 6px; text-align: center; }
  .cart { padding: 18px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); font-size: 12px; padding: 12px 18px; }
}
@media (max-width: 600px) {
  form .row, form .row.three { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .filters { flex-wrap: wrap; }
  .filters select { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .section-head .btn { width: 100%; }
  .choice label { padding: 12px 6px; font-size: 10px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 10px 8px; }
  /* Frise de suivi verticale sur petits écrans */
  .timeline { flex-direction: column; gap: 14px; margin: 10px 0 18px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline .bar { display: none; }
  .step { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 11px; }
  .step .dot { margin: 0; flex-shrink: 0; }
}
