/* Palette & motion — Onchiche225 */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --bg-page: #f2f4fb;
  --text-main: #1a1d4a;
  --brand-primary: #28237a;
  --brand-primary-hover: #19154f;
  --brand-accent: #1b9bd8;
  --brand-accent-soft: #68c0e6;
  --brand-highlight: #f2c94c;
  --surface: #ffffff;
  --surface-soft: #edf1fb;
  --border-soft: #ccd4ea;
  --footer-bg: #12143a;
  --glow-soft: rgba(25, 150, 211, 0.28);
  --shadow-soft: 0 10px 28px rgba(33, 43, 95, 0.14);
  --shadow-lift: 0 20px 44px rgba(28, 38, 88, 0.18);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-lg: 14px;
  --radius-md: 10px;
}

/* ——— Keyframes ——— */
@keyframes bg-drift {
  0% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
  100% {
    background-position: 0% 40%;
  }
}

@keyframes header-shimmer {
  0% {
    transform: translateX(-120%) skewX(-12deg);
    opacity: 0;
  }
  15% {
    opacity: 0.35;
  }
  50% {
    transform: translateX(120%) skewX(-12deg);
    opacity: 0.2;
  }
  100% {
    transform: translateX(120%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes title-line {
  from {
    transform: translateX(-50%) scaleX(0);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
}

@keyframes footer-glow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes nav-open {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes product-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cart-line-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  margin: 0;
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -10%, rgba(25, 150, 211, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 90% 70% at 0% 100%, rgba(36, 32, 111, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #f8f9ff 0%, var(--bg-page) 55%, #e4e9f5 100%);
  background-size: 100% 100%, 100% 100%, 180% 180%;
  background-attachment: fixed;
  animation: bg-drift 28s ease-in-out infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  padding: 16px 16px 12px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(118deg, #1a1858 0%, var(--brand-primary) 38%, #2a3a8f 62%, var(--brand-accent) 100%);
  background-size: 160% 160%;
  animation: bg-drift 22s ease-in-out infinite reverse;
  box-shadow:
    0 4px 24px rgba(15, 18, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.07) 55%,
    transparent 100%
  );
  animation: header-shimmer 7s ease-in-out infinite;
  pointer-events: none;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.05rem, 3.5vw, 1.5rem);
  flex: 1;
  min-width: 0;
  letter-spacing: 0.5px;
  font-weight: 800;
}

.logo-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  transition: color 0.25s ease, transform 0.35s var(--ease-out-expo);
}

.logo-link:hover {
  color: #fff;
  text-decoration: none;
  transform: scale(1.02);
}

.logo-link:hover .site-logo {
  animation: float-soft 2.2s ease-in-out infinite;
}

.logo img {
  display: block;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-expo), filter 0.35s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.site-logo {
  height: 74px;
  width: auto;
  max-width: min(84vw, 420px);
  object-fit: contain;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 1.35rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: white;
  flex-shrink: 0;
  transition:
    background 0.25s ease,
    transform 0.2s var(--ease-spring),
    box-shadow 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.05);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 12px;
  padding: 0 0 6px;
  position: relative;
  z-index: 1;
}

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.lang-btn {
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: none;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-primary);
}

.main-nav a {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.25s var(--ease-out-expo),
    box-shadow 0.28s ease;
}

.main-nav a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-top: 14px;
    padding-top: 14px;
    padding-bottom: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    gap: 4px;
  }

  .main-nav.is-open {
    display: flex;
    animation: nav-open 0.4s var(--ease-out-expo) both;
  }

  .lang-switch {
    justify-content: flex-end;
    margin-top: 10px;
  }

  .main-nav a {
    justify-content: center;
    width: 100%;
    border-radius: 10px;
  }
}

/* ——— Accueil / Hero ——— */

