/* Chrono Pizza Dormans - Feuille de style complète et fidèle au site chronopizzadormans.fr */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

:root {
  --chrono-accent: #e4584b;
  --chrono-accent-hover: #ce4f44;
  --chrono-dark: #1f2228;
  --chrono-darker: #15171c;
  --chrono-text: #4a4a4a;
  --chrono-text-light: #777777;
  --chrono-light-bg: #f7f7f8;
  --chrono-border: #e2e8f0;
  --chrono-success: #10b981;
  --chrono-warning: #f59e0b;
  --chrono-danger: #ef4444;
  --chrono-font: 'Rubik', sans-serif;
  --chrono-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--chrono-font);
  background-color: #ffffff;
  color: var(--chrono-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--chrono-accent);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--chrono-accent-hover);
}

ul {
  list-style: none;
}

/* ==========================================================================
   EN-TÊTE DU SITE & TOP BAR (FIDÈLE À CHRONO PIZZA LAFKA)
   ========================================================================== */
#header {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  z-index: 999;
}

#header_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px;
  max-width: 1380px;
  margin: 0 auto;
}

.lafka-top-left-menu-container {
  display: flex;
  align-items: center;
}

.lafka-order-phone-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.lafka-order-phone-box .phone-label {
  color: #888;
  font-size: 12px;
}

.lafka-order-phone-box .phone-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--chrono-accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lafka-order-phone-box .phone-number:hover {
  color: var(--chrono-accent-hover);
}

#logo {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#logo img {
  max-height: 120px;
  width: auto;
  display: block;
  margin: -38px 0;
  transition: transform 0.25s ease;
}

#logo img:hover {
  transform: scale(1.04);
}

.lafka-top-right-menu-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Panier et Compte Header */
.lafka-cart-widget-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf2f1;
  color: var(--chrono-accent);
  border: 1px solid #fcdad7;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lafka-cart-widget-btn:hover {
  background: var(--chrono-accent);
  color: #ffffff;
  border-color: var(--chrono-accent);
}

.lafka-cart-widget-btn .cart-badge-count {
  background: var(--chrono-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lafka-cart-widget-btn:hover .cart-badge-count {
  background: #ffffff;
  color: var(--chrono-accent);
}

.lafka-header-account-link-holder {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lafka-header-account-link-holder a {
  color: #333;
}

.lafka-header-account-link-holder a:hover {
  color: var(--chrono-accent);
}

.lafka-header-account-link-holder .sep {
  color: #ccc;
}

.user-logged-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-account-link {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--chrono-font);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
  transition: all 0.2s;
}

.btn-account-link:hover {
  background: #e2e8f0;
  color: var(--chrono-accent);
}

.btn-logout-mini {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 15px;
  padding: 5px;
  transition: color 0.2s;
}

.btn-logout-mini:hover {
  color: var(--chrono-danger);
}

/* NAVIGATION PRINCIPALE */
#main-menu {
  background: var(--chrono-dark);
  border-top: 1px solid #2e333d;
}

.main-menu-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#lafka-top-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#lafka-top-menu > li {
  position: relative;
}

#lafka-top-menu > li > a {
  display: block;
  padding: 16px 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}

#lafka-top-menu > li:hover > a,
#lafka-top-menu > li.current-menu-item > a {
  background-color: var(--chrono-accent);
  color: #ffffff;
}

/* Dropdowns */
#lafka-top-menu li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-radius: 0 0 6px 6px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

#lafka-top-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#lafka-top-menu li .sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  transition: all 0.2s;
}

#lafka-top-menu li .sub-menu li a:hover {
  background-color: #fdf2f1;
  color: var(--chrono-accent);
  padding-left: 25px;
}

.nav-extra-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
}

.nav-extra-btn {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}

.nav-extra-btn:hover {
  background: var(--chrono-accent);
  color: #fff;
}

/* ==========================================================================
   ALERTE & BANNIÈRE D'INFORMATION
   ========================================================================== */
