@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #17110C;
  --surface: #211910;
  --surface-2: #2A2016;
  --cream: #F2E9DC;
  --muted: #B8A88F;
  --gold: #C9A15A;
  --gold-bright: #E0BC79;
  --clay: #A8532E;
  --olive: #6E7350;
  --line: rgba(242,233,220,0.12);
  --error: #e57373;
  --success: #81c784;
}

/* Base & Android / Mobile Alignment Fix */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

h1, h2, h3, h4, .serif {
  font-family: 'Fraunces', serif;
  font-weight: 400;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  background: linear-gradient(180deg, rgba(23,17,12,0.96) 0%, rgba(23,17,12,0.85) 75%, rgba(23,17,12,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242,233,220,0.05);
  transition: all 0.3s ease;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo span { color: var(--gold); }

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: color 0.25s;
  font-weight: 400;
}

nav a:hover, nav a.active {
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Currency Switcher */
.currency-selector {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.currency-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-btn.active {
  background: var(--gold);
  color: var(--bg);
}

.user-btn, .cart-btn {
  position: relative;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.2s, background 0.25s;
}

.user-btn:hover, .cart-btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  background: var(--surface);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 0 6vw;
  position: relative;
  overflow: hidden; /* Empêche les décalages Android */
}

.hero-text {
  padding-top: 5rem;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: 1.08;
  margin: 1rem 0 1.6rem;
  font-weight: 400;
}

.hero-text h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}

.hero-text p {
  max-width: 450px;
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 2.2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 0.95rem 1.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(201,161,90,0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: none;
  color: var(--cream);
  border: 1px solid var(--line);
  padding: 0.9rem 1.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Hero Visual & Signature Soap Bar */
.hero-visual {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.soap-bar {
  position: relative;
  width: 270px;
  height: 370px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3a2c1c 0%, #5a4229 35%, #2d2114 100%);
  box-shadow:
    0 40px 90px -20px rgba(0,0,0,0.7),
    inset 0 2px 1px rgba(255,255,255,0.08),
    inset 0 -30px 50px rgba(0,0,0,0.35);
  transform: rotate(-6deg);
  transition: transform 0.6s ease;
  z-index: 2;
}

.hero-visual:hover .soap-bar {
  transform: rotate(-2deg) scale(1.02);
}

.soap-bar::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(201,161,90,0.35);
  border-radius: 6px;
}

.soap-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--gold-bright);
  font-family: 'Fraunces', serif;
  text-align: center;
}

.soap-seal span {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 2px;
}

.soap-bar-2 {
  position: absolute;
  width: 210px;
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg,#d9c9a8,#b89f74);
  right: -20px;
  bottom: 40px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);
  transform: rotate(10deg);
  z-index: 1;
}

.mini-soap {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.55);
  transition: transform 0.6s ease;
}

