/* Surface sensible — thème « terra »
   reprenant le template de la vitrine echo-helloworld :
   Material Design 3 clair (fond blanc chaud, primaire brique #ad3036,
   contenants crème/rose, cartes md-filled, boutons pilule),
   polices Crimson Text / Playfair Display / DM Sans. */

:root {
  --bg: #fffbff;
  --ink: #201a1a;
  --ink-soft: #524342;
  --muted: #775655;
  --primary: #ad3036;
  --primary-dark: #8c1622;
  --on-primary: #ffffff;
  --primary-container: #ffdad8;
  --on-primary-container: #410007;
  --tertiary: #745a2e;
  --tertiary-container: #ffdeab;
  --surface: #fffbff;
  --surface-low: #fef1ef;
  --surface-cont: #f8ebea;
  --surface-high: #f2e5e4;
  --surface-highest: #ede0de;
  --outline: #d7c1c0;
  --outline-strong: #857372;
  --success: #006d36;
  --serif: "Crimson Text", Georgia, serif;
  --display: "Playfair Display", "Crimson Text", serif;
  --sans: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

::selection { background: var(--primary-container); color: var(--on-primary-container); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% -12%, rgba(255, 218, 216, 0.55), transparent 55%);
  background-attachment: fixed;
  line-height: 1.7;
  font-size: 17px;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--outline);
  background: rgba(255, 251, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  animation: fadeIn 0.8s both;
}
.brand span { color: var(--primary); font-style: italic; text-transform: none; letter-spacing: 0.02em; }

.site-header nav a {
  font-family: var(--sans);
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--primary); }
.site-header nav a.active { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.site-header nav a.insta { border-left: 1px solid var(--outline); padding-left: 1.4rem; }
.site-header nav a.soc { display: inline-flex; align-items: center; }
.site-header nav a.soc svg { display: block; }

main { max-width: 1020px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 6rem 1rem 5rem;
  color: var(--ink);
  margin: 2rem -1.5rem 3rem;
  max-width: none;
}
.hero .kicker {
  color: var(--primary);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeIn 0.7s 0.1s both;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--ink);
  opacity: 0;
  animation: fadeIn 0.7s 0.2s both;
}
.hero .tagline {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 2.4rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp 0.8s 0.5s both;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 999px;
  color: var(--on-primary);
  background: var(--primary);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0 0.3rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  opacity: 0;
  animation: fadeIn 0.7s 0.8s both;
}
.btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(173, 48, 54, 0.35);
  transform: translateY(-1px);
}
.btn.ghost {
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.btn.ghost:hover { background: #f5c4c0; box-shadow: 0 4px 14px rgba(173, 48, 54, 0.22); }

/* ---------- cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0 3rem;
}

.card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.card p:not(.kicker) { font-size: 0.98rem; margin-bottom: 1rem; }
.card a:not(.kicker) {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.card a:hover { color: var(--primary-dark); }

/* ---------- quote ---------- */
.quote {
  text-align: center;
  margin: 2rem auto 4rem;
  max-width: 640px;
}
.quote p {
  font-family: var(--display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  padding: 2rem 0;
}

/* ---------- pages ---------- */
.page { padding: 3.5rem 0 2rem; max-width: 760px; }
.page h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.7rem;
  color: var(--ink);
  margin-bottom: 2rem;
}
.page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--ink);
  margin: 2.2rem 0 0.8rem;
}
.page p, .page li { margin-bottom: 0.9rem; max-width: 68ch; }
.page ul, .page ol { margin: 0.8rem 0 0.8rem 1.4rem; }
.page strong { color: var(--primary); }
.page blockquote {
  border-left: 3px solid var(--primary);
  background: var(--surface-low);
  padding: 0.9rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 0 12px 12px 0;
}
.page a:not(.btn-shop) { color: var(--primary); }