.alert-notification-bar {
  background: linear-gradient(90deg, #e4584b 0%, #d43f30 100%);
  color: #ffffff;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.alert-notification-bar .alert-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.alert-notification-bar a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

/* ==========================================================================
   HERO CAROUSEL / SLIDER PROMO
   ========================================================================== */
.lafka-hero-carousel {
  position: relative;
  width: 100%;
  background: #11141a;
  overflow: hidden;
  min-height: 440px;
}

.lafka-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.lafka-hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.slide-content-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.slide-banner-item {
  text-align: center;
}

.slide-banner-item img {
  max-height: 380px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.slide-banner-item img:hover {
  transform: scale(1.02);
}

.slider-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: var(--chrono-accent);
  width: 32px;
  border-radius: 10px;
}

/* ==========================================================================
   SECTION CATALOGUE PRODUITS (LA CHRONO PIZZA)
   ========================================================================== */
.products-section-main {
  padding: 60px 20px;
  max-width: 1380px;
  margin: 0 auto;
}

.section-heading-box {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading-box .heading-subtitle-small {
  color: var(--chrono-accent);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.section-heading-box .heading-main-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--chrono-dark);
  margin-bottom: 10px;
}

.section-heading-box .heading-subtitle-large {
  font-size: 17px;
  color: #64748b;
  font-weight: 400;
}

/* Barre de filtres catégories & recherche */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.category-pills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cat-pill-btn {
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 9px 20px;
  border-radius: 30px;
  font-family: var(--chrono-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.cat-pill-btn:hover,
.cat-pill-btn.active {
  background: var(--chrono-accent);
  color: #ffffff;
  border-color: var(--chrono-accent);
  box-shadow: 0 4px 12px rgba(228, 88, 75, 0.25);
}

.search-bar-holder {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.search-bar-holder input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  border-radius: 30px;
  border: 1px solid #cbd5e1;
  font-family: var(--chrono-font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar-holder input:focus {
  border-color: var(--chrono-accent);
  box-shadow: 0 0 0 3px rgba(228, 88, 75, 0.15);
}

.search-bar-holder .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}

/* GRILLE PRODUITS WOOCOMMERCE STYLE LAFKA */
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.products li.product {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
}

ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  border-color: #fcdad7;
}

.lafka-product-inner,
.product-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.lafka-product-image-wrapper,
.image-wrapper {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  text-align: center;
  height: 210px;
  width: 100%;
}

.lafka-product-image-wrapper img,
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

ul.products li.product:hover .lafka-product-image-wrapper img,
ul.products li.product:hover .image-wrapper img {
  transform: scale(1.06);
}

.badge-promo-pill,
span.onsale {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #e4584b 0%, #c4382c 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 30px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(228, 88, 75, 0.35);
}

.lafka-product-content-wrapper,
.product-description-wrapper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.product-title,
.woocommerce-loop-product__title {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.product-title a,
.woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.product-title a:hover,
.woocommerce-loop-product__title a:hover {
  color: var(--chrono-accent);
}

.product-description-excerpt,
.lafka-list-product-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  flex-grow: 1;
  min-height: 40px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sélecteur de taille de pizza sur la carte */
.product-sizes-selector,
.pizza-size-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.product-sizes-selector .size-btn,
.pizza-size-picker .size-btn {
  flex: 1 1 0;
  min-width: 65px;
  font-family: var(--chrono-font, inherit);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.product-sizes-selector .size-btn:hover,
.pizza-size-picker .size-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.product-sizes-selector .size-btn.active,
.pizza-size-picker .size-btn.active {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #1e293b !important;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.25);
}

/* Bas de carte : Prix et Boutons d'action */
.product-bottom-action-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.product-card-price,
.product-description-wrapper .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--chrono-accent, #e4584b);
  letter-spacing: -0.3px;
  white-space: nowrap;
  margin-bottom: 0;
}

.product-card-price .currency {
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
}

.card-action-btns,
.links-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.btn-quick-add,
.links-wrapper button.add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  font-family: var(--chrono-font, inherit);
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  background: #fdf2f1;
  color: var(--chrono-accent, #e4584b);
  border: 1px solid #fcdad7;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
}

.btn-quick-add:hover,
.links-wrapper button.add_to_cart_button:hover {
  background: var(--chrono-accent, #e4584b);
  color: #ffffff;
  border-color: var(--chrono-accent, #e4584b);
  box-shadow: 0 4px 12px rgba(228, 88, 75, 0.25);
  transform: translateY(-1px);
}

.btn-order-direct,
.links-wrapper button.lafka-order-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  font-family: var(--chrono-font, inherit);
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  background: var(--chrono-accent, #e4584b);
  color: #ffffff;
  border: 1px solid var(--chrono-accent, #e4584b);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
}

.btn-order-direct:hover,
.links-wrapper button.lafka-order-now-btn:hover {
  background: var(--chrono-accent-hover, #c4382c);
  border-color: var(--chrono-accent-hover, #c4382c);
  box-shadow: 0 4px 14px rgba(196, 56, 44, 0.35);
  transform: translateY(-1px);
}

.links-wrapper button.out-of-stock-btn {
  grid-column: span 2;
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   SECTION "CHEZ LA CHRONO PIZZA VOUS AVEZ LE CHOIX"
   ========================================================================== */
.choice-section {
  background: #fdfaf8;
  padding: 70px 20px;
  border-top: 1px solid #f3ece8;
  border-bottom: 1px solid #f3ece8;
}

.choice-container {
  max-width: 1200px;
  margin: 0 auto;
}

.choice-title-box {
  text-align: center;
  margin-bottom: 40px;
}

.choice-title-box h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
}

.choice-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.choice-card {
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  background: #666666;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.choice-card img {
  max-height: 220px;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.choice-card h6 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--chrono-accent);
  margin-bottom: 5px;
}

.choice-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
}

.choice-separator {
  font-size: 24px;
  font-weight: 900;
  color: var(--chrono-accent);
  background: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   SECTION INFOS, HORAIRES & MOYENS DE PAIEMENT
   ========================================================================== */
.restaurant-info-section {
  padding: 60px 20px;
  background: #ffffff;
}

.info-cards-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.info-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.info-card .info-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-block;
}

.info-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.info-highlight-call {
  max-width: 800px;
  margin: 40px auto 0;
  background: var(--chrono-dark);
  color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.info-highlight-call h3 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.info-highlight-call .phone-big {
  font-size: 32px;
  font-weight: 900;
  color: var(--chrono-accent);
  display: block;
  margin-bottom: 12px;
}

.info-highlight-call .phone-backup-txt {
  font-size: 14px;
  color: #cbd5e1;
}

/* ==========================================================================
   PIED DE PAGE (FOOTER)
   ========================================================================== */
#footer {
  background: #15171c;
  color: #94a3b8;
  padding: 60px 20px 20px;
  border-top: 1px solid #232731;
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list li a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links-list li a:hover {
  color: var(--chrono-accent);
  padding-left: 5px;
}

.footer-logo-img {
  max-height: 80px;
  margin-bottom: 15px;
}

.footer-bottom {
  max-width: 1380px;
  margin: 0 auto;
  border-top: 1px solid #232731;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   TIROIR DE PANIER (CART DRAWER) & COMMANDE
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 20px;
  background: var(--chrono-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.btn-close-drawer {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.cart-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.cart-drawer-items {
  margin-bottom: 25px;
}

.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-details h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.cart-item-size {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--chrono-accent);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 700;
}

.qty-number {
  font-size: 13px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

/* Type de commande switcher */
.order-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.order-type-option {
  position: relative;
}

.order-type-option input {
  position: absolute;
  opacity: 0;
}

.order-type-option label {
  display: block;
  padding: 10px;
  text-align: center;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.order-type-option input:checked + label {
  border-color: var(--chrono-accent);
  background: #fdf2f1;
  color: var(--chrono-accent);
}

.delivery-notice {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.delivery-notice.warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.delivery-notice.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Formulaire Checkout */
.checkout-fields-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.checkout-fields-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-group-item {
  margin-bottom: 10px;
}

.form-group-item label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.form-group-item input,
.form-group-item select,
.form-group-item textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-family: var(--chrono-font);
  font-size: 13px;
  outline: none;
}

.form-group-item input:focus,
.form-group-item textarea:focus {
  border-color: var(--chrono-accent);
}

.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.payment-method-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.drawer-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 15px;
}

.btn-confirm-order-main {
  width: 100%;
  background: var(--chrono-accent);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-family: var(--chrono-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-confirm-order-main:hover {
  background: var(--chrono-accent-hover);
}

/* ==========================================================================
   MODALES (AUTH, ESPACE CLIENT, SUIVI EN DIRECT)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-card-header {
  background: var(--chrono-dark);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-card-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-card-body {
  padding: 24px;
  overflow-y: auto;
}

/* Tabs d'authentification */
.auth-tabs-header {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  font-family: var(--chrono-font);
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  position: relative;
}

.auth-tab-btn.active {
  color: var(--chrono-accent);
}

.auth-tab-btn.active:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--chrono-accent);
}

/* Stepper de suivi de commande en direct */
.tracking-stepper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 25px 0;
}

.tracker-step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
}

.tracker-step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 36px;
  left: 17px;
  width: 2px;
  height: calc(100% + 5px);
  background: #e2e8f0;
}

.tracker-step.completed:not(:last-child):after {
  background: var(--chrono-success);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 2;
  transition: all 0.3s;
}

.tracker-step.active .step-circle {
  background: #fdf2f1;
  border-color: var(--chrono-accent);
  box-shadow: 0 0 0 4px rgba(228, 88, 75, 0.2);
}

.tracker-step.completed .step-circle {
  background: #ecfdf5;
  border-color: var(--chrono-success);
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  display: block;
  color: #1e293b;
}

.step-desc {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.tracking-summary-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #e2e8f0;
}

.tracking-summary-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tracking-items-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.tracking-total-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 14px;
}

.tracking-info-footer {
  margin-top: 15px;
  font-size: 12px;
  color: #64748b;
}

/* Espace Client Modal */
.customer-order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.order-status-badge.status-pending { background: #fef3c7; color: #92400e; }
.order-status-badge.status-progress { background: #dbeafe; color: #1e40af; }
.order-status-badge.status-ready { background: #e0e7ff; color: #3730a3; }
.order-status-badge.status-completed { background: #dcfce7; color: #166534; }
.order-status-badge.status-cancelled { background: #fee2e2; color: #991b1b; }

.order-action-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-track-order,
.btn-reorder {
  padding: 6px 12px;
  font-family: var(--chrono-font);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.btn-track-order:hover {
  background: #f1f5f9;
}

.btn-reorder {
  background: var(--chrono-accent);
  color: #ffffff;
  border-color: var(--chrono-accent);
}

.btn-reorder:hover {
  background: var(--chrono-accent-hover);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  pointer-events: none;
}

.toast-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 100%;
  padding: 14px 40px 14px 18px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  border-left: 5px solid var(--chrono-accent, #e11d48);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  overflow: hidden;
}

.toast-item::before {
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toast-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left;
  animation: toastProgress 2.5s linear forwards;
}

.toast-item .toast-content { flex: 1; word-break: break-word; }
.toast-item .toast-content strong { font-weight: 800; }

.toast-item .toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.toast-item .toast-close:hover { background: #f1f5f9; color: #1e293b; }

.toast-item.toast-success {
  border-left-color: #059669;
  color: #065f46;
  background: #ecfdf5;
}
.toast-item.toast-success::before { content: "\f00c"; background: #059669; color: #fff; }

.toast-item.toast-error {
  border-left-color: #dc2626;
  color: #7f1d1d;
  background: #fef2f2;
}
.toast-item.toast-error::before { content: "\f00d"; background: #dc2626; color: #fff; }

.toast-item.toast-warn {
  border-left-color: #d97706;
  color: #78350f;
  background: #fffbeb;
}
.toast-item.toast-warn::before { content: "\f12a"; background: #d97706; color: #fff; }

.toast-item.toast-info {
  border-left-color: #2563eb;
  color: #1e3a8a;
  background: #eff6ff;
}
.toast-item.toast-info::before { content: "\f129"; background: #2563eb; color: #fff; }

@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.toast-item.fade-out {
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile : notifications en haut, pleine largeur (sans gêner) */
@media (max-width: 640px) {
  #toast-container {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
  .toast-item {
    min-width: 0;
    width: 100%;
    font-size: 13.5px;
    padding: 12px 36px 12px 14px;
  }
  @keyframes toastSlideIn {
    from { transform: translateY(-120%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .toast-item.fade-out {
    transform: translateY(-120%);
  }
}

/* ==========================================================================
   PROGRAMME DE FIDÉLITÉ & CATALOGUE DE RÉCOMPENSES
   ========================================================================== */
.loyalty-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.15);
}

.loyalty-points-pill i {
  color: #f59e0b;
}

.loyalty-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
}

.loyalty-hero-info h3 {
  color: #ffffff;
  font-size: 20px;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loyalty-hero-info p {
  color: #94a3b8;
  margin: 0;
  font-size: 14px;
}

.loyalty-badge-balance {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loyalty-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.loyalty-reward-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.loyalty-reward-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.loyalty-reward-card img,
.loyalty-reward-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.loyalty-reward-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.loyalty-cost-tag,
.loyalty-cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  width: fit-content;
}

.loyalty-reward-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.loyalty-reward-body h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #1e293b;
  font-weight: 700;
}

.loyalty-reward-body p {
  margin: 0 0 15px 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  flex: 1;
}

.btn-redeem-reward {
  width: 100%;
  padding: 10px;
  background: var(--chrono-accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-redeem-reward:hover {
  background: var(--chrono-accent-hover);
}

.btn-redeem-reward:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  color: #64748b;
}

.cart-item-reward-badge {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.loyalty-checkout-summary {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 15px 0;
  font-size: 13px;
}

.loyalty-checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.loyalty-checkout-row:last-child {
  margin-bottom: 0;
}

.loyalty-earned-highlight {
  color: #059669;
  font-weight: 700;
}

.loyalty-spent-highlight {
  color: #d97706;
  font-weight: 700;
}

/* ==========================================================================
   STYLES POUR LES PAGES SÉPARÉES (CATALOGUE, PANIER, COMPTE, SUIVI, ACCUEIL)
   ========================================================================== */

/* Bannière d'en-tête de page */
.page-banner {
  background: linear-gradient(135deg, #1f2228 0%, #2c323d 100%);
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--chrono-accent);
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(228,88,75,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-banner h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.page-banner p {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto;
}

.page-breadcrumb {
  margin-top: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.page-breadcrumb a {
  color: #e2e8f0;
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--chrono-accent);
}

.page-breadcrumb span {
  margin: 0 6px;
}

.page-main-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 60px 20px;
}

/* Accueil : Boutons d'action rapide & Cartes de catégories */
.home-quick-actions-bar {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-radius: 12px;
  max-width: 1100px;
  margin: -35px auto 40px auto;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  z-index: 10;
  gap: 15px;
  flex-wrap: wrap;
}

.home-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.home-action-btn:hover {
  background: var(--chrono-accent);
  color: #ffffff;
  border-color: var(--chrono-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(228,88,75,0.25);
}

.home-action-btn.primary {
  background: var(--chrono-accent);
  color: #ffffff;
  border-color: var(--chrono-accent);
}

.home-action-btn.primary:hover {
  background: var(--chrono-accent-hover);
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.home-cat-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.home-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.home-cat-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f8fafc;
}

.home-cat-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-cat-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.home-cat-card-body p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  flex: 1;
}

.home-cat-card-body .cat-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.home-cat-card-body .cat-link-btn:hover {
  background: var(--chrono-accent);
  color: #ffffff;
}

/* ==========================================================================
   PAGE PANIER & COMMANDE (LAYOUT 2 COLONNES)
   ========================================================================== */
.checkout-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
  align-items: start;
}

.checkout-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.checkout-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.checkout-card-header h2, .checkout-card-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-clear-cart-text {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-clear-cart-text:hover {
  text-decoration: underline;
}

.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.checkout-item-row img {
  width: 65px;
  height: 65px;
  border-radius: 6px;
  object-fit: cover;
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.checkout-item-info .item-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.checkout-item-info .item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--chrono-accent);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-actions .qty-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item-actions .qty-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.cart-item-actions .qty-val {
  font-weight: 800;
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  color: #1e293b;
}

.cart-item-actions .remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cart-item-actions .remove-btn:hover {
  background: #fef2f2;
}

.checkout-summary-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 15px 20px;
  border: 1px solid #e2e8f0;
  margin-top: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: #64748b;
}

.summary-line.total {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  border-top: 2px solid #e2e8f0;
  margin-top: 8px;
  padding-top: 12px;
}

.summary-line.total .total-amount {
  color: var(--chrono-accent);
}

.empty-cart-fullpage {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart-fullpage .empty-icon {
  font-size: 55px;
  color: #cbd5e1;
  margin-bottom: 15px;
}

.empty-cart-fullpage h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.empty-cart-fullpage p {
  color: #64748b;
  margin-bottom: 25px;
}

/* ==========================================================================
   PAGE ESPACE CLIENT (TABS & CARTES)
   ========================================================================== */
.account-tabs-nav {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.account-tab-link {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-tab-link.active {
  color: var(--chrono-accent);
  border-bottom-color: var(--chrono-accent);
}

.account-tab-link:hover {
  color: var(--chrono-accent);
}

.auth-form-card {
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ==========================================================================
   PAGE SUIVI DE COMMANDE
   ========================================================================== */
.tracking-container-box {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}

.tracking-search-bar-box {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tracking-search-bar-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

.tracking-search-bar-box button {
  padding: 12px 24px;
  background: var(--chrono-accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.tracking-stepper-full {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 40px 0;
}

.tracking-stepper-full::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}

.stepper-step {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-bubble {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.stepper-step.completed .step-bubble {
  background: var(--chrono-success);
  border-color: var(--chrono-success);
  color: #ffffff;
}

.stepper-step.active .step-bubble {
  background: var(--chrono-accent);
  border-color: var(--chrono-accent);
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(228,88,75,0.2);
}

.step-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.stepper-step.active .step-label {
  color: var(--chrono-accent);
}

.stepper-step.completed .step-label {
  color: var(--chrono-success);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLETTE)
   ========================================================================== */

/* Bouton chevron des sous-menus — masqué par défaut (desktop) */
.submenu-toggle {
  display: none;
}

/* Bouton hamburger — masqué par défaut (desktop) */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--chrono-accent, #e4584b);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1002;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Overlay derrière le drawer — transparent (ne pas assombrir le site)
   sert uniquement à fermer le menu quand on clique en dehors */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  visibility: hidden;
  z-index: 1000;
}
.mobile-menu-overlay.is-open {
  visibility: visible;
}
body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 992px) {
  #header_top {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
    position: relative;
  }
  .slide-content-grid {
    grid-template-columns: 1fr;
  }
  .choice-grid {
    flex-direction: column;
  }
  .choice-separator {
    margin: 10px 0;
  }
  #lafka-top-menu {
    justify-content: center;
  }
  .checkout-page-grid {
    grid-template-columns: 1fr;
  }
  .tracking-stepper-full {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .tracking-stepper-full::before {
    display: none;
  }
  .stepper-step {
    flex-direction: row;
    gap: 15px;
  }
}

/* ==========================================================================
   MOBILE (< 900px) : menu hamburger + drawer déroulant
   ========================================================================== */
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }

  /* En-tête compact */
  #header_top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 60px 10px 15px; /* place à droite pour le hamburger */
  }
  .lafka-top-left-menu-container {
    order: 3;
    width: 100%;
    text-align: center;
  }
  .lafka-order-phone-box {
    justify-content: center;
    font-size: 14px;
  }
  #logo {
    order: 1;
    flex: 1;
    text-align: left;
  }
  #logo img {
    max-height: 50px;
    width: auto;
  }
  .lafka-top-right-menu-container {
    order: 2;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  /* On masque le bloc "Connexion / S'enregistrer" sur mobile,
     il reste accessible via le menu drawer (Espace Client) */
  #lafka-account-holder {
    display: none;
  }

  /* Le menu devient un drawer latéral — pas de transition/transform pour
     éviter que la fermeture n'annule le clic natif sur les navigateurs mobiles. */
  #main-menu.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 340px;
    height: 100vh;
    background: #1a1a1a;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    z-index: 1001;
    overflow-y: auto;
    padding: 70px 0 30px;
  }
  #main-menu.mobile-menu-drawer.is-open {
    display: block;
  }

  /* Chaque entrée de 1er niveau devient une ligne cliquable, avec le bouton
     chevron séparé (pour déplier le sous-menu sans bloquer la navigation) */
  #lafka-top-menu > li.menu-item-has-children {
    position: relative;
  }
  #lafka-top-menu > li.menu-item-has-children > .submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 54px;
    background: rgba(255,255,255,0.06);
    border: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #lafka-top-menu > li.menu-item-has-children > .submenu-toggle i {
    transition: transform 0.25s ease;
  }
  #lafka-top-menu > li.menu-item-has-children.sub-open > .submenu-toggle i {
    transform: rotate(180deg);
  }
  #lafka-top-menu > li.menu-item-has-children > a {
    padding-right: 66px !important; /* place pour le bouton chevron */
  }
  .main-menu-inner {
    display: block;
    padding: 0;
  }
  #lafka-top-menu {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  #lafka-top-menu > li {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  #lafka-top-menu > li > a {
    display: block;
    padding: 16px 22px;
    font-size: 16px;
    color: #fff;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  #lafka-top-menu > li > a:hover,
  #lafka-top-menu > li.sub-open > a {
    background: rgba(255,255,255,0.05);
    color: var(--chrono-accent, #e4584b);
  }
  #lafka-top-menu li.menu-item-has-children > a .fa-angle-down {
    float: right;
    transition: transform 0.25s ease;
  }
  #lafka-top-menu li.menu-item-has-children.sub-open > a .fa-angle-down {
    transform: rotate(180deg);
  }

  /* Sous-menus dépliables au clic */
  #lafka-top-menu li .sub-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0,0,0,0.35);
    box-shadow: none;
    padding: 4px 0;
    min-width: 0;
    width: 100%;
  }
  #lafka-top-menu li.sub-open .sub-menu {
    display: block;
  }
  #lafka-top-menu li:hover .sub-menu {
    /* Neutralise le hover desktop sur mobile */
    display: none;
  }
  #lafka-top-menu li.sub-open:hover .sub-menu {
    display: block;
  }
  #lafka-top-menu li .sub-menu li a {
    padding: 12px 34px;
    color: #ddd;
    font-size: 14px;
  }
  #lafka-top-menu li .sub-menu li a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--chrono-accent, #e4584b);
  }

  .nav-extra-links {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .nav-extra-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    background: var(--chrono-accent, #e4584b);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
  }

  /* Alerte plus lisible sur mobile */
  .alert-notification-bar .alert-content {
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  ul.products {
    grid-template-columns: 1fr;
  }
  .links-wrapper {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    width: 100vw;
  }
  #logo img {
    max-height: 42px;
  }
  .lafka-order-phone-box .phone-label {
    display: none; /* on garde uniquement le numéro cliquable */
  }
  .lafka-cart-widget-btn .cart-total-badge {
    font-size: 12px;
  }
  /* Titres et paddings plus doux */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .site-content {
    padding-left: 10px;
    padding-right: 10px;
  }
}
