/*
 * COMPONENTS — Chicken Way
 * Cartes blanches cadrées rouge, étiquettes prix rouges, titres bleus (cf. panneaux ext.)
 */

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  transition: transform 0.2s, background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  font-family: var(--font-family);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 15px 35px;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-family);
  border: 2px solid var(--primary);
  box-shadow: var(--glow-box-primary);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--glow-box-primary-strong);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: #ffffff;
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.btn-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--glow-box-accent);
}

.btn-large {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* === PRODUCT GRID === */
.products-grid {
  display: grid;
  grid-template-columns: var(--products-grid-columns);
  gap: var(--grid-gap);
}

/* === PRODUCT CARD === */
.product-card {
  background-color: #ffffff;
  border: 2px solid #e9edf6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #f4f6fb;
}

.product-image-placeholder.large {
  aspect-ratio: 1;
  max-width: 500px;
}

.product-info {
  padding: var(--space-4);
}

.product-info h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  color: var(--accent);
}

.product-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}

.price {
  font-size: var(--font-size-lg);
  font-weight: 900;
  color: var(--primary);
}

.price.large {
  font-size: var(--font-size-2xl);
}

.product-actions {
  padding: 0 var(--space-4) var(--space-4);
}

.product-actions .btn {
  width: 100%;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: min(72vh, 660px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 36px) 20px 110px;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height) - 6px);
  margin-bottom: 40px;
  background: #ffffff;
}

.hero-video-bg,
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
}

/* voile blanc : fond en douceur vers la page */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: min(340px, 72vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 16px rgba(28, 36, 71, 0.14));
  animation: floatLogo 7s ease-in-out infinite;
}

.hero-wordmark {
  font-family: var(--font-family-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.6deg); }
}

.hero p {
  font-family: var(--font-family-accent);
  font-size: clamp(0.95rem, 3vw, 1.35rem);
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

/* === TICKER — bande bleue inclinée (bandeau de panneau) === */
.ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: var(--accent);
  border-top: 4px solid var(--primary);
  padding: 11px 0;
  transform: rotate(-1deg) scale(1.05);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(26, 46, 105, 0.25);
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 20px;
  font-family: var(--font-family-accent);
  font-size: 0.95rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === CATEGORIES === */
.categories-nav {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-width) solid var(--color-border);
}

.category-link {
  padding: var(--space-2) var(--space-4);
  background-color: #ffffff;
  border: 1.5px solid rgba(var(--accent-rgb), 0.35);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-weight: 800;
  transition: all var(--transition-fast);
}

.category-link:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.category-section {
  margin-bottom: var(--space-12);
}

.category-section h2 {
  margin-bottom: var(--space-6);
}

/* === ORDER MODES === */
.order-modes {
  padding: var(--space-12) 0;
}

.order-modes h2 {
  text-align: center;
  margin-bottom: var(--space-8);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
  max-width: 600px;
  margin: 0 auto;
}

.mode-option {
  text-align: center;
  padding: var(--space-8);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  transition: all var(--transition-fast);
}

.mode-option:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.mode-option h3 {
  margin-bottom: var(--space-2);
  color: var(--accent);
}

.mode-option p {
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

/* === PRODUCT DETAIL === */
.back-link {
  display: inline-block;
  margin-bottom: var(--space-6);
  color: var(--color-text-light);
  font-weight: 700;
}

.back-link:hover {
  color: var(--color-primary);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid #e9edf6;
}

.product-content h1 {
  margin-bottom: var(--space-4);
}

.product-content .description {
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.product-form {
  margin-top: var(--space-6);
}

/* === STEP FIELDSET === */
.step-fieldset {
  border: 1.5px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-xl);
  padding: 25px;
  margin-bottom: 30px;
  background: #fbfcfe;
}

.step-fieldset legend {
  font-family: var(--font-family-accent);
  font-weight: 400;
  padding: 0 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 1rem;
}

.step-fieldset .required {
  font-size: 0.7rem;
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 10px;
  vertical-align: middle;
  font-weight: 800;
  font-family: var(--font-family);
  letter-spacing: 0.05em;
}

.choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.choice-label {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 2px solid #e4e8f3;
  border-radius: var(--radius-lg);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.choice-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-label:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: #f7f9fe;
}

.choice-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  box-shadow: var(--glow-box-primary);
}

.choice-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  width: 100%;
}

.choice-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.choice-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.choice-price {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 800;
  margin-top: 5px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.quantity-selector input {
  width: 80px;
  text-align: center;
}

/* === CART === */
.cart-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

@media (max-width: 992px) {
  .cart-content {
    grid-template-columns: 1fr;
  }
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  background: #ffffff;
  border: 2px solid #e9edf6;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.cart-item:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .item-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.item-selections {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
}

.item-selections li {
  position: relative;
  padding-left: 15px;
}

.item-selections li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.item-price {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--primary);
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.quantity-form {
  display: flex;
  align-items: center;
  background: #f0f3fa;
  border-radius: var(--radius-md);
  padding: 5px;
  gap: 15px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-weight: 900;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background-color: var(--primary);
  color: #fff;
  box-shadow: var(--glow-box-primary);
}

.quantity {
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 25px;
  text-align: center;
}

.btn-remove {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.btn-remove:hover {
  color: var(--primary);
  text-decoration: underline;
}

.cart-summary {
  padding: 35px;
  background: #ffffff;
  border: 2px solid #e9edf6;
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-xl);
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
  padding-top: 25px;
  border-top: 1.5px solid #e9edf6;
  margin-top: 10px;
}

.summary-row.total span:last-child {
  color: var(--primary);
}

.cart-summary .btn {
  width: 100%;
  margin-bottom: 15px;
}

.empty-cart {
  text-align: center;
  padding: 100px 20px;
  background: #fafbfe;
  border-radius: var(--radius-xl);
  border: 2px dashed #d9def0;
}

.empty-cart p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-muted);
}

