/* ==========================================
   CAFÉ ARTISTE & LITTÉRAIRE
   Direction artistique : librairie de luxe
========================================== */

:root {
  /* Palette de la marque */
  --bordeaux: #541C2C;       /* bordeaux profond */
  --bordeaux-deep: #3a0f1b;
  --bordeaux-soft: #74303f;
  --ivory: #F8F5EF;          /* ivoire */
  --offwhite: #FFFDFA;       /* blanc cassé */
  --champagne: #B89A69;      /* or champagne */
  --champagne-soft: #E4D5BA;
  --ink: #241c1a;
  --muted: #857a72;
  --line: #e6ddd0;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(22px, 6vw, 90px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--offwhite);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }

section[id] { scroll-margin-top: 90px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Petits éléments typographiques réutilisés */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--champagne);
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bordeaux);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -.01em;
}

.title em { font-style: italic; color: var(--bordeaux-soft); }

.lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 19px 34px;
  background: var(--bordeaux);
  color: var(--offwhite);
  border: 1px solid var(--bordeaux);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}

.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-ghost {
  background: transparent;
  color: var(--champagne-soft);
  border-color: rgba(198, 168, 120, .55);
}

.btn-ghost:hover { background: var(--champagne); border-color: var(--champagne); color: var(--bordeaux-deep); }

.link-line {
  position: relative;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  padding-bottom: 7px;
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--champagne);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.link-line:hover::after { transform: scaleX(.35); }

/* ==========================================
   EN-TÊTE
========================================== */

.topbar {
  background: var(--bordeaux-deep);
  color: var(--champagne-soft);
  text-align: center;
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  padding: 11px 20px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s;
}

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(58, 15, 27, .04);
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  transition: padding .4s var(--ease);
}

.header.scrolled .header-inner { padding-top: 16px; padding-bottom: 16px; }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-right { justify-content: flex-end; }

.nav a,
.nav button {
  position: relative;
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #4a3d38;
  padding: 6px 0;
  transition: color .3s;
}

.nav a::after,
.nav button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transition: transform .45s var(--ease);
}

.nav a:hover,
.nav button:hover { color: var(--bordeaux); }

.nav a:hover::after,
.nav button:hover::after { transform: scaleX(1); }

.brand {
  text-align: center;
  line-height: 1;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  color: var(--bordeaux);
  letter-spacing: .01em;
}

.brand-name em { color: var(--champagne); font-style: italic; }

.brand-sub {
  display: block;
  margin-top: 9px;
  font-size: 8.5px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-link {
  color: var(--bordeaux) !important;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 22px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--bordeaux);
  transition: transform .35s var(--ease), opacity .3s;
}

.menu-toggle span:nth-child(1) { top: 4px; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 18px; width: 65%; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

.mobile-nav { display: none; }

/* ==========================================
   HERO
========================================== */

.hero {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(70px, 9vw, 130px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}

.hero-text { position: relative; z-index: 2; padding-bottom: 40px; }

.hero-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--champagne);
  margin-bottom: 38px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-index::after {
  content: "";
  width: 70px;
  height: 1px;
  background: var(--line);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--bordeaux);
  margin-bottom: 38px;
}

.hero h1 em {
  display: block;
  font-style: italic;
  color: var(--champagne);
  padding-left: clamp(0px, 3vw, 54px);
}

.hero .lead {
  max-width: 400px;
  margin-bottom: 46px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  padding: 0 0 46px 46px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 62%;
  height: 72%;
  border: 1px solid var(--champagne);
  opacity: .7;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  height: min(86vh, 860px);
  min-height: 520px;
  background: var(--ivory);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.06) brightness(1.04);
  transform: scale(1.08);
  animation: heroZoom 2.6s var(--ease) forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero-caption {
  position: absolute;
  left: 0;
  bottom: 110px;
  background: var(--offwhite);
  padding: 26px 32px;
  max-width: 270px;
  box-shadow: 0 25px 60px rgba(58, 15, 27, .08);
}

.hero-caption small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 10px;
}

.hero-caption p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  color: var(--bordeaux);
}

.hero-vertical {
  position: absolute;
  left: calc(100% + 32px);
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  font-size: 9.5px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue span {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--champagne), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================
   BANDEAU DE MOTS
========================================== */

.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  overflow: hidden;
  padding: 26px 0;
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon 48s linear infinite;
}

.ribbon-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--bordeaux);
  padding: 0 34px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 68px;
}

.ribbon-track span::after {
  content: "✦";
  font-style: normal;
  font-size: 11px;
  color: var(--champagne);
}

@keyframes ribbon { to { transform: translateX(-50%); } }

/* ==========================================
   EN-TÊTES DE SECTION
========================================== */

.section { padding: clamp(80px, 11vw, 160px) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.section-head .kicker { margin-bottom: 22px; }

.section-head p.lead { max-width: 460px; margin-top: 20px; }

.section-head.centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

/* ==========================================
   NOUVEAUTÉS
========================================== */

.arrivals { background: var(--offwhite); }

.arrivals-empty {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
}

.cover-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: end;
}

.cover-frame {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  box-shadow: 0 30px 60px -25px rgba(58, 15, 27, .35);
}

.cover-frame:nth-child(1) { aspect-ratio: 2 / 3; transform: translateY(40px); }
.cover-frame:nth-child(2) { aspect-ratio: 2 / 3.2; }
.cover-frame:nth-child(3) { aspect-ratio: 2 / 3; transform: translateY(80px); }

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85);
  transition: transform 1.2s var(--ease);
}

.cover-frame:hover img { transform: scale(1.05); }

.arrivals-note .title { font-size: clamp(30px, 3.2vw, 44px); margin: 22px 0 22px; }
.arrivals-note .lead { margin-bottom: 36px; }

.arrivals-grid { margin-top: 0; }

/* ==========================================
   L'AUTEUR À L'HONNEUR
========================================== */

.author {
  position: relative;
  background: var(--bordeaux-deep);
  color: var(--offwhite);
  overflow: hidden;
}

.author::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 38%;
  height: 100%;
  background: var(--bordeaux);
}

.author-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.author-photo {
  position: relative;
}

.author-photo .frame {
  position: relative;
  overflow: hidden;
  height: min(80vh, 760px);
  min-height: 480px;
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale(1) contrast(1.05);
  transition: transform 1.6s var(--ease);
}

.author-photo:hover img { transform: scale(1.03); }

.author-photo::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 34px;
  right: -34px;
  bottom: -34px;
  border: 1px solid rgba(198, 168, 120, .5);
  z-index: -1;
}

.author-photo .frame { z-index: 1; }

.author-month {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: -1px;
  background: var(--champagne);
  color: var(--bordeaux-deep);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 12px 18px;
}

.author-content .kicker { color: var(--champagne); }

.author-content .title {
  color: var(--offwhite);
  font-size: clamp(40px, 4.8vw, 68px);
  margin: 26px 0 32px;
}

.author-content .title em { color: var(--champagne); }

.author-content .lead { color: #cdbdb6; max-width: 440px; }

.author-quote {
  margin: 42px 0 46px;
  padding-left: 26px;
  border-left: 1px solid var(--champagne);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.55;
  color: var(--champagne-soft);
  max-width: 440px;
}

/* ==========================================
   CATÉGORIES (mosaïque asymétrique)
========================================== */

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(220px, 22vw, 330px);
  gap: clamp(14px, 1.6vw, 24px);
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  display: block;
}

.tile:nth-child(1) { grid-column: 1 / 8; grid-row: span 2; }
.tile:nth-child(2) { grid-column: 8 / 13; }
.tile:nth-child(3) { grid-column: 8 / 10; }
.tile:nth-child(4) { grid-column: 10 / 13; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(36, 12, 18, .72));
  transition: opacity .6s;
}

.tile:hover img { transform: scale(1.06); }

.tile-info {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 2.4vw, 38px);
  right: clamp(20px, 2.4vw, 38px);
  bottom: clamp(20px, 2.4vw, 36px);
  color: var(--offwhite);
}

.tile-info small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--champagne-soft);
  margin-bottom: 10px;
}

.tile-info h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.15;
}

.tile:nth-child(1) .tile-info h3 { font-size: clamp(30px, 3.4vw, 50px); }

.tile-info span {
  display: inline-flex;
  gap: 10px;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .85;
  transition: gap .4s var(--ease);
}

.tile:hover .tile-info span { gap: 18px; }

/* ==========================================
   BOUTIQUE (fonctionnalités conservées)
========================================== */

.shop { background: var(--ivory); }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.shop-search {
  display: flex;
  align-items: center;
  width: 380px;
  max-width: 100%;
  border-bottom: 1px solid var(--bordeaux);
}

.shop-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 2px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.shop-search input::placeholder { color: #a0958d; }

.shop-search button {
  border: none;
  background: transparent;
  color: var(--bordeaux);
  padding: 10px 4px;
  font-size: 19px;
}

.shop-sort select {
  appearance: none;
  -webkit-appearance: none;
  padding: 14px 42px 14px 18px;
  border: 1px solid var(--line);
  background: var(--offwhite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235a1a2b'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bordeaux);
  outline: none;
  cursor: pointer;
}

.shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 30px 0 22px;
}

.category-filter {
  position: relative;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .3s;
}

.category-filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transition: transform .45s var(--ease);
}

.category-filter:hover,
.category-filter.active { color: var(--bordeaux); }

.category-filter.active::after,
.category-filter:hover::after { transform: scaleX(1); }

.shop-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 34px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(30px, 3vw, 46px) clamp(18px, 2.2vw, 34px);
}

.product-card { position: relative; }

.product-image {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #ece3d5;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.product-card:hover .product-image img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--offwhite);
  color: var(--bordeaux);
  padding: 7px 12px;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.product-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(251, 249, 245, .92);
  color: var(--bordeaux);
  font-size: 18px;
  transition: transform .3s var(--ease);
}

.product-favorite:hover { transform: scale(1.08); }

.product-details { padding: 22px 2px 0; text-align: center; }

.product-category {
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--champagne);
}

.product-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--bordeaux);
  margin: 12px 0 6px;
}

.product-author {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

.product-price {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
}

.product-actions { margin-top: 18px; }

.add-cart-btn {
  width: 100%;
  padding: 15px 10px;
  background: transparent;
  color: var(--bordeaux);
  border: 1px solid var(--bordeaux);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease);
}

.add-cart-btn:hover { background: var(--bordeaux); color: var(--offwhite); }

.empty-catalog {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(60px, 8vw, 110px) 25px;
  border: 1px solid var(--line);
  background: var(--offwhite);
  position: relative;
}

.empty-catalog::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(198, 168, 120, .35);
  pointer-events: none;
}

.empty-catalog .empty-icon {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--champagne);
  margin-bottom: 22px;
}

.empty-catalog h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bordeaux);
  font-size: clamp(26px, 2.6vw, 36px);
}

.empty-catalog p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  margin: 16px auto 0;
  line-height: 1.9;
  max-width: 440px;
}

/* ==========================================
   ÉDITORIAL
========================================== */

.editorial-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.editorial-visual {
  position: relative;
  padding: 0 clamp(40px, 6vw, 90px) clamp(60px, 7vw, 110px) 0;
}

