@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --page: #ffffff;
  --soft: #f5f8ff;
  --soft-blue: #edf4ff;
  --surface: #ffffff;
  --ink: #14233c;
  --muted: #63738e;
  --blue: #2563eb;
  --blue-bright: #2968ff;
  --cyan: #12b9d2;
  --coral: #ff6b6b;
  --gold: #ffb21c;
  --line: #e1e8f3;
  --shadow: 0 9px 28px rgba(18, 41, 72, .055);
  --radius: 10px;
  --container: 1488px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-size: 14px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; background: transparent; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
.container { width: min(calc(100% - 56px), var(--container)); margin: 0 auto; }
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.blue { color: var(--blue); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, #2361e9, #246aff);
  box-shadow: 0 7px 16px rgba(37, 99, 235, .18);
}
.btn-outline { color: var(--blue); border: 1px solid var(--blue); background: white; }
.btn-neutral { border: 1px solid #cbd6e7; background: white; color: #485c78; }

/* Header */
.site-header {
  position: relative;
  z-index: 500;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: white;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.header-row { height: 72px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 330px; }
.brand img { height: 54px; width: 48px; }
.brand-title { display: block; font-size: 21px; font-weight: 800; line-height: 1.2; }
.brand-copy { display: block; font-size: 11px; color: var(--muted); }
.main-nav { display: flex; align-self: stretch; align-items: center; gap: 35px; margin: 0 auto; }
.main-nav a {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--blue);
  left: 0; right: 0; bottom: 12px;
}
.header-actions { display: flex; align-items: center; gap: 28px; }
.theme-toggle {
  width: 76px; height: 36px; border-radius: 19px;
  border: 1px solid var(--line); background: #f5f7fb;
  display: flex; align-items: center; justify-content: space-around; padding: 3px;
  color: #94a3b8;
}
.theme-toggle .sun, .theme-toggle .moon {
  height: 28px; width: 32px; border-radius: 18px; display: grid; place-items: center;
}
.theme-toggle .sun { background: white; color: #ffaf0e; box-shadow: 0 1px 5px rgba(0,0,0,.06); }
.header-dark { color: #f6fbff; background: #182a40; border-color: #223850; }
.header-dark .brand-copy { color: #cad7e6; }
.header-dark .main-nav a.active { color: #19c1dd; }
.header-dark .main-nav a.active::after { background: #19c1dd; }
.header-dark .theme-toggle { border-color: #41536b; background: #26394f; }
.header-dark .theme-toggle .sun { background: transparent; box-shadow: none; color: #a9b9ca; }
.header-dark .theme-toggle .moon { background: #124765; color: #16c5e4; }
.header-dark .btn-primary { background: linear-gradient(135deg, #08bddb, #13cbea); }

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-self: stretch;
  align-items: center;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.nav-dropdown-caret { font-size: 10px; opacity: .6; pointer-events: none; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(18,41,72,.15);
  list-style: none;
  margin: 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  height: auto;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
  transition: background .15s;
  position: static;
}
.nav-dropdown-menu a:hover { background: var(--soft); }
.nav-dropdown-menu a.active::after { display: none; }
.header-dark .nav-dropdown-menu {
  background: #1d3249;
  border-color: #2e4a66;
  box-shadow: 0 8px 24px rgba(0,0,0,.40);
}
.header-dark .nav-dropdown-menu a { color: #d6e6f7; }
.header-dark .nav-dropdown-menu a:hover { background: #2e4a66; }

/* Shared */
.page-body { padding: 14px 0 0; }
.breadcrumb {
  display: flex; gap: 13px; align-items: center; margin: 0 0 14px;
  color: var(--muted); font-size: 12px;
}
.breadcrumb span + span::before { content: "/"; margin-right: 13px; color: #c0cad8; }
.section-title {
  font-size: 18px; font-weight: 800; display: flex; align-items: center;
  gap: 11px; margin: 12px 0 10px;
}
.section-title::before { content: "✦"; color: var(--blue); font-size: 18px; }
.content-sidebar {
  display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 32px;
}
.widget {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.widget h3 { font-size: 14px; margin-bottom: 8px; font-weight: 700; }
.search-control {
  height: 36px; display: flex; overflow: hidden; border-radius: 6px;
  border: 1px solid #d7e0ee; background: white;
}
.search-control input { min-width: 0; flex: 1; border: 0; outline: none; padding: 0 14px; color: var(--ink); }
.search-control input::placeholder { color: #99a5ba; }
.search-button { width: 45px; color: white; background: var(--blue); display: grid; place-items: center; }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li {
  display: flex; align-items: center; gap: 13px; min-height: 31px; color: #455873;
}
.widget-list .count { margin-left: auto; padding: 2px 9px; background: #f5f7fb; border-radius: 12px; }
.promo {
  display: grid; grid-template-columns: 113px 1fr; gap: 13px; align-items: start;
}
.promo img { width: 113px; height: 140px; object-fit: cover; border-radius: 5px; }
.promo h4 { font-size: 14px; margin-bottom: 4px; }
.promo-price { color: var(--coral); font-size: 20px; font-weight: 700; margin-top: 7px; }
.checks { display: grid; gap: 8px; margin-top: 11px; font-size: 12px; color: var(--muted); }
.checks span::before { content: "✓"; color: var(--cyan); font-weight: 800; margin-right: 8px; }
.trust-stats {
  border-top: 1px solid var(--line); display: flex; margin: 12px -12px -12px; padding: 10px 8px;
}
.trust-stats div { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.trust-stats div:last-child { border: 0; }
.trust-stats strong { display: block; color: var(--ink); }
.trust-stats small { font-size: 10px; color: var(--muted); }
.home-page .sidebar .search-control { height: 33px; }
.home-page .sidebar .promo img { width: 103px; height: 120px; }
.home-page .sidebar .checks { gap: 5px; }
.home-page .sidebar .promo-price { font-size: 18px; margin-top: 3px; }

/* Homepage */
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 32px; }
.hero {
  height: 342px; border: 1px solid #dce5f3; border-radius: 10px;
  background: radial-gradient(circle at 85% 60%, #edf5ff 0, #f4f8ff 42%, #fbfcff 100%);
  position: relative; overflow: hidden; display: grid;
  grid-template-columns: .93fr 1.07fr; align-items: center; padding: 32px 25px 30px 75px;
}
.hero::before {
  content: ""; position: absolute; right: -34px; top: 24px; width: 130px; height: 110px;
  background-image: radial-gradient(#cfe0ff 2px, transparent 2px); background-size: 12px 12px; opacity: .85;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow {
  padding: 8px 14px; border: 1px solid #d9e4fa; border-radius: 22px; margin-bottom: 14px;
}
.hero h1 { font-size: 37px; letter-spacing: -.045em; line-height: 1.12; margin-bottom: 14px; }
.hero h1 span { color: var(--blue); }
.hero p { max-width: 470px; color: #40536f; font-size: 12px; margin-bottom: 19px; }
.hero-actions { display: flex; gap: 12px; }
.hero .btn { height: 43px; }
.hero-media { height: 100%; position: relative; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.slider-control {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  height: 39px; width: 39px; border-radius: 50%; background: white;
  border: 1px solid var(--line); display: grid; place-items: center;
  box-shadow: 0 5px 12px rgba(19,35,60,.08);
}
.slider-prev { left: 11px; } .slider-next { right: 11px; }
.dots { position: absolute; bottom: 12px; left: 50%; display: flex; gap: 9px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; background: #c9d4e6; }
.dots button.active { background: var(--blue); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.home-layout .products-grid .product-card { height: 236px; }
.home-layout .products-grid .product-image { height: 140px; }
.product-card {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white;
  min-width: 0; position: relative; transition: box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { box-shadow: 0 12px 25px rgba(23, 45, 78, .09); transform: translateY(-2px); }
.product-image { height: 144px; overflow: hidden; background: #101c31; position: relative; }
.product-image img { height: 100%; width: 100%; object-fit: cover; }

/* Loader shimmer sur les images produits — visible pendant le chargement, masqué
   automatiquement par l'image une fois peinte (aucune dépendance JS pour l'effet
   visuel ; le JS ne sert qu'à couper l'animation une fois inutile). */
img.mp-thumb {
  background-image: linear-gradient(100deg, #eef2f9 30%, #ffffff 50%, #eef2f9 70%);
  background-size: 200% 100%;
  background-position: -200% 0;
  animation: mp-shimmer 1.5s ease-in-out infinite;
}
.product-image img.mp-thumb,
.news-card img.mp-thumb {
  background-image: linear-gradient(100deg, #101c31 30%, #223a5e 50%, #101c31 70%);
}
img.mp-thumb.is-loaded { animation: none; background-image: none; }
@keyframes mp-shimmer { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) {
  img.mp-thumb { animation: none; }
}
.zip-badge {
  position: absolute; left: 10px; top: 10px; z-index: 1; padding: 2px 7px;
  background: #ffdd8c; color: #26344b; font-size: 10px; font-weight: 700; border-radius: 4px;
}
.favorite {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  background: rgba(16,28,49,.4); border: 0; border-radius: 50%;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 15px; line-height: 1; cursor: pointer; padding: 0;
  transition: transform .15s ease, background .15s ease;
}
.favorite:hover { transform: scale(1.12); background: rgba(16,28,49,.6); }
.favorite.is-favorited { color: #ff5d73; }

.favorite-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: border-color .15s ease, color .15s ease;
}
.favorite-btn:hover { border-color: #ff5d73; }
.favorite-btn.is-favorited { border-color: #ff5d73; color: #ff5d73; background: rgba(255,93,115,.06); }
.product-body { padding: 11px 12px 13px; }
.category { color: var(--blue); font-size: 10px; margin-bottom: 4px; }
.product-body h3 { font-size: 13px; margin-bottom: 5px; }
.product-body p { color: var(--muted); font-size: 10px; min-height: 30px; }
.price { font-size: 17px; font-weight: 700; color: var(--blue); margin-top: 5px; }
.price.free { color: #08a7bc; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.news-card {
  border: 1px solid var(--line); border-radius: 8px; height: 70px;
  display: grid; grid-template-columns: 105px 1fr; overflow: hidden; align-items: center;
}
.news-card img { height: 100%; width: 100%; object-fit: cover; }
.news-card div { padding: 8px; font-size: 10px; color: var(--muted); }
.news-card strong { display: block; font-size: 11px; color: var(--ink); }

/* Catalogue */
.catalogue-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.display-title h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 42px; line-height: 1.12; }
.display-title p { color: var(--muted); margin-top: 5px; }
.catalogue-search { width: 348px; }
.filters {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; border: 1px solid var(--line); background: #f8fbff;
  padding: 12px; border-radius: 7px; margin-bottom: 20px;
}
.filter-group { display: flex; align-items: center; gap: 9px; }
.filter-label { font-size: 12px; margin-right: 4px; }
.filter-button, .select-button {
  height: 35px; border: 1px solid #dce5f1; border-radius: 5px;
  background: white; padding: 0 13px; font-size: 11px; display: inline-flex; align-items: center; gap: 6px;
}
.filter-button.is-selected { background: var(--blue); border-color: var(--blue); color: white; }
.catalogue-grid { grid-template-columns: repeat(4, 1fr); gap: 17px; }
.catalogue-grid .product-image { height: 164px; }
.catalogue-grid .product-card { height: 238px; }
.catalogue-grid .product-body { padding: 8px 10px; }
.catalogue-grid .product-body { display: grid; grid-template-columns: 1fr auto; gap: 4px; }
.catalogue-grid .category { grid-column: 1 / 3; color: var(--muted); }
.catalogue-grid .price { grid-column: 2; grid-row: 2; color: var(--ink); font-size: 16px; margin: 0; }
.catalogue-grid .price.free { color: var(--blue); }
.detail-link { color: var(--blue); font-size: 11px; grid-column: 2; margin-top: 5px; }
.catalogue-grid .price { position: absolute; right: 10px; bottom: 30px; }
.catalogue-grid .detail-link { position: absolute; right: 10px; bottom: 8px; }
.pagination { display: flex; justify-content: center; gap: 10px; margin: 20px 0 22px; }
.pagination a { height: 35px; min-width: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; }
.pagination .selected { background: var(--blue); color: white; }
.catalogue-page .sidebar .promo img { height: 104px; }
.catalogue-page .sidebar .promo { grid-template-columns: 106px 1fr; gap: 11px; }
.catalogue-page .sidebar .promo-price { font-size: 18px; margin-top: 4px; }
.catalogue-page .sidebar .widget p { font-size: 12px; line-height: 1.45; }
.catalogue-page .sidebar .btn { height: 34px !important; margin-top: 9px !important; }

/* Editorial and specialty pages */
.feature-hero {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faff 0%, #eef5ff 100%);
  padding: 34px 38px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 22px;
}
.feature-hero::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 22px;
  width: 150px;
  height: 120px;
  background-image: radial-gradient(#cfe0ff 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: .8;
}
.feature-hero h1 {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 15px 0 13px;
}
.feature-hero h1 span { color: var(--blue); }
.feature-hero p { color: var(--muted); max-width: 610px; }
.feature-media { position: relative; z-index: 1; }
.feature-media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.feature-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
.info-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 20px;
  box-shadow: var(--shadow);
}
.info-card .icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #edf4ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 13px;
}
.info-card h3 { font-size: 16px; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 12px; }
.timeline {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.timeline-item {
  display: grid;
  grid-template-columns: 125px 116px minmax(0, 1fr) 95px auto;
  gap: 18px;
  align-items: center;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item img { width: 116px; height: 70px; object-fit: cover; border-radius: 7px; }
.timeline-date { color: var(--blue); font-weight: 800; font-size: 12px; }
.timeline-item h3 { font-size: 15px; margin-bottom: 4px; }
.timeline-item p { color: var(--muted); font-size: 12px; }
.timeline-item .price { font-size: 14px; margin-top: 0; white-space: nowrap; }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pack-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pack-card > img { width: 100%; height: 190px; object-fit: cover; }
.pack-content { padding: 18px; }
.pack-content h3 { font-size: 18px; margin-bottom: 5px; }
.pack-content p { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.pack-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; }
.pack-price strong { color: var(--blue); font-size: 27px; }
.pack-price s { color: #9aa8bb; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; }
.contact-form {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: var(--shadow);
  padding: 24px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  border: 1px solid #d8e2f0;
  border-radius: 7px;
  padding: 12px 13px;
  outline: none;
  color: var(--ink);
  background: #fbfdff;
}
.field textarea { min-height: 145px; resize: vertical; }
.agency-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.agency-panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: var(--shadow);
  padding: 22px;
}
.agency-panel h2 { font-size: 22px; margin-bottom: 11px; }
.agency-panel p { color: var(--muted); margin-bottom: 14px; }
.free-banner {
  border: 1px solid #beeaf2;
  border-radius: 10px;
  background: linear-gradient(135deg, #f2fdff, #f7fbff);
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.free-banner strong { color: #078da2; }
.faq-list { display: grid; gap: 10px; margin-bottom: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 30px 15px 0;
  font-weight: 700;
  font-size: 13.5px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 20px;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { color: var(--muted); font-size: 12.5px; line-height: 1.8; padding: 0 0 18px; }

/* Assistant IA — icône déclencheur dans le header (mode "header") */
.mp-bot-header-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg2); display: grid; place-items: center; cursor: pointer; padding: 0; flex-shrink: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.mp-bot-header-toggle:hover { border-color: var(--blue); transform: translateY(-1px); }
.mp-bot-header-toggle img { width: 24px; height: 24px; }

/* Assistant IA (widget flottant) */
.mp-bot { position: fixed; right: 22px; bottom: 90px; z-index: 900; transition: bottom .2s ease; }
.mp-bot.mp-bot--header { position: static; right: auto; bottom: auto; z-index: auto; }
/* Mode header : le déclencheur est dans le header, mais le panneau reste en bas de page comme en mode flottant. */
.mp-bot.mp-bot--header .mp-bot-panel { position: fixed; bottom: 100px; right: 22px; }
.mp-bot-toggle {
  width: 60px; height: 60px; border-radius: 50%; border: none; padding: 0;
  background: linear-gradient(135deg, #2968ff, #12b9d2);
  box-shadow: 0 10px 26px rgba(37,99,235,.32);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .18s ease;
}
.mp-bot-toggle:hover { transform: translateY(-2px) scale(1.04); }
.mp-bot-toggle img { width: 40px; height: 40px; }
/* display:none par défaut (fermé) ; .mp-bot-open bascule en flex — jamais
   piloté par l'attribut HTML hidden seul, un display d'auteur le bat toujours. */
.mp-bot-panel {
  position: absolute; right: 0; bottom: 74px; width: 340px; max-height: 480px;
  display: none; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(19,35,60,.22); overflow: hidden;
}
.mp-bot-panel.mp-bot-open { display: flex; }
.mp-bot-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg,#2968ff,#12b9d2); color: #fff; }
.mp-bot-head img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.mp-bot-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mp-bot-head-text strong { font-size: 13px; }
.mp-bot-head-text span { font-size: 10px; opacity: .85; }
.mp-bot-head button { background: rgba(255,255,255,.18); border: none; color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.mp-bot-head button:hover { background: rgba(255,255,255,.3); }
.mp-bot-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.mp-bot-msg { display: flex; }
.mp-bot-msg.user { justify-content: flex-end; }
.mp-bot-bubble { max-width: 82%; min-width: 0; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.mp-bot-msg.bot .mp-bot-bubble { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.mp-bot-msg.user .mp-bot-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.mp-bot-bubble p { margin: 0 0 8px; }
.mp-bot-bubble p:last-child { margin-bottom: 0; }
.mp-bot-bubble strong { font-weight: 700; }
.mp-bot-bubble em { font-style: italic; }
.mp-bot-bubble ul, .mp-bot-bubble ol { margin: 4px 0 8px 18px; padding: 0; }
.mp-bot-bubble li { margin: 2px 0; }
.mp-bot-bubble a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.mp-bot-msg.user .mp-bot-bubble a { color: #fff; }
.mp-bot-bubble code.mp-inline-code { background: var(--code-bg, rgba(0,0,0,.06)); border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.mp-bot-msg.typing .mp-bot-bubble { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.mp-bot-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: mpBotBlink 1.2s infinite ease-in-out; }
.mp-bot-dot:nth-child(2) { animation-delay: .2s; }
.mp-bot-dot:nth-child(3) { animation-delay: .4s; }
@keyframes mpBotBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.mp-bot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.mp-bot-form input[type=text] { flex: 1; border: 1px solid #d8e2f0; border-radius: 20px; padding: 9px 14px; font-size: 12.5px; outline: none; }
.mp-bot-form input[type=text]:focus { border-color: var(--blue); }
.mp-bot-form button[type=submit] { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.mp-bot-form button[type=submit]:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) { .mp-bot-panel { width: calc(100vw - 32px); right: -6px; } }
.account-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.summary-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
  padding: 17px;
}
.summary-card span { color: var(--muted); font-size: 11px; }
.summary-card strong { display: block; margin-top: 5px; font-size: 22px; color: var(--ink); }
.purchases-list {
  display: grid;
  gap: 14px;
}
.purchase-row {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr) 140px 180px;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  padding: 13px;
}
.purchase-thumb {
  height: 104px;
  border-radius: 9px;
  overflow: hidden;
  background: #f2f6fc;
  position: relative;
}
.purchase-thumb img { width: 100%; height: 100%; object-fit: cover; }
.purchase-info h3 { font-size: 17px; margin-bottom: 5px; }
.purchase-info p { color: var(--muted); font-size: 12px; max-width: 560px; }
.purchase-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.purchase-meta span {
  border: 1px solid #dbe5f2;
  background: #f8fbff;
  border-radius: 15px;
  padding: 4px 9px;
  font-size: 10px;
  color: #536780;
}
.purchase-price-block { text-align: right; }
.purchase-price-block strong { display: block; font-size: 22px; color: var(--ink); }
.purchase-price-block span { color: var(--muted); font-size: 11px; }
.purchase-actions-row {
  display: grid;
  gap: 9px;
}
.download-btn {
  height: 42px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2361e9, #246aff);
  color: white;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .16);
}
.secondary-link {
  text-align: center;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.purchase-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #078da2;
  font-weight: 800;
  font-size: 11px;
  margin-bottom: 5px;
}
.purchase-status::before { content: "✓"; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.demo-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-card-image { height: 185px; position: relative; overflow: hidden; background: #edf4ff; }
.demo-card-image img { width: 100%; height: 100%; object-fit: cover; }
.demo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 16px;
  background: #e8fbff;
  color: #058ea4;
  font-size: 10px;
  font-weight: 800;
}
.demo-card-body { padding: 17px; }
.demo-card-body h3 { font-size: 17px; margin-bottom: 5px; }
.demo-card-body p { color: var(--muted); font-size: 12px; min-height: 42px; }
.demo-card-actions { display: flex; gap: 10px; margin-top: 16px; }
.demo-shell { background: #f4f7fb; min-height: 100vh; }
.demo-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.demo-topbar-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.demo-topbar-title { display: flex; align-items: center; gap: 12px; }
.demo-topbar-title img { width: 38px; height: 42px; }
.demo-topbar-title strong { display: block; }
.demo-topbar-title span { color: var(--muted); font-size: 11px; }
.device-switch { display: flex; border: 1px solid var(--line); border-radius: 22px; padding: 3px; background: #f7faff; }
.device-switch button { height: 30px; padding: 0 12px; border-radius: 18px; font-size: 11px; color: var(--muted); }
.device-switch button.active { background: white; color: var(--blue); box-shadow: 0 2px 7px rgba(18,41,72,.08); }
.demo-frame-wrap { padding: 24px 0 34px; }
.demo-frame {
  width: min(100%, 1180px);
  margin: 0 auto;
  border: 1px solid #cfd9e7;
  border-radius: 18px;
  background: white;
  box-shadow: 0 24px 80px rgba(19,35,60,.15);
  overflow: hidden;
}
.demo-browser-bar {
  height: 42px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}
.demo-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.demo-browser-bar i:nth-child(2) { background: #ffbd4a; }
.demo-browser-bar i:nth-child(3) { background: #2ed573; }
.demo-url { margin-left: 12px; color: #7a8aa2; font-size: 11px; }
.arena-demo {
  background: #07111f;
  color: white;
  min-height: 760px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.arena-demo-nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.arena-logo { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .08em; }
.arena-logo-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #06b6d4, #2563eb); display: grid; place-items: center; font-weight: 900; }
.arena-demo-nav nav { display: flex; gap: 28px; font-size: 12px; color: #a8bed6; }
.arena-demo-nav a:first-child { color: #36d4ee; }
.arena-hero {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items: center;
  padding: 70px 54px;
  min-height: 520px;
  overflow: hidden;
}
.arena-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 45%, rgba(37,99,235,.28), transparent 32%), linear-gradient(90deg, #07111f 0%, rgba(7,17,31,.86) 48%, rgba(7,17,31,.18) 100%);
}
.arena-hero-copy, .arena-visual { position: relative; z-index: 1; }
.arena-hero h1 { font-size: 58px; line-height: .95; letter-spacing: -.05em; margin-bottom: 18px; }
.arena-hero h1 span { color: #22d3ee; }
.arena-hero p { color: #b9c8d8; max-width: 470px; margin-bottom: 24px; }
.arena-stats { display: flex; gap: 12px; margin: 26px 0; }
.arena-stats div { border: 1px solid rgba(34,211,238,.28); border-radius: 10px; padding: 13px 15px; min-width: 92px; background: rgba(8,24,42,.72); }
.arena-stats strong { display: block; color: #e8fbff; }
.arena-stats span { color: #4dd8ed; font-size: 10px; text-transform: uppercase; }
.arena-visual img { border-radius: 16px; box-shadow: 0 28px 80px rgba(0,0,0,.45); }
.arena-section { padding: 54px; background: #08182b; }
.arena-section h2 { font-size: 32px; margin-bottom: 18px; }
.arena-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.arena-plan { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.035); border-radius: 14px; padding: 22px; }
.arena-plan h3 { font-size: 18px; margin-bottom: 8px; }
.arena-plan p { color: #9fb3c9; font-size: 12px; }
.arena-plan strong { display: block; color: #22d3ee; font-size: 28px; margin-top: 18px; }

/* Product */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 308px; gap: 15px; }
.product-title h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.04em; margin-bottom: 11px; }
.meta { display: flex; align-items: center; gap: 15px; color: var(--muted); margin-bottom: 24px; }
.meta .pill { background: #f3eee5; padding: 2px 9px; border-radius: 5px; color: #505461; font-size: 11px; }
.stars { color: var(--gold); letter-spacing: 3px; }
.gallery-main {
  height: 408px; background: #f5f7fa; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; margin-bottom: 17px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-thumbs button { border: 1px solid var(--line); border-radius: 8px; height: 110px; overflow: hidden; }
.gallery-thumbs button.selected { border: 2px solid var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.purchase-card { padding: 22px; margin: 0 0 15px; }
.purchase-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.purchase-price { font-size: 39px; font-weight: 800; letter-spacing: -.04em; }
.purchase-price small { font-size: 17px; font-weight: 500; }
.premium-tag { background: #eaf1ff; color: var(--blue); font-size: 11px; padding: 5px 10px; border-radius: 6px; }
.purchase-card h4 { font-size: 12px; margin-bottom: 11px; }
.license {
  display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line);
  padding: 13px 13px; border-radius: 7px; margin-bottom: 10px; font-size: 12px;
}
.license.selected { border: 1.5px solid var(--blue); background: #fbfdff; }
.license span strong { display: block; }
.license span small { color: var(--muted); }
.radio { height: 17px; width: 17px; border-radius: 50%; border: 1px solid #d2dce9; margin-right: 9px; display: inline-block; vertical-align: middle; }
.selected .radio { border: 5px solid var(--blue); }
.included { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; display: grid; gap: 11px; color: var(--muted); font-size: 12px; }
.included span::before { content: "✓"; color: var(--cyan); margin-right: 10px; font-weight: 800; }
.purchase-actions { display: grid; gap: 10px; margin-top: 24px; }
.secure { color: var(--muted); font-size: 11px; text-align: center; margin: 16px 0 12px; }
.payment-icons { display: flex; justify-content: center; gap: 7px; }
.payment-icons span { border: 1px solid var(--line); border-radius: 5px; font-weight: 700; font-size: 11px; padding: 5px 10px; color: #213c70; }
.support-call { color: var(--muted); font-size: 12px; padding: 22px; }
.support-call strong { display: block; color: var(--ink); margin-bottom: 7px; }
.support-call a { color: var(--blue); font-weight: 600; display: block; margin-top: 13px; }
.tabs-panel {
  margin-top: 24px; border: 1px solid var(--line); border-radius: 9px; padding: 0 23px 26px;
}
.tabs { display: flex; height: 56px; border-bottom: 1px solid var(--line); gap: 40px; margin-bottom: 25px; }
.tabs button { color: var(--muted); font-size: 12px; height: 100%; position: relative; }
.tabs button.active { color: var(--blue); font-weight: 600; }
.tabs button.active::after { content: ""; position: absolute; height: 2px; background: var(--blue); left: 0; right: 0; bottom: 0; }
.description-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; }
.description-grid p { color: var(--muted); line-height: 2; font-size: 12px; margin-bottom: 21px; }
.description-grid h4 { margin: 10px 0; font-size: 13px; }
.good-for { list-style: none; padding: 0; color: var(--muted); line-height: 2.6; font-size: 12px; }
.good-for li::before { content: "✓"; color: var(--blue); margin-right: 16px; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; border-bottom: 1px solid var(--line); min-height: 34px; align-items: center; font-size: 11px; color: var(--muted); }
.files li span:last-child { margin-left: auto; }
.related { margin-top: 29px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-grid .product-card { height: 188px; }
.related-grid .product-image { height: 100px; }

/* Footer */
.site-footer { margin-top: 22px; border-top: 1px solid var(--line); }
.footer-main {
  display: grid; grid-template-columns: 260px repeat(3, 138px) 270px 230px;
  gap: 29px; padding: 24px 0 18px;
}
.footer-brand .brand { min-width: 0; margin-bottom: 10px; }
.footer-brand .brand img { height: 51px; }
.footer-brand p { color: var(--muted); font-size: 11px; margin: 9px 0 13px; }
.social { display: flex; gap: 10px; }
.social span { height: 28px; width: 28px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.footer-column h4 { font-size: 10px; font-weight: 800; text-transform: uppercase; margin-bottom: 9px; }
.footer-column a { display: block; color: var(--muted); font-size: 11px; line-height: 1.85; }
.newsletter p, .download-widget p { font-size: 10px; color: var(--muted); margin-bottom: 12px; }
.download-widget { border-left: 1px solid var(--line); padding-left: 22px; }
.zip-large { display: flex; gap: 12px; align-items: center; }
.zip-icon { height: 50px; width: 44px; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; border-radius: 7px; font-weight: 800; }
.footer-bottom {
  border-top: 1px solid var(--line); display: flex; height: 45px;
  align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted);
}

@media (max-width: 1150px) {
  .container { width: min(calc(100% - 40px), var(--container)); }
  .brand { min-width: auto; white-space: nowrap; gap: 8px; }
  .brand img { height: 40px; width: 35px; }
  .brand-title { font-size: 16px; }
  .brand-copy { display: block; font-size: 8px; }
  .header-row, .main-nav { gap: 14px; }
  .main-nav a { font-size: 10px; }
  .header-actions { gap: 12px; }
  .header-actions .btn { height: 38px; padding: 0 15px; font-size: 11px; }
  .home-layout, .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .widget { margin: 0; }
  .filters { flex-wrap: wrap; }
  .footer-main { grid-template-columns: repeat(3, 1fr); }
  .product-page .site-footer { margin-top: 8px; }
  .product-page .footer-main { grid-template-columns: 235px repeat(3, 110px) 240px; gap: 17px; padding: 19px 0 14px; }
  .feature-hero, .contact-layout { grid-template-columns: 1fr; }
  .pack-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .account-summary { grid-template-columns: repeat(2, 1fr); }
  .purchase-row { grid-template-columns: 140px minmax(0, 1fr); }
  .purchase-price-block { text-align: left; }
  .purchase-actions-row { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 760px) {
  body { font-size: 13px; }
  .site-header, .header-row { height: auto; }
  .header-row { flex-wrap: wrap; padding: 12px 0; }
  .main-nav { order: 3; overflow-x: auto; width: 100%; height: 46px; margin: 0; }
  .main-nav a.active::after { bottom: 2px; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-actions .btn { display: none; }
  .demo-topbar .header-actions { width: 100%; margin-left: 0; }
  .demo-topbar .header-actions .btn { display: inline-flex; flex: 1; padding: 0 10px; }
  .brand-copy { display: none; }
  .hero { height: auto; min-height: 600px; grid-template-columns: 1fr; padding: 48px 28px 25px; }
  .hero h1, .product-title h1 { font-size: 30px; }
  .hero-media { height: 250px; }
  .product-layout { grid-template-columns: 1fr; }
  .products-grid, .catalogue-grid, .news-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .catalogue-header { align-items: start; flex-direction: column; gap: 18px; }
  .catalogue-search { width: 100%; }
  .sidebar { display: block; }
  .sidebar .widget { margin-bottom: 16px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .product-page .footer-main { grid-template-columns: 1fr 1fr; }
  .feature-hero { padding: 28px; }
  .feature-hero h1 { font-size: 32px; }
  .feature-media img { max-height: 220px; }
  .pack-grid, .info-grid, .agency-strip, .form-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-topbar-row { align-items: start; flex-direction: column; padding: 13px 0; }
  .arena-demo-nav { padding: 0 20px; }
  .arena-demo-nav nav { display: none; }
  .arena-hero { grid-template-columns: 1fr; padding: 42px 22px; }
  .arena-hero h1 { font-size: 42px; }
  .arena-stats, .arena-plans { flex-direction: column; grid-template-columns: 1fr; }
  .arena-section { padding: 32px 22px; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item img { width: 100%; height: 150px; }
  .free-banner { align-items: start; flex-direction: column; }
  .account-summary, .purchase-row { grid-template-columns: 1fr; }
  .purchase-thumb { height: 170px; }
  .purchase-actions-row { grid-template-columns: 1fr; }
}

/* ============================================================
   ESPACE MEMBRE — navbar du compte client + panneaux
   ============================================================ */
.mp-member-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 7px 9px;
  margin-bottom: 22px;
}
.mp-member-nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.mp-member-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.mp-member-nav-link:hover { background: var(--soft); color: var(--ink); }
.mp-member-nav-link.is-active { background: var(--soft-blue); color: var(--blue); }
.mp-member-nav-ico { font-size: 15px; line-height: 1; }
.mp-member-nav-logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
}
.mp-member-nav-logout:hover { background: rgba(255, 107, 107, .09); }

.mp-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.mp-account-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 22px;
}
.mp-account-grid .mp-account-panel { margin-bottom: 0; }
.mp-account-panel-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 12px;
}
.mp-account-table { width: 100%; border-collapse: collapse; }
.mp-account-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mp-account-table tr:last-child td { border-bottom: 0; }
.mp-account-table td:first-child { color: var(--muted); width: 45%; }
.mp-account-note { font-size: 12.5px; line-height: 1.6; margin: 12px 0 14px; }

.mp-badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
}
.mp-badge.is-unlocked {
  background: rgba(34, 197, 94, .1);
  border-color: rgba(34, 197, 94, .25);
  color: #16a34a;
}
.mp-badge-ico { font-size: 15px; line-height: 1; }

@media (max-width: 860px) {
  .mp-account-grid { grid-template-columns: 1fr; }
  .mp-member-nav { justify-content: flex-start; }
}

/* ── Espace membre : messages, formulaires, tableau des sessions ─────────── */
.mp-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.mp-notice.is-ok  { background: rgba(34, 197, 94, .09); border: 1px solid rgba(34, 197, 94, .28); color: #16a34a; }
.mp-notice.is-err { background: rgba(255, 107, 107, .09); border: 1px solid rgba(255, 107, 107, .28); color: #dc2626; }

.mp-form { display: flex; flex-direction: column; gap: 14px; }
.mp-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mp-field { display: flex; flex-direction: column; gap: 6px; }
.mp-field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mp-field input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}
.mp-field input:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.mp-field input:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.mp-field-hint { font-size: 11.5px; color: var(--muted); }
.mp-form-submit { align-self: flex-start; height: 39px; display: inline-flex; align-items: center; margin-top: 4px; }

.mp-table-wrap { overflow-x: auto; }
.mp-session-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.mp-session-table th {
  text-align: left;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.mp-session-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
.mp-session-table tr:last-child td { border-bottom: 0; }
.mp-session-table tr.is-current { background: var(--soft-blue); }
.mp-session-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--soft);
  color: var(--muted);
}
.mp-session-badge.is-current { background: rgba(34, 197, 94, .12); color: #16a34a; }

@media (max-width: 860px) {
  .mp-form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SOUS-CATÉGORIES — CORRECTIFS

   Deux règles du thème supposaient un catalogue à un seul niveau. L'arrivée
   des sous-catégories les a mises en défaut :

   1. `.filters` n'était en `flex-wrap: wrap` que sous le point de rupture.
      Sur grand écran, les groupes restaient sur une ligne. Avec deux groupes
      (Catégorie, Prix) cela tenait ; le troisième — la ligne des
      sous-catégories — poussait la page 99 px hors de l'écran.

   2. `.widget-list li` est en `display: flex`. La sous-liste que l'on
      imbrique dedans devenait donc un FRÈRE du lien, posé à côté de lui et
      comprimé à 127 px de large au lieu d'occuper sa propre ligne.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. La barre de filtres se replie, à toutes les largeurs ───────────── */
.filters { flex-wrap: wrap; }

/* Le groupe des sous-catégories prend TOUTE la largeur : il précise le
   filtre de la ligne du dessus, il ne se met pas en concurrence avec lui.
   Un filet le rattache visuellement à ce qu'il détaille. */
.filter-group--sub {
  flex: 1 0 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line, #dce5f1);
}
.filter-group--sub .filter-label { font-weight: 700; }

/* Les groupes normaux peuvent rétrécir plutôt que déborder ; leurs boutons
   passent à la ligne suivante quand la place manque. */
.filter-group { flex-wrap: wrap; min-width: 0; }

/* ── 2. La colonne : une sous-liste occupe sa propre ligne ─────────────── */
.widget-list li { flex-wrap: wrap; }

/* La ligne d'une catégorie et sa sous-liste occupent chacune une ligne
   entière. Sans ces déclarations, la répartition en flex les met côte à côte
   et la sous-liste se retrouve écrasée à un tiers de la largeur. */
.widget-list li > a,
.widget-list li > .cat-row { flex: 1 1 100%; min-width: 0; }
.widget-list li > ul { flex: 0 0 100%; }

/* La sous-liste elle-même : ses entrées suivent la même mise en page que
   les racines, en plus discret et décalé. */
.widget-sub {
  list-style: none;
  margin: 5px 0 9px;
  padding: 0 0 0 15px;
  border-left: 1px solid var(--line, #dce5f1);
}
.widget-sub li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 27px;
  font-size: 13px;
}
.widget-sub li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  color: inherit;
  text-decoration: none;
  opacity: .84;
}
.widget-sub li > a:hover { opacity: 1; color: var(--blue, #2563eb); }
.widget-sub li > a.is-current { opacity: 1; font-weight: 700; color: var(--blue, #2563eb); }
.widget-sub .count {
  margin-left: auto;
  padding: 1px 8px;
  background: #f5f7fb;
  border-radius: 12px;
  font-size: 11px;
}

/* Le chevron d'une catégorie qui porte des enfants. */
.widget-list .cat-arrow { opacity: .5; font-size: .85em; margin-left: 4px; }
.widget-list .is-open > a { font-weight: 700; }

@media (max-width: 900px) {
  /* En colonne étroite, la sous-liste se décale moins : chaque pixel compte. */
  .widget-sub { padding-left: 11px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   L'ARBRE DES CATÉGORIES

   Une ligne porte deux cibles distinctes, et c'est le point important :
   le NOM filtre le catalogue, le CHEVRON déplie sur place. Les confondre
   obligeait à naviguer pour découvrir qu'une catégorie avait des enfants —
   donc à ne jamais le découvrir.

   Le chevron n'existe que là où il y a quelque chose à ouvrir : une flèche
   sur une catégorie sans enfant serait un mensonge.
   ═══════════════════════════════════════════════════════════════════════ */

/* La ligne : le lien prend la place, le chevron reste calé à droite. */
.cat-item { flex-wrap: wrap; }

.cat-row {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-height: 31px;
}

.cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  padding: 3px 0;
}
.cat-link:hover .cat-name { color: var(--blue, #2563eb); }
.cat-item.is-current > .cat-row > .cat-link { font-weight: 700; color: var(--blue, #2563eb); }

.cat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Le chevron. Zone de clic large — 28 px — parce qu'une flèche de 10 px se
   rate une fois sur deux, à la souris comme au doigt. */
.cat-toggle {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; border-radius: 6px;
  background: transparent;
  color: #7b8aa3;
  cursor: pointer;
  padding: 0;
  transition: background .14s, color .14s;
}
.cat-toggle:hover { background: #eef3fb; color: var(--blue, #2563eb); }
.cat-toggle:focus-visible { outline: 2px solid var(--blue, #2563eb); outline-offset: 1px; }

.cat-chevron {
  display: block;
  font-size: 11px;
  line-height: 1;
  transform: rotate(-90deg);         /* fermé : la pointe indique la droite */
  transition: transform .18s ease;
}
.cat-item.is-open > .cat-row > .cat-toggle .cat-chevron { transform: rotate(0deg); }

/* Un repère discret sur les catégories qui cachent quelque chose : le
   compteur seul ne dit pas qu'il y a des enfants. */
.cat-item.has-sub > .cat-row > .cat-link .count { margin-right: 2px; }

/* La sous-liste occupe sa propre ligne, en retrait. */
.widget-sub { flex: 0 0 100%; }

@media (prefers-reduced-motion: reduce) {
  .cat-chevron, .cat-toggle { transition: none; }
}

/* ── Accès aux mises à jour expiré ──────────────────────────────────────────
   Le bouton reste en place mais devient inerte : le retirer laisserait croire
   que l'achat a disparu. Le curseur et l'absence de href disent le reste. */
.download-btn.is-expired {
  background: linear-gradient(135deg, #3a4155, #464e63);
  color: rgba(255, 255, 255, .55);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: auto;
}
.download-btn.is-renew {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 8px 18px rgba(217, 119, 6, .18);
}

/* ── Choix de l'offre sur la fiche produit ──────────────────────────────────
   La DURÉE distingue les formules, pas seulement le prix : elle est donc
   lisible sur chaque ligne, sans avoir à comparer deux chiffres. */
.mp-offers { margin-bottom: 14px; }
.mp-offers__t { font-size: 12.5px; font-weight: 700; opacity: .7; margin-bottom: 8px; }
.mp-offer {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 7px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px;
}
.mp-offer:hover { border-color: #2361e9; }
.mp-offer.is-on { border-color: #2361e9; background: rgba(35, 97, 233, .07); }
.mp-offer__b { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.mp-offer__b strong { font-size: 13.5px; }
.mp-offer__b small { font-size: 11.5px; opacity: .6; }
.mp-offer__p { font-size: 15px; font-weight: 800; white-space: nowrap; }