.mini-soap-1 {
  width: 110px;
  height: 70px;
  background: linear-gradient(135deg,#e8c15c,#a8532e);
  left: -40px;
  top: 15%;
  transform: rotate(-18deg);
  z-index: 3;
}

.mini-soap-2 {
  width: 100px;
  height: 65px;
  background: linear-gradient(135deg,#4a5f8a,#243352);
  left: -15px;
  bottom: 12%;
  transform: rotate(14deg);
  z-index: 3;
}

.mini-soap-3 {
  width: 95px;
  height: 60px;
  background: linear-gradient(135deg,#c9535a,#7a2530);
  right: -30px;
  top: 12%;
  transform: rotate(16deg);
  z-index: 1;
}

.mini-soap-4 {
  width: 90px;
  height: 58px;
  background: linear-gradient(135deg,#6e7350,#3c4029);
  right: 0px;
  top: 45%;
  transform: rotate(-10deg);
  z-index: 3;
}

.hero-visual:hover .mini-soap-1 { transform: rotate(-22deg) translateY(-6px); }
.hero-visual:hover .mini-soap-2 { transform: rotate(18deg) translateY(-6px); }
.hero-visual:hover .mini-soap-3 { transform: rotate(20deg) translateY(-6px); }
.hero-visual:hover .mini-soap-4 { transform: rotate(-14deg) translateY(-6px); }

/* Origins Section */
.origins {
  padding: 7rem 6vw 6rem;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-top: 0.8rem;
}

.origins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.origin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2.6rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.origin-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.origin-card.nigeria::after { background: linear-gradient(90deg, var(--olive), var(--gold)); }
.origin-card.maroc::after { background: linear-gradient(90deg, var(--clay), var(--gold)); }

.origin-card .flag-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.origin-card h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.origin-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ingredient-list span {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  color: var(--cream);
}

/* Products Collection Section */
.collection {
  padding: 6rem 6vw 8rem;
  border-top: 1px solid var(--line);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.4);
}

.product-image {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  overflow: hidden;
}

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

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

.product-image .bar {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  transition: transform 0.5s ease;
}

.product-card:hover .product-image .bar {
  transform: scale(1.05) rotate(2deg);
}

.product-image .origin-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(23,17,12,0.85);
  border: 1px solid var(--line);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  color: var(--gold-bright);
  font-weight: 500;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.product-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.product-body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.4rem;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.price {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--gold-bright);
  font-weight: 500;
}

.add-btn {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 0.6rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.add-btn:hover {
  background: var(--gold);
  color: var(--bg);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 4.5rem 6vw 3.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--surface);
}

footer .logo { margin-bottom: 0.6rem; }
footer a { color: var(--gold-bright); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 150;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  text-decoration: none;
  font-size: 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(37,211,102,0.4);
}

/* Cart Drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.6);
}

.cart-drawer.open {
  right: 0;
}

.cart-head {
  padding: 1.8rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
}

.close-cart, .close-modal {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.close-cart:hover, .close-modal:hover {
  color: var(--gold-bright);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.8rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 50px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item .mini-bar {
  width: 50px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h5 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--cream);
}

.cart-item-price {
  color: var(--gold-bright);
  font-size: 0.85rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.qty-controls button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--cream);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.qty-controls button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
}

.qty-controls span {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 18px;
  text-align: center;
}

.remove-item {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: color 0.2s;
}

.remove-item:hover { color: var(--error); }

.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 4rem 1rem;
  font-size: 0.95rem;
}

.cart-footer {
  padding: 1.8rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.subtotal-row strong {
  font-family: 'Fraunces', serif;
  color: var(--gold-bright);
  font-size: 1.3rem;
}

.checkout-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
}

.checkout-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.8rem;
  text-align: center;
}

/* Modals (Auth, Checkout, Confirm) */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  padding: 2.2rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.modal-head h3 {
  font-size: 1.4rem;
  color: var(--cream);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  /* Correction Android auto-zoom : taille minimum 16px */
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,161,90,0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Alert Boxes */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.alert-error {
  background: rgba(229,115,115,0.12);
  border: 1px solid var(--error);
  color: #ffcdd2;
}

.alert-success {
  background: rgba(129,199,132,0.12);
  border: 1px solid var(--success);
  color: #c8e6c9;
}

/* Payment Option Selector */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.2rem 0;
}

.payment-method-card {
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 1.2rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}

.payment-method-card:hover {
  border-color: var(--gold);
}

.payment-method-card.active {
  border-color: var(--gold);
  background: rgba(201,161,90,0.08);
  box-shadow: 0 0 0 1px var(--gold);
}

.payment-method-card .icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: block;
}

.payment-method-card .title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
}

.payment-method-card .subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Stripe Card Element Box */
#stripe-card-element {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--surface-2);
  color: var(--cream);
  border-left: 4px solid var(--gold);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  font-size: 0.9rem;
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 340px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive & Android Specific Rules */
@media (max-width: 992px) {
  header {
    padding: 15px 5vw;
  }
  
  .hero {
    grid-template-columns: 1fr;
    padding-top: 6rem;
    padding-bottom: 4rem;
    text-align: center;
  }

  .hero-text {
    padding-top: 1rem;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    height: 48vh;
    order: -1;
    overflow: hidden; /* Empêche les éléments flottants de sortir de l'écran */
    max-width: 100vw;
  }

  .soap-bar {
    width: 220px;
    height: 300px;
  }

  .soap-bar-2 {
    width: 160px;
    height: 110px;
    right: -10px;
    bottom: 20px;
  }

  .mini-soap-1 { left: 5px; top: 10%; width: 80px; height: 50px; }
  .mini-soap-2 { left: 15px; bottom: 10%; width: 75px; height: 48px; }
  .mini-soap-3 { right: 5px; top: 10%; width: 70px; height: 45px; }
  .mini-soap-4 { right: 15px; top: 40%; width: 68px; height: 44px; }

  .origins-grid {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    width: 100%;
  }

  .modal-content {
    padding: 1.5rem;
  }
}