.editorial-visual .main {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.editorial-visual .main img,
.editorial-visual .inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-visual .inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 10px solid var(--offwhite);
  box-shadow: 0 30px 60px -20px rgba(58, 15, 27, .25);
}

.editorial-content .title { margin: 24px 0 30px; }
.editorial-content .lead + .lead { margin-top: 18px; }

.editorial-sign {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.editorial-sign .line { width: 50px; height: 1px; background: var(--champagne); }

.editorial-sign p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bordeaux);
  font-size: 18px;
}

.pillars {
  margin-top: clamp(70px, 9vw, 130px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 40px clamp(10px, 3vw, 46px) 0 0;
}

.pillar + .pillar {
  padding-left: clamp(16px, 3vw, 46px);
  border-left: 1px solid var(--line);
}

.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--champagne);
  font-size: 15px;
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  color: var(--bordeaux);
  margin: 14px 0 12px;
}

.pillar p { color: var(--muted); font-size: 14px; line-height: 1.85; font-weight: 300; }

/* ==========================================
   NEWSLETTER
========================================== */

.newsletter {
  background: var(--ivory);
  text-align: center;
  position: relative;
}

.newsletter .wrap { max-width: 820px; }

.newsletter .title { margin: 24px 0 18px; }

.newsletter-form {
  display: flex;
  max-width: 520px;
  margin: 44px auto 0;
  border-bottom: 1px solid var(--bordeaux);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 18px 4px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.newsletter-form button {
  border: none;
  background: transparent;
  color: var(--bordeaux);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 0 4px 0 20px;
  transition: letter-spacing .4s var(--ease);
}

.newsletter-form button:hover { letter-spacing: .3em; }

.newsletter small {
  display: block;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================
   PIED DE PAGE
========================================== */

.footer {
  background: var(--bordeaux-deep);
  color: #cdbdb6;
  padding: clamp(70px, 8vw, 110px) 0 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(198, 168, 120, .2);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--offwhite);
  line-height: 1.15;
}

.footer-brand em { color: var(--champagne); }

.footer-tagline {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.9;
  max-width: 300px;
  font-weight: 300;
}

.footer h4 {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 26px;
}

.footer-links { display: flex; flex-direction: column; gap: 14px; }

.footer-links a,
.footer-links button {
  font-size: 14px;
  font-weight: 300;
  color: #cdbdb6;
  background: none;
  border: none;
  text-align: left;
  transition: color .3s;
}

.footer-links a:hover,
.footer-links button:hover { color: var(--champagne-soft); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 11px;
  letter-spacing: .08em;
  color: #9f8a85;
}

/* ==========================================
   ANIMATIONS D'APPARITION
   (actives seulement si JavaScript tourne)
========================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.js .reveal.visible { opacity: 1; transform: none; }

.js .reveal.delay-1 { transition-delay: .12s; }
.js .reveal.delay-2 { transition-delay: .24s; }
.js .reveal.delay-3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-photo img { transform: none; }
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .nav-left { display: none; }
  .nav-right .hide-tablet { display: none; }
  .brand { text-align: left; }
  .menu-toggle { display: block; order: -1; }

  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--offwhite);
    border-bottom: 1px solid var(--line);
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s var(--ease), padding .5s var(--ease);
  }

  .mobile-nav.open { max-height: 480px; padding-top: 18px; padding-bottom: 30px; }

  .mobile-nav a,
  .mobile-nav button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    font-family: var(--serif);
    font-size: 22px;
    color: var(--bordeaux);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 40px;
  }

  .hero-text { padding-bottom: 0; }
  .hero .lead { max-width: 520px; }
  .hero-photo { height: 78vh; min-height: 460px; max-height: 760px; }
  .hero-vertical, .scroll-cue { display: none; }

  .arrivals-empty { grid-template-columns: 1fr; }
  .cover-stage { padding-bottom: 80px; }

  .author::before { width: 100%; height: 34%; top: auto; bottom: 0; }
  .author-inner { grid-template-columns: 1fr; gap: 80px; }
  .author-photo { margin-right: 34px; }
  .author-photo .frame { height: 70vh; max-height: 640px; }

  .mosaic { grid-auto-rows: clamp(200px, 32vw, 300px); }
  .tile:nth-child(1) { grid-column: 1 / 13; grid-row: span 2; }
  .tile:nth-child(2) { grid-column: 1 / 13; }
  .tile:nth-child(3) { grid-column: 1 / 7; }
  .tile:nth-child(4) { grid-column: 7 / 13; }

  .editorial-inner { grid-template-columns: 1fr; }
  .editorial-visual { order: 2; }
}

@media (max-width: 680px) {
  .topbar { font-size: 8.5px; letter-spacing: .22em; }
  .header-inner { padding-top: 16px; padding-bottom: 16px; }
  .brand-name { font-size: 17px; white-space: nowrap; }
  .nav a.cart-link { font-size: 10.5px; letter-spacing: .1em; }
  .brand-sub { font-size: 7.5px; letter-spacing: .3em; white-space: nowrap; }
  .nav-right { gap: 16px; }
  .nav-right .search-trigger { display: none; } /* reste disponible dans le menu */

  .hero h1 { font-size: clamp(44px, 12vw, 60px); }
  .hero-visual { padding: 0 0 26px 26px; }
  .hero-photo { height: 66vh; min-height: 400px; }
  .hero-caption { bottom: 60px; padding: 18px 22px; max-width: 220px; }
  .hero-caption p { font-size: 17px; }

  .section-head { grid-template-columns: 1fr; }

  .cover-frame:nth-child(1) { transform: translateY(24px); }
  .cover-frame:nth-child(3) { transform: translateY(48px); }
  .cover-stage { padding-bottom: 50px; }

  .author-photo::after { top: 20px; left: 20px; right: -20px; bottom: -20px; }
  .author-photo { margin-right: 20px; }
  .author-photo .frame { height: 60vh; min-height: 400px; }

  .mosaic { grid-auto-rows: 230px; }
  .tile:nth-child(1) { grid-row: span 1; }
  .tile:nth-child(3),
  .tile:nth-child(4) { grid-column: 1 / 13; }

  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-search { width: 100%; }
  .shop-sort select { width: 100%; }
  .shop-categories { gap: 4px 20px; }

  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
  .product-title { font-size: 17px; }
  .add-cart-btn { letter-spacing: .14em; }

  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { padding-left: 0; border-left: none; border-top: 1px solid var(--line); margin-top: 34px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}

/* ==========================================
   NAVIGATION : lien de la page en cours
========================================== */

.nav a[aria-current="page"] { color: var(--bordeaux); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-nav a[aria-current="page"] { color: var(--champagne); }

@media (max-width: 1280px) {
  .nav { gap: 20px; }
  .nav a, .nav button { font-size: 10.5px; letter-spacing: .12em; }
}

/* ==========================================
   PAGE « L'AUTEUR À L'HONNEUR » (auteur.html)
========================================== */

/* Hero : réutilise .hero de l'accueil, avec quelques nuances */
.author-hero h1 { font-size: clamp(46px, 5.6vw, 92px); }

.author-hero .hero-photo img { object-position: 50% 30%; }

/* L'auteur à l'honneur */
.feature { background: var(--ivory); position: relative; overflow: hidden; }

.feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.feature-portrait { position: relative; }

.feature-portrait .frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ece3d5;
}

.feature-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale(1) contrast(1.05);
  transition: transform 1.6s var(--ease), filter 1.2s var(--ease);
}

.feature-portrait:hover img { transform: scale(1.03); }

.feature-portrait::after {
  content: "";
  position: absolute;
  top: -28px;
  left: -28px;
  width: 58%;
  height: 52%;
  border: 1px solid var(--champagne);
  opacity: .75;
}

.feature-initial {
  position: absolute;
  z-index: 2;
  right: -0.08em;
  bottom: -0.32em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(140px, 17vw, 260px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--champagne);
  pointer-events: none;
  user-select: none;
}

.feature-tag {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 0;
  background: var(--bordeaux);
  color: var(--champagne-soft);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 12px 18px;
}

.feature-content { padding-top: clamp(10px, 4vw, 70px); }

.feature-name {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bordeaux);
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 26px 0 18px;
}

.feature-name em { font-style: italic; color: var(--champagne); }

.feature-origin {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.feature-intro {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 26px;
}

.feature-bio .lead + .lead { margin-top: 18px; }

.feature-quote {
  position: relative;
  margin: 50px 0 50px;
  padding: 34px 0 0 0;
  border-top: 1px solid var(--champagne);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.4;
  color: var(--bordeaux);
}

.feature-quote::before {
  content: "“";
  position: absolute;
  top: -30px;
  left: 0;
  background: var(--ivory);
  padding-right: 16px;
  font-size: 64px;
  line-height: 1;
  color: var(--champagne);
}

.feature-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Ses œuvres */
.works { background: var(--offwhite); }

/* D'autres voix */
.voices { background: var(--ivory); }

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 50px);
}

.voice-card:nth-child(3n+2) { margin-top: clamp(30px, 5vw, 80px); }

.voice-portrait {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #ece3d5;
  margin-bottom: 26px;
}

.voice-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}

.voice-card:hover .voice-portrait img { transform: scale(1.04); filter: grayscale(0); }

.voice-origin {
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--champagne);
}

.voice-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  color: var(--bordeaux);
  margin: 12px 0 12px;
}

.voice-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 22px;
}

/* États « bientôt » (aucun faux contenu) */
.soon {
  position: relative;
  text-align: center;
  padding: clamp(60px, 8vw, 110px) 25px;
  border: 1px solid var(--line);
  background: var(--offwhite);
}

.soon::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(198, 168, 120, .35);
  pointer-events: none;
}

.soon .ornament {
  font-family: var(--serif);
  color: var(--champagne);
  font-size: 22px;
  margin-bottom: 22px;
}

.soon h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bordeaux);
  font-size: clamp(26px, 2.6vw, 36px);
}

.soon p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  margin: 16px auto 32px;
  line-height: 1.9;
  max-width: 460px;
}

.feature.is-soon .feature-portrait img { filter: grayscale(.3) sepia(.15); }

@media (max-width: 960px) {
  .feature-inner { grid-template-columns: 1fr; gap: 60px; }
  .feature-portrait { margin: 0 0 0 28px; }
  .feature-content { padding-top: 0; }
  .voices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-card:nth-child(3n+2) { margin-top: 0; }
  .voice-card:nth-child(2n) { margin-top: clamp(30px, 6vw, 60px); }
}

@media (max-width: 680px) {
  .feature-portrait { margin-left: 18px; }
  .feature-portrait::after { top: -18px; left: -18px; }
  .voices-grid { grid-template-columns: 1fr; }
  .voice-card:nth-child(2n) { margin-top: 0; }
}

/* ==========================================
   EN-TÊTE EN DEUX RANGÉES (ordinateur)
   Logo centré en haut, navigation centrée en dessous
========================================== */

@media (min-width: 961px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      ". brand actions"
      "nav nav nav";
    row-gap: 0;
  }

  .brand { grid-area: brand; }
  .nav-right { grid-area: actions; }

  .nav-left {
    grid-area: nav;
    justify-content: center;
    gap: clamp(26px, 3.2vw, 50px);
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    transition: margin .4s var(--ease), padding .4s var(--ease);
  }

  .header.scrolled .nav-left { margin-top: 12px; padding-top: 10px; }

  .nav a, .nav button { white-space: nowrap; }

  section[id] { scroll-margin-top: 150px; }
}

