.sx-1-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    /* Dark : fond subtil cohérent avec page dark. Light : transparent.
       Avant : transparent en dark donnait l'effet "header fantôme". */
    background: rgba(11, 4, 24, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  }

.sx-1-nav.is-scrolled {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(7, 2, 15, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.10);
  }

/* En light, on garde un header propre clair, pas de gris noir */
body[data-catalog-theme="light"] .sx-1-nav {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(67, 30, 150, 0.08);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
  }
body[data-catalog-theme="light"] .sx-1-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(67, 30, 150, 0.14);
  }

.sx-1-btn-primary {
    background: linear-gradient(135deg, var(--violet) 0%, var(--accent) 60%, var(--magenta) 100%);
    color: white;
    position: relative; overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 8px 24px rgba(124, 58, 255, 0.35),
      0 0 60px rgba(255, 45, 190, 0.20);
  }

.sx-1-btn-primary::before {
    content: ''; position: absolute; inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--violet), var(--magenta), var(--cyan));
    z-index: -1; opacity: 0;
    transition: opacity 0.4s; filter: blur(8px);
  }

.sx-1-btn-primary:hover::before { opacity: 0.8; }

.sx-1-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 16px 48px rgba(255, 45, 190, 0.45),
      0 0 80px rgba(124, 58, 255, 0.45);
  }

.sx-1-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
    color: white; backdrop-filter: blur(8px);
    transition: all 0.3s;
  }

.sx-1-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
  }

.sx-1-nav-logo-wrap {
    height: 40px;
    display: flex; align-items: center;
  }

.sx-1-nav-logo-wrap img {
    height: 100%;
    width: auto;
    display: block;
  }

.sx-1-nav-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }

.sx-1-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

.sx-1-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
  }

.sx-1-nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: #9CA3AF;
    text-decoration: none;
    transition: color .15s ease;
  }

.sx-1-nav-menu a:hover { color: #ffffff; }

.sx-1-nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-self: end;
  }

.sx-1-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #C9C2D8;
    text-decoration: none;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
    line-height: 1;
    height: 38px;
    padding: 0 14px 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    vertical-align: middle;
    box-sizing: border-box;
  }
/* Alignement vertical strict : tous les enfants forcés en center + line-height 1 */
.sx-1-nav-login > * {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    vertical-align: middle;
    flex: 0 0 auto;
  }
.sx-1-nav-login svg {
    flex-shrink: 0;
    display: block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
  }
.sx-1-nav-login span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    vertical-align: middle;
  }

.sx-1-nav-login:hover {
    color: #ffffff;
    background: rgba(162, 2, 199, 0.10);
    border-color: rgba(162, 2, 199, 0.30);
  }

/* Bouton 'Mon compte' injecte recoit aussi l'icone svg directe (sans
   .sx-1-nav-login-icon class), donc il faut le rendre visible */
.sx-1-nav-auth-injected svg { display: block; }

/* Light theme : adapter contrastes */
body[data-catalog-theme="light"] .sx-1-nav-login {
    color: #4b3a7a;
    background: rgba(255, 255, 255, 0.50);
    border-color: rgba(67, 30, 150, 0.14);
  }
body[data-catalog-theme="light"] .sx-1-nav-login:hover {
    color: #1a0e3e;
    background: rgba(67, 30, 150, 0.08);
    border-color: rgba(67, 30, 150, 0.30);
  }