/* === CHECKOUT === */
.checkout-content {
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 50px;
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-xl);
  border: 2px solid #e9edf6;
}

.form-section h2 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1.5px solid #e9edf6;
  color: var(--accent);
}

.form-group {
  margin-bottom: 25px;
}

.order-summary {
  background: #f7f8fc;
  padding: 25px;
  border-radius: var(--radius-lg);
  border: 1.5px solid #e9edf6;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e9edf6;
  font-weight: 600;
}

.summary-item:last-child {
  border-bottom: none;
}

.checkout-content > .btn {
  width: 100%;
  margin-top: 20px;
}

.delivery-quote-box {
  padding: 20px;
  background: #f4f6fb;
  border: 1.5px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius-lg);
  margin-top: 20px;
}

.delivery-quote-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
}

.delivery-quote-row:last-child {
  margin-bottom: 0;
}

.delivery-quote-label {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.delivery-quote-value {
  color: var(--text-main);
}

.delivery-quote-info {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* === SUCCESS PAGE === */
.success-page {
  text-align: center;
  max-width: 600px;
  margin: 60px auto;
  padding: 50px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 2px solid #e9edf6;
  border-top: 5px solid var(--color-success);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 100px;
  height: 100px;
  background: var(--color-success);
  color: white;
  font-size: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 15px 30px rgba(23, 138, 76, 0.25);
  animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.order-number {
  font-size: 2rem;
  font-weight: 400;
  color: var(--primary);
  margin: 15px 0;
  font-family: var(--font-family-heading);
}

.order-details {
  text-align: left;
  background: #f7f8fc;
  padding: 25px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  border: 1.5px solid #e9edf6;
}

.next-steps {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* === FEATURED SECTION === */
.featured {
  padding: var(--space-12) 0;
}

.featured h2 {
  text-align: center;
  margin-bottom: var(--space-8);
}

/* === EMPTY STATE === */
.empty-category {
  color: var(--color-text-light);
  font-style: italic;
}

/* =========================================================
   LANDING SECTIONS
   ========================================================= */

.menu-section {
  padding-bottom: 40px;
}

.section-header {
  display: flex;
  /* wrap : sans lui, la largeur min-content du titre pousse le lien
     « Voir tout le menu » hors viewport en mobile (bug de flotte chiken-go) */
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 16px;
  padding: 0 20px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent);
  font-style: normal;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-family: var(--font-family-accent);
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.btn-link {
  font-weight: 800;
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.4);
  padding-bottom: 2px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.btn-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Cards scroll */
.cards-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 20px 40px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 1200px;
  margin: 0 auto;
}

.cards-scroll::-webkit-scrollbar {
  display: none;
}

.card {
  min-width: 280px;
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid #e9edf6;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f4f6fb;
}

.card-body {
  padding: 20px;
}

.card-price {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--accent);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Features grid — bande bleue de panneau, cartes blanches */
.features-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--purple) 100%);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  padding: 30px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 14px 34px rgba(12, 20, 54, 0.28);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(12, 20, 54, 0.36);
}

.feature-number {
  font-family: var(--font-family-accent);
  font-size: 2.2rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 18px;
}

.feature-title {
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Pre-footer */
.pre-footer {
  padding: 100px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(var(--primary-rgb), 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(var(--accent-rgb), 0.07) 0%, transparent 55%),
    #ffffff;
}

.pre-footer h2 {
  font-family: var(--font-family-heading);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.pre-footer p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  box-shadow: var(--glow-box-primary-strong);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #ffffff;
  width: max-content;
  font-family: var(--font-family);
}

.floating-cta:hover {
  transform: translateX(-50%) translateY(-5px) scale(1.05);
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-xl);
  color: #fff;
}

@media (min-width: 768px) {
  .cards-scroll {
    overflow: visible;
    flex-wrap: wrap;
    justify-content: center;
  }
  .card {
    flex: 0 0 calc(33.333% - 20px);
  }
}

/* =========================================================
   BARRE PANIER FIXE + FEEDBACK D'AJOUT (catalog & fiche produit, via site.js)
   ========================================================= */
.cart-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  width: min(560px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  background: var(--primary);
  color: #fff;
  border: 2px solid #ffffff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  transition: transform 0.25s, background 0.2s;
}

.cart-bar:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateX(-50%) translateY(-3px);
}

.cart-bar[hidden] { display: none; }

.cart-bar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  background: #ffffff;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
}

.cart-bar-label { flex: 1; text-align: center; }
.cart-bar-total { font-size: 1rem; }

.cart-bar.is-bump { animation: cartBump 0.35s ease; }
@keyframes cartBump {
  0% { transform: translateX(-50%) scale(1); }
  40% { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); }
}

.btn.is-added,
.btn-action.is-added {
  background: var(--color-success) !important;
  border-color: var(--color-success) !important;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .cart-bar.is-bump { animation: none; }
}

/* === Très petits écrans (iPhone SE 320px) : header et titres de section === */
@media (max-width: 360px) {
  .header-actions { gap: 8px; }
  .header-order { padding: 8px 12px; font-size: 0.72rem; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.78rem; letter-spacing: 0.14em; }
}