.home {
  text-align: center;
  padding: 56px 24px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.promo-strip {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(120deg, #241f74, #1b9bd8);
  color: #fff;
  box-shadow: 0 12px 26px rgba(26, 41, 120, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.promo-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.promo-subline {
  margin: 4px 0 0;
  font-size: 0.95rem;
  opacity: 0.96;
}

#promo-countdown {
  display: inline-block;
  min-width: 80px;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.home.hero {
  padding-top: 64px;
  padding-bottom: 44px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(241, 245, 255, 0.72));
  border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
  border-radius: 22px;
  box-shadow:
    0 20px 50px rgba(23, 31, 86, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-top: 18px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), var(--surface-soft));
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(36, 32, 111, 0.08);
  opacity: 0;
  animation: fade-up 0.75s var(--ease-out-expo) 0.08s forwards;
}

.home.hero h2 {
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  margin: 0 0 18px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.16s forwards;
}

.hero-lead {
  margin: 0 auto 28px;
  max-width: 34rem;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--text-main) 78%, #444);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.28s forwards;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 24px;
  max-width: 560px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(229, 238, 255, 0.95));
  border: 1px solid color-mix(in srgb, var(--brand-accent) 22%, white);
  box-shadow: 0 6px 18px rgba(39, 54, 122, 0.1);
}

.hero-cta {
  margin: 0;
  opacity: 0;
  animation: fade-up 0.85s var(--ease-out-expo) 0.4s forwards;
}

.cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #2d2888 50%, var(--brand-primary-hover) 100%);
  background-size: 200% 200%;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.02rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 28px rgba(36, 32, 111, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s ease,
    background-position 0.5s ease;
}

.cta-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 16px 36px rgba(36, 32, 111, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background-position: 100% 50%;
}

.cta-link:active {
  transform: translateY(-1px) scale(0.99);
}

.cta-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 64%
  );
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease-out-expo);
  pointer-events: none;
}

.cta-link:hover::before {
  transform: translateX(130%);
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out-expo);
}

.cta-link:hover .cta-arrow {
  transform: translateX(4px);
}

/* ——— Sections produits ——— */

.products {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px 48px;
}

.products h2 {
  width: 100%;
  text-align: center;
  margin: 0 0 28px;
  font-weight: 800;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--brand-primary);
  position: relative;
  padding-bottom: 14px;
  opacity: 0;
  animation: fade-up 0.65s var(--ease-out-expo) 0.05s forwards;
}

.products h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(120px, 32vw);
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-highlight), var(--brand-accent-soft));
  transform-origin: center;
  animation: title-line 0.85s var(--ease-out-expo) 0.35s both;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.cat-btn {
  padding: 8px 18px;
  border: 2px solid var(--brand-primary);
  border-radius: 50px;
  background: transparent;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--brand-primary);
  color: #fff;
}

.search-label {
  align-self: flex-start;
  max-width: 400px;
  width: 100%;
  margin: 0 auto 8px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--brand-primary);
}

#search {
  max-width: 400px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 12px;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(33, 43, 95, 0.06);
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.25s var(--ease-out-expo);
}

#search:hover {
  border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--border-soft));
}

#search:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow:
    0 0 0 4px var(--glow-soft),
    0 4px 18px rgba(25, 150, 211, 0.12);
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}

.product {
  position: relative;
  background: var(--surface);
  padding: 22px 20px 20px;
  border-radius: var(--radius-lg);
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 8%, white);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: product-enter 0.6s var(--ease-out-expo) forwards;
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1f2a6b;
  background: linear-gradient(145deg, #eef4ff, #d9e7ff);
  border: 1px solid #b9d0ff;
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 6px 14px rgba(34, 53, 128, 0.14);
}