@media (max-width: 640px) {
    .sx-1-nav-actions {
      gap: 10px;
    }
    .sx-1-nav-login {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: rgba(255, 255, 255, 0.85);
      flex-shrink: 0;
    }
    .sx-1-nav-login:hover,
    .sx-1-nav-login:active {
      background: rgba(255, 255, 255, 0.10);
      border-color: rgba(255, 255, 255, 0.20);
      color: #fff;
    }
    .sx-1-nav-login-text {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .sx-1-nav-login-icon {
      display: block;
    }
  }

.sx-1-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

.sx-1-nav-cta-short { display: none; }

@media (max-width: 640px) {
    .sx-1-nav-cta {
      padding: 8px 14px;
      gap: 4px;
    }
    .sx-1-nav-cta-full { display: none; }
    .sx-1-nav-cta-short { display: inline; }
    .sx-1-nav-cta-arrow { display: none; }
  }

@media (max-width: 1023px) {
    .sx-1-nav-menu { display: none; }
  }

.sx-10-footer-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
      radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124, 58, 255, 0.08) 0%, transparent 50%),
      linear-gradient(180deg, #100628 0%, #07020f 50%, #050110 100%);
    border-top: 1px solid var(--divider-strong);
  }

.sx-10-footer-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
  }

.sx-10-footer {
    position: relative;
    z-index: 1;
    max-width: 1380px;
    margin: 0 auto;
    padding: 80px 32px 32px;
  }

.sx-10-footer-top {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(160px, 1fr));
    gap: 60px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--divider);
  }

.sx-10-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

.sx-10-footer-logo {
    height: 36px;
    display: block;
  }

.sx-10-footer-logo img {
    height: 100%;
    width: auto;
    display: block;
  }

/* Phase 3.7.1 : switch logo selon theme (Sam : logo blanc OK en dark,
   logo color upload OK en light). On garde les 2 <img> dans le DOM
   et on switche par CSS pour eviter tout flash.
   Note : les selecteurs ciblent .sx-10-footer-logo img.<classe> pour gagner
   en specificite contre la regle .sx-10-footer-logo img { display: block } posee plus haut. */
.sx-10-footer-logo img.sx-10-footer-logo-light { display: none; }
.sx-10-footer-logo img.sx-10-footer-logo-dark { display: block; }
body[data-catalog-theme="light"] .sx-10-footer-logo img.sx-10-footer-logo-dark { display: none; }
body[data-catalog-theme="light"] .sx-10-footer-logo img.sx-10-footer-logo-light { display: block; }

.sx-10-footer-tagline {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    max-width: 320px;
  }

.sx-10-footer-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
  }

.sx-10-footer-social {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  }

.sx-10-footer-social:hover {
    background: rgba(124, 58, 255, 0.18);
    border-color: rgba(124, 58, 255, 0.45);
    color: #FFFFFF;
    transform: translateY(-2px);
  }

.sx-10-footer-social svg {
    width: 18px;
    height: 18px;
  }

.sx-10-footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    align-self: flex-start;
  }

.sx-10-footer-pill-flag {
    display: inline-flex;
    align-items: stretch;
    width: 16px;
    height: 11px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
  }

.sx-10-footer-pill-flag span {
    flex: 1;
    height: 100%;
  }

.sx-10-footer-pill-flag .sx-10-flag-blue   { background: #002654; }

.sx-10-footer-pill-flag .sx-10-flag-white  { background: #FFFFFF; }

.sx-10-footer-pill-flag .sx-10-flag-red    { background: #ED2939; }

.sx-10-footer-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

.sx-10-footer-col-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    margin: 0;
  }

.sx-10-footer-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

.sx-10-footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

.sx-10-footer-link:hover {
    color: #FFFFFF;
  }

.sx-10-footer-link::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--violet-brand) 0%, var(--magenta) 100%);
    transition: width 0.25s ease;
  }

.sx-10-footer-link:hover::before {
    width: 14px;
  }

.sx-10-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    flex-wrap: wrap;
  }

.sx-10-footer-copyright {
    font-size: 12.5px;
    color: var(--text-quaternary);
    font-weight: 500;
  }

.sx-10-footer-copyright strong {
    color: var(--text-tertiary);
    font-weight: 600;
  }

.sx-10-footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

.sx-10-footer-meta {
    font-size: 12.5px;
    color: var(--text-quaternary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

.sx-10-footer-meta svg {
    width: 12px;
    height: 12px;
    color: rgba(124, 58, 255, 0.85);
  }

.sx-10-footer-locale {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text-tertiary);
    cursor: default;
  }

.sx-10-footer-locale svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
  }