/* Auteur sans portrait : initiale dorée à la place de la photo */
.voice-portrait { display: flex; align-items: center; justify-content: center; }

.voice-initial {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(90px, 9vw, 140px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--champagne);
}

/* Portrait réel de l'auteur à l'honneur : gardé en couleur
   (lumière dorée en accord avec la palette bordeaux / champagne).
   Les emplacements « bientôt » restent atténués. */
.feature:not(.is-soon) .feature-portrait img { filter: none; }

/* Léger recadrage : masque la fine bande sombre en haut de certaines photos */
.feature:not(.is-soon) .feature-portrait img { transform: scale(1.04); transform-origin: 50% 100%; }
.feature:not(.is-soon) .feature-portrait:hover img { transform: scale(1.07); }

/* ==========================================
   PORTRAITS DE TSHIAMA NAMBOMBE
   Gardés en couleur (lumière dorée en accord avec la palette),
   légèrement recadrés pour masquer la bande sombre en haut de la photo.
========================================== */

.hero-photo img {
  filter: none;
  transform-origin: 50% 100%;
  object-position: 50% 20%;
  animation: heroZoomPortrait 2.6s var(--ease) forwards;
}

@keyframes heroZoomPortrait {
  from { transform: scale(1.1); }
  to { transform: scale(1.04); }
}

.author-photo img {
  filter: none;
  transform: scale(1.04);
  transform-origin: 50% 100%;
}

.author-photo:hover img { transform: scale(1.07); }

.author-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  color: var(--champagne);
  margin: -8px 0 22px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { transform: scale(1.04); }
}

/* ==========================================
   HERO TYPOGRAPHIQUE (accueil, sans photo)
   Grand titre à gauche, texte et boutons en bas à droite
========================================== */

.hero-type {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: end;
  min-height: min(78vh, 820px);
  padding-top: clamp(60px, 9vw, 140px);
  padding-bottom: clamp(70px, 9vw, 130px);
  overflow: hidden;
}

/* Grande esperluette dorée en filigrane */
.hero-type::before {
  content: "&";
  position: absolute;
  z-index: 0;
  right: 4%;
  top: 50%;
  transform: translateY(-58%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(260px, 34vw, 560px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--champagne);
  opacity: .32;
  pointer-events: none;
}

.hero-type .hero-title,
.hero-type .hero-aside { position: relative; z-index: 1; }

.hero-type h1 {
  font-size: clamp(56px, 8.4vw, 150px);
  line-height: .98;
  margin-bottom: 0;
}

.hero-type h1 em { padding-left: clamp(0px, 6vw, 120px); }

.hero-type .hero-aside {
  padding-top: 30px;
  border-top: 1px solid var(--champagne);
  margin-bottom: 14px;
}

.hero-type .hero-aside .lead { max-width: 360px; margin-bottom: 36px; }

.hero-type .hero-actions { gap: 26px 32px; }

.hero-type .hero-vertical {
  left: auto;
  right: calc(var(--gutter) * .4);
  transform: translate(50%, -50%) rotate(90deg);
}

@media (max-width: 960px) {
  .hero-type {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 50px;
  }
  .hero-type .hero-aside { max-width: 480px; }
  .hero-type::before { right: -6%; top: 34%; opacity: .25; }
}

@media (max-width: 680px) {
  .hero-type h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-type h1 em { padding-left: 0; }
}

/* Les éléments masqués par le script restent bien masqués */
[hidden] { display: none !important; }

.empty-catalog .btn { margin-top: 32px; }

/* ==========================================
   MESSAGE DISCRET (ajout au panier, inscription)
========================================== */

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 460px);
  background: var(--bordeaux-deep);
  color: var(--champagne-soft);
  border: 1px solid rgba(198, 168, 120, .4);
  padding: 18px 28px;
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 20px 50px rgba(36, 12, 18, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================
   PAGE « INFORMATIONS PRATIQUES » (informations.html)
========================================== */

.info-hero {
  background: var(--ivory);
  padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}

.info-hero .title { font-size: clamp(44px, 6vw, 90px); margin: 26px 0 24px; }
.info-hero .lead { max-width: 520px; }

.info-section { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 150px); }

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.info-index {
  position: sticky;
  top: 170px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-index-title {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 16px;
}

.info-index a {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 14px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}

.info-index a:hover,
.info-index a.active { color: var(--bordeaux); border-left-color: var(--champagne); }

.info-block {
  padding: 0 0 clamp(50px, 6vw, 80px);
  margin-bottom: clamp(50px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}

.info-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.info-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--champagne);
  margin-bottom: 10px;
}

.info-block h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 44px);
  color: var(--bordeaux);
  margin-bottom: 22px;
}

.info-block > .lead { max-width: 620px; margin-bottom: 30px; }

.info-text h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  margin: 28px 0 10px;
}

.info-text h3:first-child { margin-top: 0; }

.info-text p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  max-width: 680px;
}

.info-list { display: grid; gap: 0; max-width: 680px; margin-bottom: 30px; }

.info-list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.info-list > div:last-child { border-bottom: 1px solid var(--line); }

.info-list dt {
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--champagne);
  padding-top: 4px;
}

.info-list dd { font-size: 15px; color: var(--ink); line-height: 1.7; }
.info-list dd a { color: var(--bordeaux); border-bottom: 1px solid var(--champagne); }

.info-soon {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--bordeaux-soft);
  padding: 18px 24px;
  background: var(--ivory);
  border-left: 1px solid var(--champagne);
  max-width: 680px;
  margin-bottom: 30px;
}

@media (max-width: 960px) {
  .info-layout { grid-template-columns: 1fr; }
  .info-index {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .info-index-title { width: 100%; margin-bottom: 4px; }
  .info-index a { border-left: none; padding: 6px 0; font-size: 13px; }
}

@media (max-width: 680px) {
  .info-list > div { grid-template-columns: 1fr; gap: 6px; }
}

/* Laisse assez de place pour que la dernière rubrique s'affiche sous l'en-tête */
.info-content { padding-bottom: 12vh; }

/* ==========================================
   PAGE AUTEUR — ÉTAPE 3
========================================== */

/* Hero : nom de l'auteur en très grand */
.author-hero .kicker { margin-bottom: 34px; }

.author-hero-name {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bordeaux);
  font-size: clamp(52px, 6.6vw, 112px);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}

.author-hero-name em {
  display: block;
  font-style: italic;
  color: var(--champagne);
  padding-left: clamp(0px, 3vw, 54px);
}

.author-hero-origin {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.author-hero .lead { max-width: 430px; margin-bottom: 44px; }

/* Biographie */
.bio { background: var(--ivory); }

.bio-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.bio-photo { position: sticky; top: 170px; }

.bio-photo .frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ece3d5;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.bio-photo:hover img { transform: scale(1.03); }
.bio-photo.is-ambiance img { filter: sepia(.18) saturate(.85); }

.bio-photo::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -28px;
  width: 62%;
  height: 70%;
  border: 1px solid var(--champagne);
  opacity: .7;
}

.bio-initial {
  position: absolute;
  z-index: 2;
  right: -.12em;
  bottom: -.34em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(130px, 14vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--champagne);
  pointer-events: none;
}

.bio-content .title { margin: 24px 0 44px; }

.bio-part { padding: 34px 0; border-top: 1px solid var(--line); }
.bio-part:last-child { border-bottom: 1px solid var(--line); }

.bio-part-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
}

.bio-part-head span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--champagne);
  font-size: 16px;
}

.bio-part-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--bordeaux);
}

.bio-part .lead + .lead { margin-top: 16px; }

/* Citation */
.quote-band {
  position: relative;
  background: var(--bordeaux);
  color: var(--offwhite);
  text-align: center;
  padding: clamp(90px, 12vw, 170px) 0;
  overflow: hidden;
}

.quote-band::before,
.quote-band::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: clamp(40px, 6vw, 80px);
  background: var(--champagne);
  opacity: .6;
}

.quote-band::before { top: 0; }
.quote-band::after { bottom: 0; }

.quote-band .wrap { max-width: 1080px; }

.quote-mark {
  font-family: var(--serif);
  font-size: clamp(90px, 10vw, 150px);
  line-height: .6;
  color: var(--champagne);
  margin-bottom: 20px;
}

.quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.3;
  color: var(--offwhite);
}

.quote-cite {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--champagne-soft);
}

/* Cartes livres : « Voir le livre » + « Ajouter au panier » */
.product-title a { transition: color .3s; }
.product-title a:hover { color: var(--bordeaux-soft); }

.product-cover-link { display: block; width: 100%; height: 100%; }

.product-actions.two { display: grid; gap: 8px; }

.view-book-btn {
  display: block;
  text-align: center;
  padding: 14px 10px;
  background: var(--bordeaux);
  color: var(--offwhite);
  border: 1px solid var(--bordeaux);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background .4s var(--ease);
}

.view-book-btn:hover { background: var(--bordeaux-deep); }

/* ==========================================
   PAGE LIVRE (livre.html)
========================================== */

.book-page { padding: clamp(40px, 5vw, 70px) 0 clamp(80px, 10vw, 140px); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: clamp(36px, 5vw, 70px);
}

.breadcrumb a:hover { color: var(--bordeaux); }
.breadcrumb [aria-current] { color: var(--bordeaux); }

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: start;
}

.book-cover { position: relative; }

.book-cover::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  right: -30px;
  bottom: -30px;
  border: 1px solid var(--champagne);
  opacity: .6;
}

.book-cover .frame {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #ece3d5;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(36, 12, 18, .35);
}

.book-cover img { width: 100%; height: 100%; object-fit: cover; }

.book-cover-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--bordeaux);
}

.book-info { padding-top: 10px; }

.book-title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bordeaux);
  font-size: clamp(38px, 4.6vw, 70px);
  line-height: 1.05;
  margin: 24px 0 16px;
}

.book-author {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--champagne);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

.book-author:hover { border-bottom-color: var(--champagne); }

.book-price {
  margin: 34px 0 30px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
}

.book-description { margin-bottom: 40px; max-width: 560px; }

.book-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 44px;
}

.book-fav {
  background: none;
  border: none;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--bordeaux);
}

.book-details { margin-bottom: 40px; }

.book-missing { padding: clamp(40px, 6vw, 80px) var(--gutter); }

@media (max-width: 960px) {
  .bio-inner { grid-template-columns: 1fr; gap: 70px; }
  .bio-photo { position: relative; top: 0; margin-left: 28px; max-width: 560px; }
  .book-layout { grid-template-columns: 1fr; }
  .book-cover { max-width: 420px; margin-right: 30px; }
}

@media (max-width: 680px) {
  .bio-photo { margin-left: 18px; }
  .bio-photo::before { left: -18px; top: 18px; }
  .quote-text { font-size: clamp(26px, 7vw, 36px); }
}

/* ==========================================
   PAGE AUTEUR : PORTRAIT À CÔTÉ DU NOM
   Sur ordinateur, le portrait est déjà à droite du texte.
   Sur tablette et téléphone, il reste à côté du nom au lieu
   de passer en dessous.
========================================== */