.product-media {
  position: relative;
  background: linear-gradient(150deg, #f7f9ff, #edf2ff);
  border-radius: 14px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, white);
  margin-bottom: 12px;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow:
    var(--shadow-lift),
    0 0 0 1px color-mix(in srgb, var(--brand-accent) 22%, transparent),
    0 0 40px -12px color-mix(in srgb, var(--brand-accent) 35%, transparent);
  border-color: color-mix(in srgb, var(--brand-accent) 28%, var(--border-soft));
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-on-scroll.is-visible {
  animation: reveal-up 0.6s var(--ease-out-expo) both;
}

.product-grid .product:nth-child(1) {
  animation-delay: 0.04s;
}
.product-grid .product:nth-child(2) {
  animation-delay: 0.08s;
}
.product-grid .product:nth-child(3) {
  animation-delay: 0.12s;
}
.product-grid .product:nth-child(4) {
  animation-delay: 0.16s;
}
.product-grid .product:nth-child(5) {
  animation-delay: 0.2s;
}
.product-grid .product:nth-child(6) {
  animation-delay: 0.24s;
}
.product-grid .product:nth-child(7) {
  animation-delay: 0.28s;
}
.product-grid .product:nth-child(8) {
  animation-delay: 0.32s;
}
.product-grid .product:nth-child(9) {
  animation-delay: 0.36s;
}
.product-grid .product:nth-child(10) {
  animation-delay: 0.4s;
}
.product-grid .product:nth-child(11) {
  animation-delay: 0.44s;
}
.product-grid .product:nth-child(12) {
  animation-delay: 0.48s;
}
.product-grid .product:nth-child(13) {
  animation-delay: 0.52s;
}
.product-grid .product:nth-child(14) {
  animation-delay: 0.56s;
}
.product-grid .product:nth-child(15) {
  animation-delay: 0.6s;
}
.product-grid .product:nth-child(16) {
  animation-delay: 0.64s;
}
.product-grid .product:nth-child(17) {
  animation-delay: 0.68s;
}
.product-grid .product:nth-child(18) {
  animation-delay: 0.72s;
}
.product-grid .product:nth-child(19) {
  animation-delay: 0.76s;
}
.product-grid .product:nth-child(20) {
  animation-delay: 0.8s;
}

.product img {
  width: 100%;
  max-width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 12px;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.4s ease;
  box-shadow: 0 6px 16px rgba(33, 43, 95, 0.12);
}

.product:hover img {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(33, 43, 95, 0.18);
}

.product h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.25s ease;
  min-height: 2.8em;
}

.product:hover h3 {
  color: var(--brand-primary);
}

.price {
  font-weight: 700;
  margin: 10px 0 14px;
  color: var(--brand-primary);
  display: inline-block;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand-highlight) 32%, white),
    color-mix(in srgb, var(--brand-highlight) 18%, white)
  );
  border: 1px solid color-mix(in srgb, var(--brand-highlight) 40%, white);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease-spring);
}

.product:hover .price {
  transform: scale(1.04);
}