/* ---------- shop ---------- */
.shop-hero, .cart-hero, .pay-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.shop-hero h1, .cart-hero h1, .pay-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.7rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.shop-hero p, .pay-hero p { color: var(--ink-soft); }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0 1rem;
}
.product {
  background: var(--surface-cont);
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.2s;
  /* La carte est un lien vers la page détail produit */
  text-decoration: none;
  color: inherit;
}
.product:hover {
  box-shadow: 0 10px 28px rgba(173, 48, 54, 0.16);
  transform: translateY(-2px);
}
.product h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.p-desc { font-size: 0.95rem; margin-bottom: 1rem; flex: 1; }
.p-img-empty { width: 100%; height: 170px; border-radius: 10px; background: var(--surface-high); margin-bottom: 0.9rem; }
.p-cta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 0.5rem;
  transition: color 0.2s;
  display: block;
}
.product:hover .p-cta { color: var(--primary-dark); }
.product .p-img {
  width: 100%; height: 170px; object-fit: cover;
  background: var(--surface-high);
  border-radius: 10px;
  margin-bottom: 0.9rem;
}

/* ---------- page détail produit (/produit/<ref>) ---------- */
.back-link {
  display: inline-block;
  margin: 1.4rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--primary); }
.prod-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.4rem;
  align-items: start;
  margin-top: 1.8rem;
}
@media (max-width: 760px) {
  .prod-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}
.prod-gallery { display: flex; flex-direction: column; }
.g-main {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: var(--surface-high);
  border-radius: 14px;
}
.g-empty { width: 100%; height: 420px; background: var(--surface-high); border-radius: 14px; }
.g-thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.7rem; }
.g-thumbs button {
  width: 72px; height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-high);
}
.g-thumbs button.sel { border-color: var(--primary); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-info h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--ink);
  margin: 0.2rem 0 0.7rem;
}
.prod-price { font-size: 1.3rem; margin: 0.2rem 0 0.4rem; }
.prod-desc { line-height: 1.7; color: var(--ink-soft); margin: 1rem 0 1.6rem; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.2rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: var(--surface);
}
.qty-stepper button {
  width: 1.7rem; height: 1.7rem;
  border: 1px solid var(--outline-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem; line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.qty-stepper button:hover { border-color: var(--primary); background: var(--surface-low); }
.qty-stepper input {
  width: 2.6rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 1rem; font-weight: 600;
  border: none; background: none; color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }
.prod-uniq {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.p-unique {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.3rem;
}
.cl-uniq { color: var(--muted); font-style: italic; }
.cl-qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.price {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.btn-shop {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-shop:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(173, 48, 54, 0.35);
  transform: translateY(-1px);
}
.btn-shop.big { display: block; width: 100%; padding: 0.9rem; margin: 1rem 0; font-size: 0.85rem; }
.shop-note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 70ch;
  padding-bottom: 1rem;
}
.shop-note a { color: var(--primary); }

/* ---------- cart ---------- */
.cart-box { max-width: 700px; margin: 0 auto 3rem; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--outline);
}
.cl-qty { display: flex; align-items: center; gap: 0.5rem; }
.cl-qty button {
  width: 1.6rem; height: 1.6rem;
  border: 1px solid var(--outline-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem; line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.cl-qty button:hover { border-color: var(--primary); background: var(--surface-low); }
.cl-price { color: var(--ink); white-space: nowrap; font-weight: 600; }
.cl-remove {
  border: none; background: none; color: var(--muted);
  text-decoration: underline; cursor: pointer; font-size: 0.8rem;
}
.cl-remove:hover { color: var(--primary); }
.cart-total {
  display: flex; justify-content: space-between;
  padding: 1.1rem 0 0.4rem;
  font-size: 1.1rem;
}
.cart-total strong { color: var(--ink); font-weight: 600; }
.client-info { display: grid; gap: 0.6rem; margin: 0.5rem 0 0.5rem; }
.client-info input, .client-info textarea {
  font-family: var(--sans); font-size: 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--outline-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%; box-sizing: border-box;
}
.client-info textarea { resize: vertical; }
.client-info input::placeholder, .client-info textarea::placeholder { color: rgba(82, 67, 66, 0.45); }
.client-info input:focus, .client-info textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(173, 48, 54, 0.12); }
.cart-empty { color: var(--muted); padding: 1.5rem 0; }
.cart-empty a { color: var(--primary); }

.cart-link { border-left: 1px solid var(--outline); padding-left: 1.4rem; }
#cart-count { color: var(--primary); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--outline);
}
.foot-brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.foot-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.site-footer a {
  color: var(--primary);
  font-size: 0.9rem;
  text-decoration: none;
}
.site-footer a:hover { color: var(--primary-dark); }
.foot-legal { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.05em; margin-top: 0.9rem; }
.foot-legal a { font-size: 0.72rem; }
.foot-legal .sep { color: var(--muted); margin: 0 0.4rem; }

/* ---------- ateliers ---------- */
.agenda h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.6rem 0 0.6rem;
}
.atel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  align-items: baseline;
  background: var(--surface-cont);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.9rem;
  cursor: pointer;
  transition: box-shadow 0.25s;
}
.atel:hover { box-shadow: 0 6px 20px rgba(173, 48, 54, 0.16); }
.atel.soldout { opacity: 0.5; cursor: default; }
.atel.soldout:hover { box-shadow: none; }
.atel .a-date { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); min-width: 12.5em; }
.atel .a-type { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.atel .a-lieu { font-style: italic; }
.atel .a-info { color: var(--muted); font-size: 0.9rem; }
.atel .a-pl { margin-left: auto; font-weight: 700; color: var(--primary); }
.atel-detail { margin: 1.2rem 0; }
.atel-card-detail {
  background: var(--surface-low);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.3rem;
  font-size: 0.97rem;
}
.atel-card-detail h3 { margin-bottom: 0.4rem; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}
.res-grid input, .res-grid select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--outline-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.res-grid input::placeholder { color: rgba(82, 67, 66, 0.45); }
.res-grid input:focus, .res-grid select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(173, 48, 54, 0.12); }
.atel-card-detail .hint { font-size: 0.85rem; color: var(--muted); }
.ok-msg { color: var(--success); }
.ok-msg a { color: var(--success); text-decoration: underline; }