@media (max-width: 960px) {
  .author-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "kicker  photo"
      "name    photo"
      "origin  photo"
      "intro   photo"
      "actions photo";
    column-gap: clamp(22px, 4vw, 40px);
    row-gap: 0;
    align-items: start;
  }

  .author-hero .hero-text { display: contents; }

  .author-hero .kicker { grid-area: kicker; align-self: end; }
  .author-hero .author-hero-name { grid-area: name; }
  .author-hero .author-hero-origin { grid-area: origin; justify-self: start; }
  .author-hero .lead { grid-area: intro; }
  .author-hero .hero-actions { grid-area: actions; }

  .author-hero .hero-visual {
    grid-area: photo;
    align-self: center;
    padding: 0 0 22px 22px;
  }

  .author-hero .hero-photo {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 680px) {
  .author-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-areas:
      "kicker  kicker"
      "name    photo"
      "origin  origin"
      "intro   intro"
      "actions actions";
    column-gap: 18px;
  }

  .author-hero .kicker { margin-bottom: 26px; }

  .author-hero .author-hero-name {
    font-size: clamp(36px, 10.5vw, 52px);
    align-self: center;
    margin-bottom: 0;
  }

  .author-hero .author-hero-name em { padding-left: 0; }

  .author-hero .hero-visual { padding: 0 0 14px 14px; align-self: start; }

  .author-hero .author-hero-origin,
  .author-hero .lead { margin-top: 30px; }

  .author-hero .author-hero-origin + .lead { margin-top: 0; }
}

/* ==========================================
   FICHE LIVRE — ÉTAPE 4
========================================== */

.btn:disabled,
.btn-outline:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btn:disabled:hover { background: var(--bordeaux); border-color: var(--bordeaux); }

.breadcrumb span { color: var(--champagne); }

/* Galerie */
.book-gallery { position: sticky; top: 170px; }

.book-cover .frame img { transition: transform 1.2s var(--ease), opacity .35s; }
.book-cover:hover .frame img { transform: scale(1.025); }

.book-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.book-thumb {
  width: 72px;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 1px solid var(--line);
  background: #ece3d5;
  overflow: hidden;
  opacity: .6;
  transition: opacity .3s, border-color .3s;
}

.book-thumb img { width: 100%; height: 100%; object-fit: cover; }
.book-thumb:hover, .book-thumb.active { opacity: 1; border-color: var(--champagne); }

/* Prix et disponibilité */
.book-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 32px 0 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.book-price-row .book-price { margin: 0; font-size: 26px; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.availability span { width: 7px; height: 7px; border-radius: 50%; }
.availability.in { color: #4d6b4f; }
.availability.in span { background: #6f9471; }
.availability.low { color: #8a6a2f; }
.availability.low span { background: var(--champagne); }
.availability.out { color: var(--bordeaux-soft); }
.availability.out span { background: var(--bordeaux-soft); }

/* Description (colonne de droite) */
.book-description p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  max-width: 560px;
}

.book-description p + p { margin-top: 14px; }
.book-description { margin-bottom: 36px; }

/* Quantité + ajout */
.book-purchase {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.qty-btn {
  width: 48px;
  height: 56px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--bordeaux);
  transition: background .3s;
}

.qty-btn:hover:not(:disabled) { background: var(--ivory); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }

.qty input {
  width: 52px;
  height: 56px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.book-add { flex: 1; justify-content: center; min-width: 220px; }

.book-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-bottom: 40px;
}

.btn-outline {
  flex: 1;
  min-width: 220px;
  padding: 18px 30px;
  background: transparent;
  color: var(--bordeaux);
  border: 1px solid var(--bordeaux);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease);
}

.btn-outline:hover:not(:disabled) { background: var(--bordeaux); color: var(--offwhite); }

/* Réassurance */
.reassurance {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.reassurance li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 18px;
  background: var(--offwhite);
}

.r-icon { color: var(--champagne); font-size: 15px; line-height: 1.4; }

.reassurance strong {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 6px;
}

.reassurance a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  transition: color .3s;
}

.reassurance a:hover { color: var(--bordeaux); }

/* Onglets */
.book-tabs { margin-top: clamp(80px, 10vw, 140px); }

.tab-list {
  display: flex;
  gap: clamp(22px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar { display: none; }

.tab-list [role="tab"] {
  position: relative;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 24px);
  color: var(--muted);
  transition: color .3s;
}

.tab-list [role="tab"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--bordeaux);
  transform: scaleX(0);
  transition: transform .45s var(--ease);
}

.tab-list [role="tab"][aria-selected="true"] { color: var(--bordeaux); }
.tab-list [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }

.tab-panel { padding-top: 46px; animation: tabIn .5s var(--ease); }

@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tab-text { max-width: 760px; }

.tab-text p {
  color: var(--ink);
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
}

.tab-text p + p { margin-top: 18px; }

.tab-text p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 64px;
  line-height: .9;
  padding: 6px 12px 0 0;
  color: var(--bordeaux);
}

.tab-author {
  display: flex;
  gap: clamp(24px, 4vw, 50px);
  align-items: flex-start;
  max-width: 820px;
}

.tab-author img {
  width: clamp(110px, 14vw, 170px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  flex-shrink: 0;
}

.tab-author h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  color: var(--bordeaux);
  margin-bottom: 8px;
}

.tab-author-origin {
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 16px;
}

.tab-author p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  margin: 12px 0 24px;
}

/* ==========================================
   PANIER (panier.html)
========================================== */

.cart-section { padding-top: clamp(50px, 6vw, 90px); }

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.cart-items { border-top: 1px solid var(--line); }
.cart-items > .link-line { display: inline-block; margin-top: 34px; }

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item.is-missing { grid-template-columns: minmax(0, 1fr) auto; opacity: .7; }

.cart-cover {
  display: block;
  aspect-ratio: 2 / 3;
  background: #ece3d5;
  overflow: hidden;
}

.cart-cover img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  color: var(--bordeaux);
  margin: 8px 0 4px;
}

.cart-unit { margin-top: 10px; font-size: 13px; color: var(--muted); }

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.qty-small .qty-btn { width: 38px; height: 40px; font-size: 16px; }

.qty-small span {
  min-width: 38px;
  text-align: center;
  font-size: 14px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 40px;
}

.cart-line-total { font-size: 16px; font-weight: 500; color: var(--ink); }

.cart-remove {
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}

.cart-remove:hover { color: var(--bordeaux); border-bottom-color: var(--champagne); }

.cart-summary {
  position: sticky;
  top: 170px;
  background: var(--ivory);
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
}

.cart-summary h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--bordeaux);
  margin-bottom: 24px;
}

.cart-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-summary dt { color: var(--muted); }
.cart-summary dd { text-align: right; color: var(--ink); }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 24px 0 28px;
}

.cart-total span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cart-total strong { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--bordeaux); }

.cart-checkout { width: 100%; justify-content: center; }

.cart-note { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }

.cart-reassure { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.cart-reassure a { font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.cart-reassure a:hover { color: var(--bordeaux); border-bottom-color: var(--champagne); }

/* Responsive fiche livre et panier */
@media (max-width: 960px) {
  .book-gallery { position: relative; top: 0; }
  .reassurance { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 680px) {
  .book-add, .btn-outline { min-width: 0; width: 100%; }
  .book-purchase .qty { width: 100%; justify-content: space-between; }
  .book-purchase .qty input { flex: 1; }
  .tab-author { flex-direction: column; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Mobile : « Acheter maintenant » en pleine largeur */
@media (max-width: 680px) {
  .book-secondary .btn-outline { flex: 1 1 100%; }
}

/* ==========================================
   PANIER — ÉTAPE 5
========================================== */

.info-hero .lead { margin-top: -6px; }

/* En-tête de la liste */
.cart-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 150px 120px;
  gap: 26px;
  padding: 0 0 16px;
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--champagne);
}

.cart-head span:first-child { grid-column: 1 / 3; }
.cart-head span:last-child { text-align: right; }

.cart-items { border-top: none; }

/* Ligne d'article : couverture | infos | quantité | total */
.cart-item {
  grid-template-columns: 96px minmax(0, 1fr) 150px 120px;
  border-top: 1px solid var(--line);
  border-bottom: none;
  transition: background .3s;
}

.cart-item:last-of-type { border-bottom: 1px solid var(--line); }
.cart-item.is-missing { grid-template-columns: 96px minmax(0, 1fr) 150px 120px; opacity: .75; }
.cart-item.is-soldout .cart-cover,
.cart-item.is-soldout .cart-item-info h3 { opacity: .55; }

.cart-cover { box-shadow: 0 14px 30px -18px rgba(36, 12, 18, .4); transition: transform .5s var(--ease); }
.cart-cover:hover { transform: translateY(-3px); }

.cart-unit span { color: var(--muted); }

.cart-item-qty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cart-line-total {
  text-align: right;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.cart-stock {
  margin-top: 10px;
  font-size: 12px;
  color: #8a6a2f;
}

.cart-stock.out { color: var(--bordeaux-soft); }

.qty-small .qty-btn:disabled { opacity: .3; cursor: not-allowed; }

.cart-continue { margin-top: 36px; }

.cart-continue-btn {
  display: inline-block;
  flex: none;
  min-width: 0;
  text-align: center;
}

.cart-free-hint {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--bordeaux);
  background: var(--offwhite);
  border-left: 1px solid var(--champagne);
}

/* Panier vide */
.cart-empty {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px) 0 clamp(20px, 4vw, 40px);
}

.cart-empty-art {
  width: clamp(170px, 22vw, 240px);
  height: auto;
  color: var(--champagne);
  margin: 0 auto 36px;
  display: block;
  animation: cartFloat 6s ease-in-out infinite;
}

@keyframes cartFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.cart-empty h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.2;
  color: var(--bordeaux);
}

.cart-empty p {
  margin: 18px auto 36px;
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
}

@media (max-width: 960px) {
  .cart-head,
  .cart-item,
  .cart-item.is-missing { grid-template-columns: 84px minmax(0, 1fr) 130px 100px; gap: 18px; }
}

@media (max-width: 680px) {
  .cart-head { display: none; }

  .cart-item,
  .cart-item.is-missing {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "cover info"
      "qty   total";
    gap: 16px 18px;
    align-items: start;
  }

  .cart-cover { grid-area: cover; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; flex-direction: row; gap: 16px; }
  .cart-line-total { grid-area: total; align-self: center; }

  .cart-continue-btn { width: 100%; }
}

/* Badge « aperçu local » (brouillon de l'espace administrateur) */
.local-preview-badge {
  position: fixed;
  z-index: 300;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  background: var(--bordeaux-deep);
  color: var(--champagne-soft);
  border: 1px solid rgba(184, 154, 105, .5);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(36, 12, 18, .25);
}

.local-preview-badge:hover { color: #fff; }
/* ==========================================
   TUNNEL DE COMMANDE (commande.html)
========================================== */

.checkout-hero {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 5vw, 70px) 0 clamp(30px, 4vw, 50px);
}

.checkout-back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 18px;
  transition: color .3s;
}

.checkout-back:hover { color: var(--bordeaux); }

.checkout-hero .title { font-size: clamp(36px, 4.6vw, 64px); margin-bottom: 34px; }

.checkout-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  counter-reset: none;
}

.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-steps li + li::before {
  content: "";
  width: clamp(20px, 4vw, 56px);
  height: 1px;
  background: var(--line);
  margin: 0 14px;
}