.product button {
  background: linear-gradient(180deg, #2f2a9e 0%, var(--brand-primary) 100%);
  color: white;
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 8px 18px rgba(36, 32, 111, 0.28);
  transition:
    transform 0.3s var(--ease-out-expo),
    box-shadow 0.3s ease,
    filter 0.25s ease;
}

.product button:hover {
  background: linear-gradient(180deg, #3a3499 0%, var(--brand-primary-hover) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 23, 84, 0.32);
  filter: brightness(1.05);
}

.product button:active {
  transform: translateY(0);
}

/* ——— Panier ——— */

.cart {
  padding: 44px 20px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.cart h2 {
  font-weight: 800;
  color: var(--brand-primary);
  margin-top: 0;
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out-expo) forwards;
}

.cart h3 {
  font-weight: 700;
  color: var(--brand-primary);
}

.cart ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.cart li.cart-line {
  background: var(--surface);
  margin: 12px auto;
  padding: 14px 16px;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(33, 43, 95, 0.08);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 6%, var(--border-soft));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  flex-wrap: wrap;
  opacity: 0;
  animation: cart-line-in 0.5s var(--ease-out-expo) both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart li.cart-line:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 22px rgba(33, 43, 95, 0.12);
}

.cart li.cart-line:nth-child(1) {
  animation-delay: 0.06s;
}
.cart li.cart-line:nth-child(2) {
  animation-delay: 0.12s;
}
.cart li.cart-line:nth-child(3) {
  animation-delay: 0.18s;
}
.cart li.cart-line:nth-child(4) {
  animation-delay: 0.24s;
}
.cart li.cart-line:nth-child(5) {
  animation-delay: 0.3s;
}
.cart li.cart-line:nth-child(6) {
  animation-delay: 0.36s;
}
.cart li.cart-line:nth-child(7) {
  animation-delay: 0.42s;
}
.cart li.cart-line:nth-child(8) {
  animation-delay: 0.48s;
}
.cart li.cart-line:nth-child(9) {
  animation-delay: 0.54s;
}
.cart li.cart-line:nth-child(10) {
  animation-delay: 0.6s;
}

.cart-line-text {
  flex: 1;
  min-width: 0;
}

.cart .btn-remove {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cart .btn-remove:hover {
  transform: scale(1.03);
}

.cart-empty {
  color: #666;
  margin: 16px 0;
  animation: fade-in 0.5s ease forwards;
}

.cart-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.cart-buttons button {
  border-radius: 10px;
  font-weight: 600;
  padding: 12px 18px;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.cart-buttons button:first-of-type {
  background: linear-gradient(135deg, #128c7e, #25d366);
  box-shadow: 0 8px 22px rgba(18, 140, 126, 0.35);
}

.cart-buttons button:first-of-type:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4);
}

/* ——— Contact ——— */

.contact {
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 20px;
}

.contact h2 {
  text-align: center;
  margin-top: 0;
  font-weight: 800;
  color: var(--brand-primary);
  opacity: 0;
  animation: fade-up 0.55s var(--ease-out-expo) forwards;
}

.contact-intro {
  text-align: center;
  margin-bottom: 26px;
  opacity: 0;
  animation: fade-in 0.6s ease 0.15s forwards;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  background: var(--surface);
  padding: 16px 18px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(33, 43, 95, 0.07);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 5%, var(--border-soft));
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.contact-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(33, 43, 95, 0.12);
}

.contact-list a {
  color: var(--brand-accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-list a:hover {
  color: var(--brand-primary);
  border-bottom-color: color-mix(in srgb, var(--brand-accent) 40%, transparent);
}

.hint {
  color: #777;
  font-size: 0.85rem;
}

.contact-note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 28px;
  line-height: 1.6;
}

.contact-note code {
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.optional {
  font-weight: normal;
  color: #666;
  font-size: 0.9em;
}

.contact-form {
  background: var(--surface);
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 6%, var(--border-soft));
  margin-bottom: 28px;
  text-align: left;
  opacity: 0;
  animation: fade-up 0.65s var(--ease-out-expo) 0.1s forwards;
}

.contact-form .field {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--brand-primary);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: color-mix(in srgb, var(--brand-accent) 35%, var(--border-soft));
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn-secondary {
  background: linear-gradient(180deg, #2f2a9e 0%, var(--brand-primary) 100%);
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  font-family: inherit;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #0d7aad 100%);
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(25, 150, 211, 0.3);
  transition: transform 0.3s var(--ease-out-expo), filter 0.25s ease;
}

.btn-whatsapp:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.not-found {
  text-align: center;
  padding: 56px 20px 72px;
  max-width: 480px;
  margin: 0 auto;
}

.not-found h2 {
  margin-top: 0;
  font-weight: 800;
  color: var(--brand-primary);
  animation: fade-up 0.55s var(--ease-out-expo) both;
}

.not-found p {
  animation: fade-in 0.6s ease 0.2s both;
}

/* ——— Admin ——— */

.admin {
  max-width: 480px;
  margin: 0 auto;
  padding: 44px 20px;
}

.admin h2,
.admin h3 {
  text-align: center;
  font-weight: 800;
  color: var(--brand-primary);
}

.admin-hint {
  text-align: center;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.55;
}

.is-hidden {
  display: none !important;
}

.admin-error {
  margin: -8px 0 20px;
  text-align: center;
  color: #b42318;
  font-weight: 700;
  animation: fade-in 0.35s ease;
}

.admin-actions {
  margin-top: -8px;
  margin-bottom: 20px;
}

.admin-actions button {
  width: 100%;
  border-radius: 10px;
}

.admin-form {
  background: var(--surface);
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 6%, var(--border-soft));
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.55s var(--ease-out-expo) forwards;
}

.admin-form:nth-of-type(2) {
  animation-delay: 0.08s;
}

.admin-form .field {
  margin-bottom: 16px;
  text-align: left;
}

.admin-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--brand-primary);
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="url"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form button {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  font-family: inherit;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(33, 43, 95, 0.06);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 5%, var(--border-soft));
  text-align: left;
  flex-wrap: wrap;
  transition: transform 0.25s ease;
}