.res-grid .res-total { align-self: center; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- accueil (maquette référence) ---------- */
.home-hero {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin: 2rem -50vw 2rem;
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(32, 26, 26, 0.42), rgba(32, 26, 26, 0.34)),
    url("/media/hero.jpg") center / cover no-repeat;
}
.home-hero__inner { max-width: 760px; padding: 3rem 1.5rem; }
.home-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeIn 0.9s 0.15s both;
}
.home-hero__txt {
  font-size: 1.08rem;
  color: rgba(255, 253, 255, 0.92);
  max-width: 60ch;
  margin: 0 auto 2.2rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp 0.8s 0.45s both;
}
.home-hero .btn {
  opacity: 0;
  animation: fadeIn 0.7s 0.75s both;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.ti {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}
.ti__img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(173, 48, 54, 0.14);
}
.ti__txt h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.ti__sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.ti__txt p:last-of-type { margin-bottom: 1.6rem; }

.collection { margin: 3rem 0 1rem; }
.collection__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.col-card {
  background: var(--surface-cont);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.25s, transform 0.2s;
}
.col-card:hover {
  box-shadow: 0 10px 28px rgba(173, 48, 54, 0.18);
  transform: translateY(-2px);
}
.col-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-high);
}
.col-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.9rem 0 0.3rem;
}
.col-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.col-price {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.col-card a {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.col-card a:hover { color: var(--primary-dark); }
.collection__cta { text-align: center; margin: 2rem 0 1rem; }

.coffret {
  text-align: center;
  max-width: 660px;
  margin: 3.5rem auto 4rem;
}
.coffret h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.coffret p { color: var(--ink-soft); margin-bottom: 1.6rem; }

@media (max-width: 760px) {
  .ti { grid-template-columns: 1fr; gap: 1.6rem; }
  .home-hero { min-height: 62vh; }
}

/* ---------- révélation au scroll (effet « echo-animate ») ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.hidden { display: none !important; }
.nav-account a { color: var(--primary); }
.auth-box {
  background: var(--surface-cont);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}
.auth-box h3 { margin: 0 0 .6rem; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: .5rem; max-width: 420px; margin-bottom: .8rem; }
.auth-form input {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--outline-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.auth-form input::placeholder { color: rgba(82, 67, 66, 0.45); }
.auth-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(173, 48, 54, 0.12); }
.auth-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.btn-ghost {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border: none;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover { background: #f5c4c0; box-shadow: 0 4px 14px rgba(173, 48, 54, 0.22); }

/* ---------- wizard de commande (étapes 1–4) ---------- */
.steps { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700;
  letter-spacing: .03em; color: rgba(32, 26, 26, .45); background: #fff;
  border: 1px solid rgba(32, 26, 26, .14); border-radius: 999px; padding: 4px 12px 4px 6px; }
.step i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(32, 26, 26, .08); color: rgba(32, 26, 26, .6); font-size: .72rem; }
.step.act { border-color: var(--primary); color: var(--primary); }
.step.act i { background: var(--primary); color: #fff; }
.step.ok { color: var(--primary); border-color: transparent; background: rgba(173, 48, 54, .10); }
.step.ok i { background: var(--primary); color: #fff; }
.co-step h3 { margin: 0 0 12px; font-size: 1.05rem; font-family: var(--serif); font-weight: 600; }
.f-main { margin-bottom: 10px; }
.f-main label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: rgba(32, 26, 26, .55); margin-bottom: 4px; }
.f-main input, .f-main textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff; border: 1.5px solid rgba(32, 26, 26, .20); border-radius: 10px;
  padding: 10px 12px; }
.f-main input::placeholder, .f-main textarea::placeholder { color: rgba(82, 67, 66, .45); }
.f-main input:focus, .f-main textarea:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(173, 48, 54, .12); }
.addr-cols { display: grid; grid-template-columns: 140px 1fr; gap: 10px; margin-bottom: 4px; }
.gcols { grid-template-columns: 1fr 1fr; }
.field-err { min-height: 1em; font-size: .78rem; color: #ba1a1a; margin: 2px 0 6px; }
.wiz-btns { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; flex-wrap: wrap; }
.btn-wiz { font: inherit; font-weight: 700; color: #fff; background: var(--primary); border: 0;
  border-radius: 999px; padding: 11px 22px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.20);
  transition: background .15s, box-shadow .2s; }