.checkout-steps li span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0;
  background: var(--offwhite);
  transition: background .3s, color .3s, border-color .3s;
}

.checkout-steps li.current { color: var(--bordeaux); }
.checkout-steps li.current span { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--offwhite); }
.checkout-steps li.done { color: var(--ink); }
.checkout-steps li.done span { border-color: var(--champagne); color: var(--champagne); }
.checkout-steps li.done + li::before { background: var(--champagne); }

.checkout-section { padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 9vw, 130px); }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

/* Étapes */
.co-steps { display: grid; gap: 14px; }

.co-step {
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}

.co-step.is-open {
  border-color: var(--champagne);
  box-shadow: 0 24px 50px -36px rgba(36, 12, 18, .35);
}

.co-step.is-todo { background: transparent; }
.co-step.is-todo .co-step-head h2 { color: var(--muted); }

.co-step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(18px, 3vw, 32px);
}

.co-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 15px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.co-step.is-open .co-step-num { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--offwhite); }
.co-step.is-done .co-step-num { background: var(--champagne); border-color: var(--champagne); color: #fff; font-size: 13px; }

.co-step-head h2 {
  flex: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--bordeaux);
}

.co-step-summary {
  padding: 0 clamp(18px, 3vw, 32px) 22px calc(clamp(18px, 3vw, 32px) + 48px);
  margin-top: -8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.co-step-body {
  padding: 4px clamp(18px, 3vw, 32px) clamp(24px, 3vw, 32px);
  animation: tabIn .45s var(--ease);
}

/* Formulaire */
.co-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.co-field {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.co-field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: #a69b93; }

.co-field input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: var(--offwhite);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.co-field input:focus {
  border-color: var(--champagne);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 154, 105, .16);
}

.co-actions { display: flex; justify-content: flex-end; margin-top: 6px; }

.co-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.co-sub[hidden] { display: none; }

/* Choix (livraison, paiement) en cartes */
.co-choices { display: grid; gap: 10px; }

.co-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--offwhite);
  cursor: pointer;
  transition: border-color .25s, background .25s;
}

.co-choice:hover { border-color: var(--champagne-soft); }

.co-choice input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}

.co-choice input::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bordeaux);
  transform: scale(0);
  transition: transform .2s var(--ease);
}

.co-choice input:checked { border-color: var(--bordeaux); }
.co-choice input:checked::after { transform: scale(1); }
.co-choice:has(input:checked) { border-color: var(--bordeaux); background: #fff; }
.co-choice input:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }

.co-choice-body { flex: 1; display: grid; gap: 4px; }
.co-choice-body strong { font-size: 15px; font-weight: 500; color: var(--ink); }
.co-choice-body small { font-size: 13px; color: var(--muted); line-height: 1.5; }

.co-choice-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--bordeaux);
  white-space: nowrap;
}

.co-pay-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: var(--champagne);
}


/* Points de retrait */
.co-points { display: grid; gap: 8px; grid-column: 1 / -1; }

.co-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  transition: border-color .25s;
}

.co-point:has(input:checked) { border-color: var(--champagne); background: var(--ivory); }
.co-point input { margin-top: 5px; accent-color: var(--bordeaux); }
.co-point strong { display: block; color: var(--ink); font-weight: 500; }
.co-point small { display: block; font-size: 12px; color: var(--champagne); margin-top: 2px; }

.co-cgv {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  cursor: pointer;
}

.co-cgv input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--bordeaux); flex-shrink: 0; }
.co-cgv a { color: var(--bordeaux); border-bottom: 1px solid var(--champagne); }

.co-confirm { width: 100%; justify-content: center; }

/* Récapitulatif */
.checkout-summary { background: var(--ivory); }

.co-items { list-style: none; margin-bottom: 18px; }

.co-items li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.co-item-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #ece3d5;
}

.co-item-cover img { width: 100%; height: 100%; object-fit: cover; }

.co-item-cover span {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--bordeaux);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.co-item-info strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  color: var(--bordeaux);
  line-height: 1.3;
}

.co-item-info small { font-size: 12px; color: var(--muted); }
.co-item-total { font-size: 14px; color: var(--ink); white-space: nowrap; }

/* Confirmation */
.co-done {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.co-done-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid var(--champagne);
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--champagne);
  animation: tabIn .6s var(--ease);
}

.co-done h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  color: var(--bordeaux);
  margin: 20px 0 14px;
}

.co-done > .lead { margin: 0 auto 40px; }

.co-last-step {
  margin: 0 auto 36px;
  padding: 26px;
  background: var(--bordeaux);
  color: var(--offwhite);
  text-align: center;
}

.co-last-step strong { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.co-last-step p { margin: 8px 0 20px; color: var(--champagne-soft); font-size: 14px; }

.co-send-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.co-last-step .btn { background: var(--offwhite); color: var(--bordeaux); border-color: var(--offwhite); }
.co-last-step .btn:hover { background: var(--champagne-soft); border-color: var(--champagne-soft); }
.co-last-step .btn-outline { flex: none; min-width: 0; color: var(--offwhite); border-color: rgba(255, 253, 250, .6); }

.co-send { margin-bottom: 30px; }
.co-last-step .co-send { margin-bottom: 0; }

.co-done-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
  margin-bottom: 26px;
}

.co-done-box {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.co-done-box h3 {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 12px;
}

.co-done-box p { font-size: 15px; line-height: 1.8; color: var(--ink); }
.co-done-box strong { color: var(--bordeaux); font-weight: 500; }

.co-done-recap {
  text-align: left;
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 18px 24px;
  margin-bottom: 34px;
}

.co-done-recap > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.co-done-recap .co-done-total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px;
  font-size: 16px;
  color: var(--bordeaux);
  font-weight: 500;
}

@media (max-width: 960px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
}

@media (max-width: 680px) {
  .checkout-steps li { font-size: 0; letter-spacing: 0; }
  .checkout-steps li.current { font-size: 10px; letter-spacing: .14em; }
  .checkout-steps li + li::before { margin: 0 8px; }
  .co-form, .co-sub { grid-template-columns: 1fr; }
  .co-step-summary { padding-left: clamp(18px, 3vw, 32px); }
  .co-choice { padding: 16px; gap: 12px; }
  .co-done-grid { grid-template-columns: 1fr; }
}

/* Lien-bouton discret (« Modifier », etc.) */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--bordeaux);
  border-bottom: 1px solid var(--champagne);
  cursor: pointer;
  transition: color .3s;
}

.link-btn:hover { color: var(--bordeaux-soft); }
/* Pleine largeur dans les formulaires de commande */
.co-form .span-2, .co-sub .span-2 { grid-column: 1 / -1; }

/* Messages d'erreur des formulaires */
.form-error { color: var(--bordeaux-soft); font-size: 13px; line-height: 1.6; }
.form-error:empty { display: none; }

/* Mobile : indicateur d'étapes sur une ligne, récapitulatif après le formulaire */
@media (max-width: 960px) {
  .checkout-summary { order: 0; }
}

@media (max-width: 680px) {
  .checkout-steps { flex-wrap: nowrap; }
  .checkout-steps li + li::before { width: 16px; margin: 0 6px; }
  .checkout-steps li.current { white-space: nowrap; }
}
/* ==========================================
   PAIEMENT PAR CARTE (paiement.html)
========================================== */

.card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 4px;
}

.card-brands span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.card-brands span:last-child:not(:nth-child(2)) { font-weight: 500; text-transform: none; letter-spacing: .02em; color: var(--muted); }

.co-pay-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--bordeaux);
  background: #fff;
}

.co-pay-card .co-pay-mark { background: var(--bordeaux); font-family: var(--serif); font-size: 18px; }

.pay-loading {
  text-align: center;
  padding: 60px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

.pay-panel {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--champagne);
  box-shadow: 0 30px 60px -40px rgba(36, 12, 18, .35);
}

.pay-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pay-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  color: var(--bordeaux);
  margin-top: 10px;
}

.pay-head .card-brands { margin: 0; }

.pay-element-wrap .field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pay-element { min-height: 120px; }

.pay-submit { width: 100%; justify-content: center; padding-top: 21px; padding-bottom: 21px; }

.pay-secure {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.co-items-text { grid-template-columns: minmax(0, 1fr) auto !important; }
/* ==========================================
   ÉTAPE 6 — COMMANDE, SUIVI, ESPACE CLIENT
========================================== */

/* Lien « Mon compte » dans l'en-tête */
.nav a.account-link { white-space: nowrap; }
@media (max-width: 680px) { .nav-right .account-link { display: none; } }

/* Champ anti-robots invisible (ne pas utiliser display:none, certains robots l'ignorent) */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Bloc connexion dans le tunnel */
.co-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 18px;
  background: var(--ivory);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.co-account strong { color: var(--ink); font-weight: 500; }

.co-login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 18px;
  border: 1px solid var(--champagne-soft);
}

.co-login[hidden] { display: none; }
.co-login .form-error { grid-column: 1 / -1; }

.co-login-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.co-login-actions .btn-outline { flex: none; min-width: 0; padding: 14px 24px; }

.co-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  cursor: pointer;
}

.co-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--bordeaux); flex-shrink: 0; }

.co-field select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: var(--offwhite);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  letter-spacing: normal;
  text-transform: none;
}

.co-field select:focus { border-color: var(--champagne); background: #fff; }
.co-field input[readonly] { color: var(--muted); background: var(--ivory); }

.co-new-address { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Liste de réassurance */
.trust-list { list-style: none; display: grid; gap: 10px; margin-top: 22px; }

.trust-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.trust-list span { color: var(--champagne); }
.trust-list a { color: var(--muted); border-bottom: 1px solid var(--champagne-soft); }

/* Récapitulatif détaillé (tableau) */
.recap-table-wrap, .table-wrap-site { overflow-x: auto; }

.recap-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.recap-table th {
  text-align: left;
  padding: 0 0 12px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--champagne);
  border-bottom: 1px solid var(--line);
}

.recap-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.recap-table td + td, .recap-table th + th { padding-left: 16px; }
.recap-table .num { text-align: right; white-space: nowrap; }

.recap-table td strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--bordeaux);
}

.recap-table td small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.recap-table tfoot td { border-bottom: none; padding: 8px 0; color: var(--muted); }

.recap-table tfoot .recap-total td {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--bordeaux);
}

.recap-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recap-boxes .co-done-box p { font-size: 14px; }

/* Suivi de commande (frise) */
.co-track {
  text-align: left;
  margin: 0 0 30px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.co-track h3 {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 20px;
}

.track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.track li { position: relative; padding-top: 26px; font-size: 13px; color: var(--muted); }

.track li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 16px;
  right: -10px;
  height: 1px;
  background: var(--line);
}

.track li:last-child::before { display: none; }
.track li.done::before { background: var(--champagne); }

.track-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}

.track li.done .track-dot { background: var(--champagne); border-color: var(--champagne); }
.track li strong { display: block; font-weight: 500; color: var(--ink); }
.track li:not(.done) strong { color: var(--muted); font-weight: 400; }
.track li small { display: block; font-size: 11.5px; margin-top: 2px; }

.track-cancel, .track-wait { font-size: 14px; color: var(--bordeaux-soft); margin: 14px 0; }

/* ---------- Espace client ---------- */

.account-section { padding-top: clamp(40px, 5vw, 70px); }

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
}