@media (max-width: 1024px) {
    .sx-10-footer-top {
      grid-template-columns: 1fr 1fr;
      gap: 48px 40px;
    }
    .sx-10-footer-brand {
      grid-column: 1 / -1;
    }
  }

@media (max-width: 600px) {
    .sx-10-footer { padding: 64px 20px 28px; }
    .sx-10-footer-top {
      grid-template-columns: 1fr;
      gap: 40px;
      padding-bottom: 40px;
    }
    .sx-10-footer-brand { grid-column: auto; }
    .sx-10-footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
    }
    .sx-10-footer-bottom-right {
      gap: 16px;
    }
  }

/* ============================================================
   Phase 3.6.1 - Footer light theme overrides
   Bug : footer restait dark en theme light.
   ============================================================ */
body[data-catalog-theme="light"] .sx-10-footer-wrap {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124, 58, 255, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #F8F5FB 0%, #F1ECF6 50%, #EAE3F1 100%);
  border-top: 1px solid var(--cat-border);
}
body[data-catalog-theme="light"] .sx-10-footer-wrap::before {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(67, 30, 150, 0.04) 1px, transparent 1px);
  opacity: 0.8;
}
body[data-catalog-theme="light"] .sx-10-footer-top {
  border-bottom-color: var(--cat-border);
}
body[data-catalog-theme="light"] .sx-10-footer-tagline {
  color: var(--cat-muted);
}
body[data-catalog-theme="light"] .sx-10-footer-social {
  background: rgba(67, 30, 150, 0.04);
  border-color: rgba(67, 30, 150, 0.14);
  color: var(--cat-muted);
}
body[data-catalog-theme="light"] .sx-10-footer-social:hover {
  background: rgba(67, 30, 150, 0.10);
  border-color: rgba(67, 30, 150, 0.40);
  color: #431E96;
}
body[data-catalog-theme="light"] .sx-10-footer-pill {
  background: rgba(67, 30, 150, 0.05);
  border-color: rgba(67, 30, 150, 0.14);
  color: var(--cat-text);
}
body[data-catalog-theme="light"] .sx-10-footer-col-title {
  color: var(--cat-muted);
}
body[data-catalog-theme="light"] .sx-10-footer-link {
  color: var(--cat-muted);
}
body[data-catalog-theme="light"] .sx-10-footer-link:hover {
  color: #431E96;
}
body[data-catalog-theme="light"] .sx-10-footer-copyright {
  color: var(--cat-muted);
}
body[data-catalog-theme="light"] .sx-10-footer-copyright strong {
  color: var(--cat-text);
}
body[data-catalog-theme="light"] .sx-10-footer-meta {
  color: var(--cat-muted);
}
body[data-catalog-theme="light"] .sx-10-footer-meta svg {
  color: #7C3AFF;
}
body[data-catalog-theme="light"] .sx-10-footer-locale {
  background: rgba(67, 30, 150, 0.04);
  border-color: rgba(67, 30, 150, 0.14);
  color: var(--cat-text);
}

/* ════════════════════════════════════════════════════════════════════
   P3 — Cohérence alignement headers buyer (panier, checkout-v2,
   mon-compte, boutique, boutique-produit, accueil)
   ════════════════════════════════════════════════════════════════════ */

/* Force l'alignement vertical parfait des éléments du nav actions.
   Avant : .sx-1-nav-login pouvait dériver d'1-2px par rapport au
   toggle theme (cat-theme-toggle) à cause d'un line-height implicite. */
.sx-1-nav-actions > * {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Note : le bouton "Mon compte" est injecté par auth-client.js avec la
   classe .sx-1-nav-login (pas .sx-1-nav-account). Les styles sont définis
   plus haut dans le fichier sur .sx-1-nav-login (hauteur 38px, padding,
   gap, etc.). Voir bloc principal autour de la ligne 117. */