.btn-wiz:hover { background: var(--primary-dark); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
/* Bouton de paiement : vert (CTA de règlement) */
.btn-pay { background: var(--success); }
.btn-pay:hover { background: #005c2d; box-shadow: 0 2px 8px rgba(0,109,54,.30); }
.btn-back { font-size: .85rem; font-weight: 600; color: rgba(32, 26, 26, .55); text-decoration: none; }
.btn-back:hover { color: var(--primary); }
/* complétion d'adresse (BAN) */
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 30; top: calc(100% - 4px); left: 0; right: 0; background: #fff;
  border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.22); overflow: hidden; }
.ac-item { padding: 9px 14px; cursor: pointer; display: flex; flex-direction: column;
  border-bottom: 1px solid rgba(32, 26, 26, .06); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.sel { background: rgba(173, 48, 54, .08); }
.ac-item strong { font-size: .92rem; font-weight: 600; }
.ac-item small { font-size: .75rem; color: rgba(32, 26, 26, .5); }
/* mode de livraison */
.ship-opt { display: flex; flex-direction: column; gap: 2px; background: #fff;
  border: 2px solid rgba(32, 26, 26, .12); border-radius: 14px; padding: 12px 16px;
  margin-bottom: 10px; cursor: pointer; transition: border-color .15s, box-shadow .2s; }
.ship-opt:hover { border-color: rgba(173, 48, 54, .5); }
.ship-opt.sel { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(173, 48, 54, .15); }
.so-t { font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.so-p { font-size: .85rem; color: var(--primary); font-weight: 700; }
.so-d { font-size: .8rem; color: rgba(32, 26, 26, .55); }
.note-main textarea { resize: vertical; }
/* récapitulatif */
.recap .rc { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0;
  border-bottom: 1px solid rgba(32, 26, 26, .08); font-size: .92rem; }
.recap .rc.sub { padding-left: 14px; color: rgba(32, 26, 26, .6); font-size: .85rem; }
.recap .rc span { color: rgba(32, 26, 26, .55); font-weight: 600; flex-shrink: 0; }
.recap .rc b { font-weight: 700; text-align: right; }
.recap .rc.grand { border-bottom: 0; margin-top: 6px; font-size: 1.05rem; }
.recap .rc.grand b { color: var(--primary); }
.pay-cgv { text-align: center; font-size: .8rem; margin: 8px 0 0; color: rgba(32,26,26,.6); }
.pay-cgv a { color: rgba(32,26,26,.6); text-decoration: underline; }
/* succès */
.ok-box { background: rgba(0, 109, 54, .07); border: 1.5px solid rgba(0, 109, 54, .35);
  border-radius: 14px; padding: 18px; margin-bottom: 8px; }
.ok-box h3 { color: var(--success); }
.ok-box p { margin: 6px 0; }
@media (max-width: 700px) {
  .addr-cols { grid-template-columns: 1fr; }
  .wiz-btns { justify-content: flex-end; }
}

/* --- Sélecteur de point Mondial Relay (étape 3) --- */
.relay-box { background: #fff; border: 1.5px solid var(--outline, rgba(32,26,26,.25));
  border-radius: 14px; padding: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.relay-box label { font-size: .85rem; font-weight: 600; color: rgba(32,26,26,.7); }
.relay-row { display: flex; gap: 8px; align-items: center; }
.relay-row input { width: 120px; padding: 8px 10px; border: 1.5px solid var(--outline, rgba(32,26,26,.25));
  border-radius: 9px; font: inherit; font-size: .95rem; }
.relay-row button { padding: 8px 16px; border: 0; border-radius: 999px; background: var(--primary, #ad3036);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.relay-row button:hover { background: var(--primary-dark, #8c1622); }
#rel-list { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto; }
#rel-list .hint { font-size: .82rem; color: rgba(32,26,26,.55); margin: 0; }
.rel-item { display: flex; gap: 8px; align-items: baseline; text-align: left; padding: 9px 12px;
  border: 1.5px solid rgba(32,26,26,.18); border-radius: 10px; background: #fff; font: inherit; font-size: .86rem;
  cursor: pointer; transition: border-color .15s, background .15s; }
.rel-item b { color: var(--primary, #ad3036); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.rel-item:hover { border-color: var(--primary, #ad3036); }
.rel-item.sel { border-color: var(--primary, #ad3036); background: rgba(173,48,54,.06); }

/* --- Page de paiement (SumUp / mode test) --- */
.pay-wrap { max-width: 560px; margin: 0 auto 3rem; padding: 0 1rem; }
.pay-content .recap { margin-bottom: 18px; }
.pay-content .recap h2 { font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  margin: 0 0 10px; }
.pay-cardform, .pay-sumup { background: #fff; border: 1.5px solid rgba(32,26,26,.12);
  border-radius: 14px; padding: 18px; }
.pay-cardform h2, .pay-sumup h2 { font-family: var(--serif); font-weight: 600;
  font-size: 1.05rem; margin: 0 0 8px; }
.pay-badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: #6b4b00; background: #f6e7c8; border: 1px solid #e3c88f; border-radius: 999px;
  padding: 3px 12px; margin: 0 0 12px; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-cardform .btn-wiz { width: 100%; margin-top: 6px; }
.pay-msg { min-height: 1.2em; margin: 10px 0 0; font-size: .88rem; color: rgba(32,26,26,.65); }
.pay-retry { margin-top: 12px; text-align: center; }
.sumup-card { width: 100%; }
@media (max-width: 480px) { .pay-row { grid-template-columns: 1fr; } }