.auth-card:first-child { border-color: var(--champagne); }
.auth-single { max-width: 520px; margin: 0 auto; }

.auth-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  color: var(--bordeaux);
  margin-bottom: 4px;
}

.auth-card .btn, .auth-card .btn-outline { justify-content: center; width: 100%; flex: none; }
.auth-card .link-btn { justify-self: start; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-forgot { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.auth-forgot[hidden] { display: none; }

.account-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.account-nav {
  position: sticky;
  top: 170px;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.account-nav button {
  text-align: left;
  padding: 12px 18px;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  font-size: 14px;
  color: var(--muted);
  transition: color .3s, border-color .3s;
}

.account-nav button:hover { color: var(--bordeaux); }
.account-nav button.active { color: var(--bordeaux); border-left-color: var(--champagne); font-weight: 500; }
.account-nav .account-logout { margin-top: 18px; font-size: 13px; }

.account-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--bordeaux);
  margin-bottom: 26px;
}

.account-body > .cart-note { margin-top: 20px; }

.order-card {
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; }
.order-date { margin-top: 8px; font-size: 13px; color: var(--muted); }

.order-card-meta { display: flex; align-items: center; gap: 16px; }
.order-card-meta strong { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--bordeaux); }

.status-pill {
  display: inline-block;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ivory);
  color: var(--bordeaux);
  border: 1px solid var(--champagne-soft);
}

.status-annulee { color: var(--muted); border-color: var(--line); }
.status-livree { background: #e7efe6; color: #3f6141; border-color: #cfe0cd; }

.order-lines { list-style: none; margin: 10px 0 14px; }

.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}

.order-lines li:last-child { color: var(--muted); }
.order-delivery { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.soon-compact { padding: 40px 20px; }
.soon-compact p { margin: 0 auto 22px; }

.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }

.address-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.address-card.is-default { border-color: var(--champagne); }
.address-card .status-pill { justify-self: start; }
.address-card strong { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--bordeaux); }
.address-actions { display: flex; gap: 18px; }

.link-btn.danger { color: #9b2c2c; border-bottom-color: #e3b8b8; }

.address-add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 170px;
  border: 1px dashed var(--champagne);
  background: transparent;
  font-size: 14px;
  color: var(--bordeaux);
  transition: background .3s;
}

.address-add span { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--champagne); }
.address-add:hover { background: var(--ivory); }

.address-form, .account-info {
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.address-form h3, .account-info h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--bordeaux);
}

.history-table small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

@media (max-width: 960px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    border-left: none;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .account-nav button { flex-shrink: 0; border-left: none; border-bottom: 2px solid transparent; margin: 0 0 -1px; white-space: nowrap; }
  .account-nav button.active { border-bottom-color: var(--champagne); }
  .account-nav .account-logout { margin-top: 0; }
  .auth-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .co-login, .co-new-address, .recap-boxes, .address-grid, .auth-row { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .track li:nth-child(2)::before { display: none; }
  .recap-table th:nth-child(2), .recap-table td:nth-child(2) { display: none; }
}

/* ==========================================
   RECHERCHE INTELLIGENTE (panneau de l'en-tête)
========================================== */

html.search-open, html.filters-open-lock { overflow: hidden; }

.search-panel { position: fixed; inset: 0; z-index: 400; }
.search-panel[hidden] { display: none; }

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 12, 18, .45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s;
}

.search-box {
  position: relative;
  max-width: 860px;
  margin: clamp(0px, 6vh, 70px) auto 0;
  background: var(--offwhite);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(36, 12, 18, .5);
  transform: translateY(-14px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  max-height: calc(100vh - 12vh);
  display: flex;
  flex-direction: column;
}

.search-panel.open .search-backdrop { opacity: 1; }
.search-panel.open .search-box { transform: none; opacity: 1; }

.search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.search-icon { font-size: 26px; color: var(--champagne); }

.search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--bordeaux);
  padding: 6px 0;
}

.search-form input::placeholder { color: #b5aaa2; font-style: italic; }
.search-form input::-webkit-search-cancel-button { display: none; }

.search-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--muted);
}

.search-results { overflow-y: auto; padding: 10px 24px 24px; }

.search-group { padding: 14px 0 6px; }

.search-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 10px;
}

.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.search-chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  transition: border-color .25s, background .25s;
}

.search-chip span { color: var(--muted); font-size: 12px; margin-left: 4px; }
.search-chip:hover, .search-chip.is-active { border-color: var(--champagne); background: var(--ivory); }

.search-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  margin: 0 -12px;
  transition: background .2s;
}

.search-item:hover, .search-item.is-active { background: var(--ivory); }

.search-cover { aspect-ratio: 2 / 3; background: #ece3d5; overflow: hidden; }
.search-cover img { width: 100%; height: 100%; object-fit: cover; }

.search-text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  color: var(--bordeaux);
  line-height: 1.3;
}

.search-text small { font-size: 12.5px; color: var(--muted); }
.search-text mark, .search-chip mark { background: rgba(184, 154, 105, .28); color: inherit; padding: 0 1px; }
.search-price { font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink); }

.search-empty { padding: 18px 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

.search-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--bordeaux);
  color: var(--offwhite);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .3s;
}

.search-all:hover, .search-all.is-active { background: var(--bordeaux-deep); }

/* ==========================================
   CATALOGUE (catalogue.html)
========================================== */

.catalog-hero {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 4vw, 56px) 0 clamp(30px, 4vw, 50px);
}

.catalog-hero .breadcrumb { margin-bottom: 18px; }
.catalog-hero .title { font-size: clamp(38px, 5vw, 70px); margin-bottom: 28px; }

.catalog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}

.catalog-search:focus-within { border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(184, 154, 105, .16); }
.catalog-search > span { color: var(--champagne); font-size: 20px; }

.catalog-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 12px 0;
  background: transparent;
}

.catalog-section { padding: clamp(36px, 4vw, 60px) 0 clamp(80px, 9vw, 130px); }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

/* Filtres */
.catalog-filters { position: sticky; top: 160px; }

.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.filters-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--bordeaux);
}

.filters-close, .filters-apply { display: none; }

.filter-group { border: none; padding: 18px 0; border-bottom: 1px solid var(--line); }

.filter-group legend {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 12px;
  padding: 0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.filter-option input { width: 16px; height: 16px; accent-color: var(--bordeaux); flex-shrink: 0; }
.filter-option span { flex: 1; }
.filter-option small { font-size: 12px; color: var(--muted); }
.filter-option.is-empty { opacity: .45; cursor: default; }

.price-range { display: flex; align-items: flex-end; gap: 10px; }
.price-range span { color: var(--muted); padding-bottom: 12px; }

.price-range label {
  flex: 1;
  display: grid;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-range input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.price-range input:focus { border-color: var(--champagne); }

.filters-foot { padding-top: 18px; }

/* Barre d'outils et résultats */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filters-open { display: none; flex: none; min-width: 0; padding: 12px 18px; }

.catalog-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog-sort select {
  appearance: none;
  -webkit-appearance: none;
  padding: 11px 38px 11px 14px;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23541C2C'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 16px 0 4px;
}

.active-filters:empty { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--ivory);
  border: 1px solid var(--champagne-soft);
  font-size: 13px;
  color: var(--bordeaux);
  transition: background .25s;
}

.filter-chip span { font-size: 15px; line-height: 1; color: var(--muted); }
.filter-chip:hover { background: #fff; }

#catalogGrid { margin-top: 30px; }
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 50px;
}

.pagination:empty { display: none; }

.pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .25s, background .25s;
}

.pagination button:hover:not(:disabled) { border-color: var(--champagne); }
.pagination button.current { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--offwhite); }
.pagination button:disabled { opacity: .35; cursor: default; }

/* Accueil : lien « Voir tout le catalogue » sous le texte */
.section-aside { display: grid; gap: 18px; justify-items: start; }
.section-aside .lead { max-width: 460px; margin: 0; }

@media (max-width: 1180px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-open { display: inline-flex; }

  /* Filtres en panneau latéral */
  .catalog-filters {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 350;
    width: min(380px, 88vw);
    padding: 24px 24px 0;
    background: var(--offwhite);
    box-shadow: 30px 0 80px -30px rgba(36, 12, 18, .5);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform .35s var(--ease);
    display: flex;
    flex-direction: column;
  }

  .catalog-filters.open { transform: none; }
  #filterGroups { flex: 1; }
  .filters-close { display: block; background: none; border: none; font-size: 30px; color: var(--muted); }

  .filters-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0 20px;
    background: var(--offwhite);
    border-top: 1px solid var(--line);
  }

  .filters-apply { display: inline-flex; justify-content: center; flex: 1; padding: 15px 18px; }
}

@media (max-width: 680px) {
  .search-box { margin: 0; max-height: 100vh; height: 100%; border: none; }
  .search-form { padding: 14px 16px; }
  .search-results { padding: 6px 16px 24px; }
  .catalog-search .btn-small { display: none; }
  .catalog-sort { width: 100%; justify-content: space-between; }
  .catalog-count { order: -1; width: 100%; }
}

/* Petit bouton (recherche du catalogue) */
.btn-small {
  padding: 11px 18px;
  background: var(--bordeaux);
  color: var(--offwhite);
  border: 1px solid var(--bordeaux);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s;
}

.btn-small:hover { background: var(--bordeaux-deep); }
/* Voile derrière le panneau de filtres (mobile) */
@media (max-width: 960px) {
  html.filters-open-lock body::after { content: ""; position: fixed; inset: 0; z-index: 340; background: rgba(36, 12, 18, .4); }
}

/* ==========================================
   ÉTAPE 7 — ESPACE CLIENT COMPLET
========================================== */

/* Connexion / inscription */
.auth-wrap { display: grid; place-items: start center; }
.auth-single { width: min(520px, 100%); }
.auth-card .lead { margin: -4px 0 4px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--muted); }
.auth-forgot-link { justify-self: center !important; }

.auth-new {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.form-error.is-info { color: var(--ink); }

/* Robustesse du mot de passe */
.pw-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-top: -6px;
}

.pw-meter i { height: 3px; background: var(--line); transition: background .3s; }
.pw-meter span { min-width: 70px; text-align: right; font-size: 11.5px; color: var(--muted); }
.pw-meter[data-level="0"] i:nth-child(-n+1) { background: #b9665f; }
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: #b9665f; }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: var(--champagne); }
.pw-meter[data-level="3"] i:nth-child(-n+3) { background: #7d9a6f; }
.pw-meter[data-level="4"] i:nth-child(-n+4) { background: #4f7a52; }

/* Vue d'ensemble */
.stats-site { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }

.stat-card {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}

.stat-card:hover { border-color: var(--champagne); transform: translateY(-2px); }
.stat-card strong { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; color: var(--bordeaux); }
.stat-card span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.overview-block { margin-bottom: 28px; }
.overview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.overview-head h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--bordeaux); }

.overview-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.overview-links button {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 18px 20px;
  background: var(--ivory);
  border: 1px solid var(--line);
  transition: border-color .3s;
}

.overview-links button:hover { border-color: var(--champagne); }
.overview-links strong { font-weight: 500; font-size: 14px; color: var(--bordeaux); }
.overview-links span { font-size: 13px; color: var(--muted); }

/* Liste des commandes */
.order-list { display: grid; gap: 10px; }

.order-row { background: #fff; border: 1px solid var(--line); }

.order-row-main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 110px 170px auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
}

.order-row-id strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--bordeaux); }
.order-row-id span { font-size: 12.5px; color: var(--muted); }
.order-row-books { font-size: 14px; color: var(--ink); line-height: 1.5; }
.order-row-amount { font-size: 15px; font-weight: 500; text-align: right; white-space: nowrap; }
.order-row-status { display: grid; gap: 5px; justify-items: start; }
.order-row-status small { font-size: 12.5px; color: var(--muted); }
.order-toggle { white-space: nowrap; }