.admin-list li:hover {
  transform: translateX(4px);
}

.admin-empty {
  text-align: center;
  color: #666;
  list-style: none;
}

.btn-delete {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 0.85rem;
  background: linear-gradient(180deg, #e74c3c, #c0392b);
  border-radius: 8px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-delete:hover {
  background: linear-gradient(180deg, #ec7063, #a93226);
  transform: scale(1.03);
}

/* ——— Boutons globaux ——— */

button {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition:
    background-color 0.25s ease,
    transform 0.2s var(--ease-out-expo),
    box-shadow 0.25s ease;
  box-shadow: 0 8px 16px rgba(36, 32, 111, 0.22);
}

button:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 12px 22px rgba(26, 23, 84, 0.28);
}

button:active {
  transform: translateY(1px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-accent) 50%, white);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--glow-soft);
}

/* ——— Footer ——— */

footer {
  position: relative;
  background: linear-gradient(180deg, #1a1c48 0%, var(--footer-bg) 100%);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 28px 20px 26px;
  margin-top: 48px;
  box-shadow: 0 -8px 32px rgba(18, 20, 58, 0.25);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand-primary),
    var(--brand-accent),
    var(--brand-highlight),
    var(--brand-accent),
    var(--brand-primary)
  );
  background-size: 200% 100%;
  animation: footer-glow 10s linear infinite;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ——— Accessibilité mouvement ——— */

@media (prefers-reduced-motion: reduce) {
  body,
  .site-header {
    animation: none;
    background-size: auto;
  }

  .site-header::after {
    animation: none;
    opacity: 0;
  }

  footer::before {
    animation: none;
  }

  .eyebrow,
  .home.hero h2,
  .hero-lead,
  .hero-cta,
  .products h2,
  .products h2::after,
  .contact h2,
  .contact-intro,
  .contact-form,
  .cart h2,
  .not-found h2,
  .not-found p,
  .admin-form {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .product {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .product:hover,
  .product:hover img {
    transform: none;
  }

  .cart li.cart-line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .main-nav.is-open {
    animation: none;
  }

  .logo-link:hover .site-logo {
    animation: none;
  }

  .cta-link::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 12px 12px 10px;
  }

  .logo-link {
    gap: 8px;
    font-size: 0.95em;
  }

  .site-logo {
    height: 54px;
    max-width: min(84vw, 320px);
  }

  .home,
  .home.hero {
    padding: 36px 16px 28px;
  }

  .products,
  .cart,
  .contact,
  .admin {
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product {
    max-width: 420px;
    margin: 0 auto;
  }

  .cart-buttons button {
    width: 100%;
  }

  .product img {
    width: min(150px, 100%);
    height: auto;
    aspect-ratio: 1;
  }
}

/* ——— Toast notifications ——— */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--brand-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out-expo);
  pointer-events: none;
  max-width: 300px;
}

.toast.toast--show {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast--success { background: #1a7a40; }
.toast.toast--error   { background: #b83232; }

/* ——— Chargement produits ——— */
.loading-hint {
  color: #888;
  font-size: 0.95rem;
  padding: 24px 0;
  text-align: center;
  grid-column: 1 / -1;
}