.order-detail {
  padding: 4px 22px 22px;
  border-top: 1px solid var(--line);
  animation: tabIn .35s var(--ease);
}

.order-detail .recap-table { margin: 6px 0 14px; }

.pay-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pay-ok { background: #e7efe6; color: #3f6141; }
.pay-wait { background: #f6ecd8; color: #84622a; }
.pay-ko { background: #f3e0e3; color: var(--bordeaux); }
.pay-refund { background: #ece9e5; color: #6c625c; }

/* Favoris */
.favorites-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Profil et sécurité */
.profile-pw { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-pw .btn-outline { flex: none; min-width: 0; }

.security-grid { display: grid; gap: 0; }
.security-grid .account-info h3 { margin-bottom: 14px; }
.security-grid .account-info .btn-outline { flex: none; min-width: 0; margin-top: 14px; }
.security-list > div { grid-template-columns: 170px 1fr; }
.security-list dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.security-note .trust-list { margin-top: 0; }

@media (max-width: 1180px) {
  .favorites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-row-main { grid-template-columns: 1fr auto; grid-template-areas: "id amount" "books books" "status toggle"; row-gap: 10px; }
  .order-row-id { grid-area: id; }
  .order-row-amount { grid-area: amount; }
  .order-row-books { grid-area: books; }
  .order-row-status { grid-area: status; }
  .order-toggle { grid-area: toggle; justify-self: end; }
}

@media (max-width: 680px) {
  .stats-site, .overview-links { grid-template-columns: 1fr; }
  .stat-card { grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 16px 18px; }
  .stat-card strong { font-size: 30px; }
  .order-row-main, .order-detail { padding-left: 16px; padding-right: 16px; }
  .security-list > div { grid-template-columns: 1fr; }
  .favorites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
}

/* ==========================================
   MON COMPTE — ORGANISATION INSPIRÉE DES GRANDES LIBRAIRIES
========================================== */

.account-layout { grid-template-columns: 270px minmax(0, 1fr); }

.account-nav { gap: 0; border-left: none; background: #fff; border: 1px solid var(--line); padding: 8px 0; }

.account-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  margin: 0;
  border-left: 2px solid transparent;
  font-size: 14px;
}

.account-nav button .acc-icon { width: 19px; height: 19px; color: var(--champagne); flex-shrink: 0; }
.account-nav button.active { background: var(--ivory); }
.account-nav .account-logout { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 16px; }

.acc-welcome { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.acc-welcome h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); color: var(--bordeaux); }
.acc-welcome p { margin-top: 10px; color: var(--muted); font-size: 15px; font-weight: 300; }

.acc-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.acc-section-head h3, .acc-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--bordeaux); }
.acc-card > h3 { margin-bottom: 16px; }

.acc-last { margin-bottom: 34px; }

.acc-last-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.acc-last-card strong { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.acc-meta { font-size: 12.5px; color: var(--muted); }
.acc-last-status { display: grid; gap: 5px; justify-items: start; }
.acc-last-status small { font-size: 12.5px; color: var(--muted); }
.acc-last-amount { font-family: var(--serif); font-size: 22px; color: var(--bordeaux); white-space: nowrap; }
.acc-last-card .btn-outline { flex: none; min-width: 0; padding: 14px 18px; }

.acc-empty {
  padding: 38px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.acc-empty p { margin-bottom: 18px; }
.acc-empty p:last-child { margin-bottom: 0; }

.acc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

.acc-tile {
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: left;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}

.acc-tile:hover { border-color: var(--champagne); transform: translateY(-2px); box-shadow: 0 18px 40px -30px rgba(36, 12, 18, .35); }
.acc-tile-icon { width: 30px; height: 30px; color: var(--champagne); margin-bottom: 6px; }
.acc-tile strong { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--bordeaux); }
.acc-tile span { font-size: 13px; color: var(--muted); line-height: 1.5; }

.acc-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.acc-head .account-title { margin-bottom: 0; }
.acc-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-head-actions .btn-outline { flex: none; min-width: 0; padding: 13px 18px; }
.acc-head .btn { padding: 15px 24px; }

.acc-back { background: none; border: none; font-size: 13px; color: var(--muted); margin-bottom: 14px; padding: 0; }
.acc-back:hover { color: var(--bordeaux); }

.acc-card {
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.acc-card p { font-size: 14px; line-height: 1.8; color: var(--ink); }
.acc-card.co-form { display: grid; }
.acc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.acc-grid-2 .acc-card { margin-bottom: 0; }

.acc-note { display: flex; gap: 16px; align-items: flex-start; background: var(--ivory); }
.acc-note-icon { width: 28px; height: 28px; color: var(--champagne); flex-shrink: 0; }
.acc-note p { color: var(--muted); }

/* Tableau des commandes */
.orders-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
  padding: 16px 20px;
  margin-bottom: 14px;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.orders-filters label { display: grid; gap: 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.orders-filters select {
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23541C2C'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

.orders-count { margin-left: auto; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15px; }

.orders-table-wrap { background: #fff; border: 1px solid var(--line); overflow-x: auto; margin-bottom: 14px; }

.orders-site-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.orders-site-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--champagne);
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.orders-site-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders-site-table tr:last-child td { border-bottom: none; }
.orders-site-table .num { text-align: right; white-space: nowrap; }
.order-num-site { font-family: var(--serif); font-weight: 400; font-size: 15px; color: var(--bordeaux); white-space: nowrap; }
.td-books { min-width: 200px; line-height: 1.6; }
.td-actions { display: grid; gap: 10px; justify-items: start; min-width: 170px; }
.td-actions .btn-small { white-space: nowrap; }

/* Détail d'une commande */
.detail-items { list-style: none; margin-bottom: 14px; }

.detail-items li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-cover { display: block; aspect-ratio: 2 / 3; background: #ece3d5; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-text { display: grid; gap: 4px; justify-items: start; }
.detail-text a, .detail-text strong { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--bordeaux); }
.detail-text small { font-size: 13px; color: var(--muted); }
.detail-reviewed { color: #3f6141 !important; }
.detail-total { font-weight: 500; white-space: nowrap; }

.detail-sums > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--muted); }
.detail-sums .detail-grand { padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 22px; color: var(--bordeaux); }

/* Moyens de paiement */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 16px; }

.pay-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-deep) 100%);
  color: var(--offwhite);
  aspect-ratio: 1.7 / 1;
  align-content: space-between;
}

.pay-card-brand { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne-soft); }
.pay-card strong { font-size: 18px; font-weight: 400; letter-spacing: .14em; }
.pay-card-exp { font-size: 12.5px; color: var(--champagne-soft); }
.pay-card-exp.is-expired { color: #f1b8b8; }
.pay-card .link-btn { justify-self: start; color: var(--offwhite); border-bottom-color: rgba(255, 253, 250, .5); }

/* Avis */
.stars { color: var(--champagne); letter-spacing: 2px; font-size: 15px; white-space: nowrap; }
.stars span { color: var(--line); }

.rating-input { border: none; padding: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input legend { width: 100%; margin-bottom: 8px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); float: left; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 32px; line-height: 1; color: var(--line); cursor: pointer; transition: color .2s; }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--champagne); }
.rating-input input:focus-visible + label { outline: 2px solid var(--champagne); outline-offset: 2px; }

.review-todo, .review-list, .request-list { list-style: none; }

.review-todo li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review-list li, .request-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-list li:last-child, .request-list li:last-child, .review-todo li:last-child { border-bottom: none; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-head strong { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--bordeaux); }
.review-title { margin-top: 8px; font-weight: 500; }
.review-body { margin-top: 6px; color: var(--muted) !important; white-space: pre-line; }
.review-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.review-foot span { display: flex; gap: 16px; }

/* Avis sur la fiche livre */
.rating-summary { display: inline-flex; align-items: center; gap: 8px; margin-left: 16px; font-size: 13px; color: var(--muted); }
.rating-summary[hidden] { display: none; }
.reviews-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.reviews-summary strong { font-family: var(--serif); font-weight: 400; font-size: 40px; color: var(--bordeaux); line-height: 1; }
.reviews-summary .stars { font-size: 20px; }
.reviews-summary > span:last-child { font-size: 13px; color: var(--muted); }
.public-reviews { max-width: 760px; }
.public-reviews small { font-size: 12px; color: var(--muted); }

/* Aide et assistance */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 30px 16px 0;
  position: relative;
  font-size: 15px;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--champagne); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted) !important; }

.request-reply { margin-top: 12px; padding: 14px 16px; background: var(--ivory); border-left: 2px solid var(--champagne); }
.request-reply span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); margin-bottom: 6px; }
.request-reply p { white-space: pre-line; }

.acc-card textarea, .co-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--offwhite);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.6;
}

.acc-card textarea:focus, .co-form textarea:focus { border-color: var(--champagne); background: #fff; }

@media (max-width: 960px) {
  .account-nav { padding: 0; border: none; border-bottom: 1px solid var(--line); background: transparent; }
  .account-nav button { padding: 12px 14px; }
  .account-nav button .acc-icon { display: none; }
  .account-nav .account-logout { border-top: none; padding-top: 12px; margin-top: 0; }
  .acc-last-card { grid-template-columns: 1fr auto; }
  .acc-last-card > div:first-child { grid-column: 1 / -1; }
  .acc-last-card .btn-outline { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 680px) {
  .acc-grid-2 { grid-template-columns: 1fr; }
  .acc-tiles { grid-template-columns: 1fr; }
  .acc-tile { grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px; }
  .acc-tile-icon { grid-row: span 2; margin: 0; }
  .orders-count { margin-left: 0; width: 100%; }

  /* Tableau des commandes en cartes sur mobile */
  .orders-site-table thead { display: none; }
  .orders-site-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 16px; border-bottom: 1px solid var(--line); }
  .orders-site-table td { padding: 0; border: none; }
  .orders-site-table td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); margin-bottom: 2px; }
  .orders-site-table .num { text-align: left; }
  .td-books { grid-column: 1 / -1; min-width: 0; }
  .td-actions { grid-column: 1 / -1; min-width: 0; margin-top: 8px; }
  .detail-items li { grid-template-columns: 44px minmax(0, 1fr); }
  .detail-total { grid-column: 2; }
}

/* ==========================================
   FACTURE (facture.html) — écran et impression
========================================== */

.invoice-page { background: var(--ivory); }

.invoice-bar {
  max-width: 820px;
  margin: 30px auto 14px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-sheet {
  max-width: 820px;
  margin: 0 auto 60px;
  padding: clamp(28px, 5vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}

.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 26px; border-bottom: 2px solid var(--bordeaux); }
.inv-brand { font-family: var(--serif); font-size: 26px; color: var(--bordeaux); }
.inv-brand em { color: var(--champagne); }
.inv-title { text-align: right; line-height: 1.7; }
.inv-title h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--bordeaux); line-height: 1.1; margin-bottom: 8px; }

.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 26px 0; }
.inv-parties h2, .inv-payment h2 { font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); margin-bottom: 8px; }
.inv-parties p { line-height: 1.7; }

.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.inv-table th { text-align: left; padding: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--offwhite); }
.inv-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.inv-table .num { text-align: right; white-space: nowrap; }
.inv-total td { font-family: var(--serif); font-size: 20px; color: var(--bordeaux); border-bottom: none; padding-top: 16px; }

.inv-vat { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.inv-payment { padding-top: 16px; border-top: 1px solid var(--line); }
.inv-foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); text-align: center; }

@media print {
  .invoice-bar, .local-preview-badge, #toast { display: none !important; }
  .invoice-page { background: #fff; }
  .invoice-sheet { border: none; margin: 0; max-width: none; padding: 0; }
  @page { margin: 18mm; }
}

/* Mon compte : une seule colonne sur tablette et mobile */
@media (max-width: 960px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .account-nav button { flex-shrink: 0; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .account-nav button.active { border-bottom-color: var(--champagne); }
}

/* ---------- Étape 9 : prix promotionnels, résumé, sélection de la semaine ---------- */
.price-now { color: var(--bordeaux); }
.price-old { margin-left: 10px; font-size: .78em; color: var(--muted); font-weight: 400; }
.price-off {
  display: inline-block; margin-left: 10px; padding: 2px 8px; vertical-align: middle;
  font-size: 11px; letter-spacing: .08em; font-family: var(--sans); font-weight: 500;
  background: var(--bordeaux); color: var(--champagne-soft);
}
.promo-end { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); width: 100%; }
.book-short { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.6; color: var(--ink); margin: 0 0 18px; }
.cart-unit .price-off { display: none; }

/* ---------- Étape 10 : paiement indépendant du prestataire ---------- */
.pay-test-banner {
  max-width: var(--wrap); margin: 0 auto 22px; padding: 12px 18px;
  background: #fbf3e2; border: 1px solid #ead8b3; color: #6b5326; font-size: 13.5px; text-align: center;
}
.pay-notice { margin: 0 0 18px; padding: 12px 16px; background: #f3e0e3; color: var(--bordeaux); font-size: 14px; line-height: 1.6; }
.pay-redirect-text { font-size: 15px; line-height: 1.75; color: var(--ink); margin: 6px 0 22px; }

/* ---------- Étape 11 : livraison (tunnel) ---------- */
.co-subtitle {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  color: var(--champagne); margin: 18px 0 2px;
}
.co-empty { font-size: 14px; color: var(--muted); padding: 12px 0; }
.co-choice.is-disabled { opacity: .5; cursor: not-allowed; }
.speed-tag {
  display: inline-block; margin-left: 8px; padding: 2px 7px; vertical-align: middle;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--line); color: var(--muted);
}
.speed-tag.is-express { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--champagne-soft); }

/* ---------- Étape 11 : suivi de commande ---------- */
.track-form { max-width: 520px; margin: 0 auto; display: grid; gap: 18px; }
.track-form .lead { margin: 0; }
.track-card { background: var(--offwhite); border: 1px solid var(--line); padding: clamp(22px, 4vw, 44px); }
.track-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.track-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); color: var(--bordeaux); margin: 10px 0 6px; }
.track-date { color: var(--muted); font-size: 14px; margin: 0; }
.track-status {
  padding: 8px 14px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  background: var(--ivory); border: 1px solid var(--line); color: var(--bordeaux);
}
.track-status.is-ok { background: #e7efe6; border-color: #cfe0cd; color: #3f6141; }
.track-status.is-alert { background: #f3e0e3; border-color: #e6c3c9; color: var(--bordeaux); }
.track-alert { margin: 22px 0 0; padding: 14px 18px; background: #f3e0e3; color: var(--bordeaux); font-size: 14.5px; line-height: 1.7; }
.track-alert.soft { background: #fbf3e2; color: #6b5326; }
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0; }
.track-box { padding: 18px 20px; background: var(--ivory); border: 1px solid var(--line); }
.track-box h3, .track-history h3 {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  color: var(--muted); margin: 0 0 10px;
}
.track-box p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.track-sub { color: var(--muted); font-size: 13px; }
.track-number { font-family: var(--serif); font-size: 16px; color: var(--bordeaux); letter-spacing: .04em; word-break: break-all; }

.track-steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 10px 0 30px; padding: 0; counter-reset: none; }
.track-steps li { position: relative; padding-top: 26px; text-align: center; font-size: 13px; }
.track-steps li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.track-steps li:first-child::before { display: none; }
.track-steps li.done::before { background: var(--champagne); }
.track-steps .track-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--offwhite); border: 2px solid var(--line); z-index: 1; }
.track-steps li.done .track-dot { background: var(--champagne); border-color: var(--champagne); }
.track-steps li.current .track-dot { background: var(--bordeaux); border-color: var(--bordeaux); box-shadow: 0 0 0 4px rgba(84, 28, 44, .12); }
.track-steps strong { display: block; font-weight: 500; color: var(--ink); line-height: 1.35; }
.track-steps li:not(.done):not(.current) strong { color: var(--muted); font-weight: 400; }
.track-steps small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }

.track-history { border-top: 1px solid var(--line); padding-top: 22px; }
.track-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track-events li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.track-events li:last-child { border-bottom: none; }
.track-ev-date { color: var(--muted); font-size: 13px; }
.track-events p { margin: 4px 0 0; color: var(--ink); line-height: 1.6; }
.track-src { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 6px; background: var(--ivory); border: 1px solid var(--line); color: var(--muted); }
.track-items { margin: 20px 0 0; color: var(--muted); font-size: 13.5px; }
.track-actions { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 26px; }
.track-link { margin: 14px 0 0; }
.acc-card .track-card { border: none; padding: 0; background: transparent; }

@media (max-width: 860px) {
  .track-grid { grid-template-columns: 1fr; }
  .track-steps { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .track-steps li { padding: 0 0 18px 32px; text-align: left; }
  .track-steps li::before { top: -50%; left: 7px; width: 2px; height: 100%; }
  .track-steps .track-dot { left: 0; top: 2px; transform: none; }
  .track-events li { grid-template-columns: 1fr; gap: 2px; }
}

/* Audit (étape 12) : indicateur d'étapes du tunnel sans débordement sur petits écrans */
@media (max-width: 480px) {
  .checkout-steps { max-width: 100%; }
  .checkout-steps li { gap: 6px; }
  .checkout-steps li span { width: 24px; height: 24px; font-size: 12px; }
  .checkout-steps li + li::before { width: 10px; margin: 0 4px; }
  .checkout-steps li.current { font-size: 9px; letter-spacing: .08em; }
}

/* ==========================================
   Étape 14 : pages de connexion (client et équipe)
========================================== */
.auth-page { background: var(--ivory); }
.auth-main { padding: clamp(36px, 7vw, 90px) var(--gutter); }
.auth-stage { max-width: 520px; margin: 0 auto; }
.auth-card {
  background: #fff; border: 1px solid var(--line); padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 30px 70px rgba(84, 28, 44, .07); position: relative;
}
.auth-card::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 2px; background: var(--champagne); }
.auth-logo { display: block; text-align: center; font-family: var(--serif); font-size: 22px; color: var(--bordeaux); text-decoration: none; margin-bottom: 26px; }
.auth-logo em { color: var(--champagne); font-style: italic; }
.auth-logo span { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.auth-title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.2vw, 30px); color: var(--bordeaux); text-align: center; line-height: 1.25; margin: 0 0 10px; }
.auth-lead { text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 26px; }
.auth-lead strong { color: var(--ink); font-weight: 500; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: 22px; }
.auth-tabs button { padding: 12px; background: var(--offwhite); border: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.auth-tabs button[aria-selected="true"] { background: var(--bordeaux); color: var(--offwhite); }
.auth-form { display: grid; gap: 16px; }
.auth-grid { grid-template-columns: 1fr 1fr; }
.auth-grid .span-2 { grid-column: 1 / -1; }
.auth-phone { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 8px; }
.auth-hint { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.auth-btn { width: 100%; justify-content: center; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.auth-password { margin-top: 18px; font-size: 14px; }
.auth-password summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.auth-password form { display: grid; gap: 14px; margin-top: 14px; }
.auth-choice { border: 1px solid var(--line); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.auth-choice legend { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.auth-choice input { accent-color: var(--bordeaux); margin-right: 6px; }
.auth-captcha { min-height: 66px; }
.auth-config { text-align: center; font-size: 13px; color: var(--muted); }
.auth-legal { text-align: center; font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.6; }
.auth-legal a { color: var(--bordeaux); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp-digit {
  width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font-family: var(--serif); font-size: clamp(22px, 5vw, 30px); color: var(--bordeaux);
  border: 1px solid var(--line); background: var(--offwhite); outline: none; transition: border-color .2s, box-shadow .2s;
}
.otp-digit:focus { border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(184, 154, 105, .2); background: #fff; }
.auth-timer { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.auth-timer.is-expired { color: var(--bordeaux); }
.auth-qr { display: grid; justify-items: center; gap: 10px; margin: 6px 0 4px; }
.auth-qr img { width: 180px; height: 180px; background: #fff; border: 1px solid var(--line); padding: 8px; }
.auth-secret { font-family: monospace; font-size: 13px; letter-spacing: .12em; background: var(--ivory); padding: 6px 10px; word-break: break-all; text-align: center; }
.auth-steps { font-size: 13.5px; color: var(--ink); line-height: 1.7; padding-left: 18px; margin: 0; }

@media (max-width: 520px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-phone { grid-template-columns: 1fr; }
  .otp { gap: 6px; }
  .auth-links { flex-direction: column; align-items: center; }
}

/* Virement bancaire : envoi de la commande sur WhatsApp (page de confirmation) */
.btn.btn-whatsapp { background: #1f8f4e; border-color: #1f8f4e; color: #fff; margin: 8px auto 28px; }
.btn.btn-whatsapp:hover, .btn.btn-whatsapp:focus-visible { background: #17733e; border-color: #17733e; color: #fff; }

/* Bouton WhatsApp flottant (contact) */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: #1f8f4e; color: #fff; text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(31, 143, 78, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}
.wa-float:hover { background: #17733e; transform: translateY(-2px); color: #fff; }
.wa-float:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
@media (max-width: 600px) {
  .wa-float { right: 14px; bottom: 14px; padding: 13px; }
  .wa-float span { display: none; }
}
@media print { .wa-float { display: none; } }

/* Page de connexion : accès discret à l'administration ; commande : boutons connexion / inscription */
.auth-admin { text-align: center; font-size: 12px; color: var(--muted); margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.08); }
.auth-admin a { color: var(--bordeaux); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.soon-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Vérification de la connexion avant d'afficher une page de la boutique (js/acces.js) */
html.acces-verif body { visibility: hidden; }
.nav-right .logout-link { white-space: nowrap; color: var(--muted); }
@media (max-width: 680px) { .nav-right .logout-link { display: none; } }
@media (max-width: 960px) { .mobile-nav.open { max-height: 560px; } }
