@property --sa-glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes sa-glow-spin { to { --sa-glow-angle: 360deg; } }
@keyframes sa-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sa-panel-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sa-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(3, 2, 12, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: sa-overlay-in .25s ease both;
}
.sa-overlay.is-open { display: flex; }
body.sa-locked { overflow: hidden; }

.sa-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  isolation: isolate;
  border-radius: 28px;
  animation: sa-panel-in .45s cubic-bezier(.16,1,.3,1) both;
}
.sa-wrap--wide { max-width: 940px; }
.sa-wrap::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 31px;
  background: conic-gradient(
    from var(--sa-glow-angle, 0deg),
    transparent 0%,
    #A202C7 6%,
    #FF1CF7 12%,
    rgba(162,2,199,.45) 18%,
    transparent 28%,
    transparent 58%,
    #431E96 64%,
    rgba(162,2,199,.25) 70%,
    transparent 78%,
    #A202C7 92%,
    #FF1CF7 96%,
    transparent 100%
  );
  z-index: -1;
  animation: sa-glow-spin 6s linear infinite;
  pointer-events: none;
}
.sa-box {
  background: linear-gradient(160deg, #0E0B1F 0%, #07070F 60%, #0D0523 100%);
  border-radius: 26px;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}
.sa-box--landscape {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.sa-box::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(162,2,199,.22) 0%, transparent 65%);
  pointer-events: none;
}

.sa-left {
  padding: 48px 42px;
  background: linear-gradient(145deg, #12082E 0%, #1A0840 50%, #0D0523 100%);
  border-radius: 26px 0 0 26px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden;
}
.sa-left-header { position: relative; z-index: 1; }
.sa-left-middle { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sa-left-footer { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.sa-left-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.sa-left-stat { text-align: left; }
.sa-left-stat-value {
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 0%, rgba(224,96,255,.85));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; line-height: 1.1;
}
.sa-left-stat-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.5); margin-top: 4px; display: block;
}
.sa-left::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(162,2,199,.28) 0%, transparent 65%);
  pointer-events: none;
}
.sa-left-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: #E060FF;
  margin-bottom: 32px;
  position: relative; z-index: 1;
}
.sa-left-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #E060FF; box-shadow: 0 0 10px rgba(224, 96, 255, .8);
}
.sa-left-title {
  font-size: 32px; font-weight: 900;
  letter-spacing: -.028em; line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, rgba(200,150,255,.85));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 16px;
  text-wrap: balance;
  position: relative; z-index: 1;
}
.sa-left-sub {
  font-size: 14.5px; color: rgba(255,255,255,.65);
  line-height: 1.55; margin: 0 0 28px;
  text-wrap: balance;
  position: relative; z-index: 1;
}
.sa-left-bullets {
  list-style: none; padding: 0; margin: 0;
  position: relative; z-index: 1;
}
.sa-left-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0;
  font-size: 13px; color: rgba(255,255,255,.72);
}
.sa-left-bullets svg {
  flex-shrink: 0; width: 14px; height: 14px;
  margin-top: 3px;
  color: #10B981;
}

.sa-left-logo {
  position: relative; z-index: 1;
  margin-bottom: 14px;
  height: 32px;
  display: block;
}
.sa-left-logo img {
  height: 100%; width: auto; display: block;
}
.sa-left-marketplaces {
  position: relative; z-index: 1;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sa-left-marketplaces-label {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
  display: block;
}
.sa-left-marketplaces img {
  width: 100%; height: auto; display: block;
  opacity: 0.55;
  filter: grayscale(0.15) brightness(1.05);
  transition: opacity .25s ease;
}

.sa-left-marketplaces:hover img {
  opacity: 0.75;
}

.sa-right {
  padding: 40px 38px;
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto; max-height: 90vh;
  position: relative;
}

.sa-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  transition: background .2s, color .2s;
  font-size: 16px;
}
.sa-close:hover { background: rgba(255,255,255,.12); color: #fff; }

.sa-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, rgba(162,2,199,.22), rgba(255,28,247,.16));
  border: 1px solid rgba(162,2,199,.4);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #E060FF; text-transform: uppercase;
  margin-bottom: 16px; align-self: flex-start;
}
.sa-title {
  font-size: 26px; font-weight: 900;
  letter-spacing: -.025em; line-height: 1.2;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #fff 30%, rgba(200,150,255,.85));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sa-sub {
  font-size: 13px; color: rgba(255,255,255,.55);
  line-height: 1.6; margin: 0 0 28px;
}
.sa-sub strong { color: rgba(200,150,255,.85); font-weight: 600; }

.sa-form { display: flex; flex-direction: column; gap: 14px; }
.sa-row { display: flex; flex-direction: column; gap: 6px; }
.sa-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sa-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.sa-input {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  padding: 13px 16px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.sa-input::placeholder { color: rgba(255,255,255,.3); }
.sa-input:focus {
  outline: none;
  border-color: rgba(162,2,199,.6);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 4px rgba(162,2,199,.12);
}

.sa-submit {
  margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #431E96 0%, #A202C7 100%);
  border: 0;
  color: #fff;
  font-size: 14px; font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(67,30,150,.45);
  transition: transform .2s, box-shadow .2s;
}
.sa-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(67,30,150,.6);
}

.sa-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 6px;
  color: rgba(255,255,255,.3);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.sa-divider::before, .sa-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,.08);
}

/* CHECKOUT-UX-5 : bouton "Se connecter / S'inscrire avec Google".
   Avant : sans regle dedie, le bouton heritait du flow par defaut et
   l'icone + texte etaient alignes a gauche.
   Maintenant : full-width, centre, look coherent avec .sa-submit en ghost. */
.sa-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.sa-google-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}
.sa-google-btn:active {
  transform: translateY(0);
}
.sa-google-btn svg {
  flex-shrink: 0;
}
.sa-google-btn span {
  letter-spacing: 0.01em;
}

.sa-foot {
  margin-top: 22px;
  font-size: 13px; color: rgba(255,255,255,.5);
  text-align: center;
}
.sa-foot a {
  color: #E060FF;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.sa-foot a:hover { text-decoration: underline; }

.sa-legal {
  margin-top: 18px;
  font-size: 11px; color: rgba(255,255,255,.35);
  line-height: 1.5;
  text-align: center;
}
.sa-legal a { color: rgba(255,255,255,.55); text-decoration: underline; }

@media (max-width: 700px) {
  .sa-overlay {
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    background: rgba(3, 2, 12, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .sa-wrap {
    animation: sa-overlay-in .25s ease both;
    isolation: auto;
    margin-top: 8px;
    margin-bottom: 24px;
  }
  .sa-wrap::before {
    display: none;
  }
  .sa-box {
    padding-top: 56px;
  }
  .sa-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 4100;
    background: rgba(20, 12, 40, 0.92);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  .sa-box--landscape {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sa-left { display: none; }
  .sa-right { padding: 32px 26px; max-height: none; }
  .sa-wrap--wide { max-width: 460px; }
}
@media (max-width: 520px) {
  .sa-box {
    padding: 56px 26px 32px;
  }
  .sa-row-split { grid-template-columns: 1fr; }
  .sa-title { font-size: 22px; }
}

/* === Newsletter success message === */
.sx-9-cta-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 540px;
  margin: 28px auto 24px;
  padding: 20px 24px;
  background: rgba(0, 196, 106, 0.06);
  border: 1px solid rgba(0, 196, 106, 0.22);
  border-radius: 14px;
  text-align: left;
  position: relative;
  z-index: 2;
  animation: sx9SuccessIn .4s ease both;
}

.sx-9-cta-success[hidden] {
  display: none;
}

.sx-9-cta-success-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0, 196, 106, 0.14);
  border: 1px solid rgba(0, 196, 106, 0.30);
  display: flex; align-items: center; justify-content: center;
  color: #4CD58F;
}

.sx-9-cta-success-icon svg {
  width: 16px; height: 16px;
}

.sx-9-cta-success-title {
  display: block;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}

.sx-9-cta-success-text {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  line-height: 1.5;
}

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

/* Honeypot field (invisible) */
.sx-9-cta-honeypot {
  position: absolute !important;
  left: -9999px !important;
  visibility: hidden;
}

/* ============================================================
 * FRONT-NAV-AUTH-1 : pill mobile "Catalogue B2B"
 * Affichee uniquement < 1024px (taille au-dessus = lien dans nav-menu visible)
 * Inseree dans .sx-1-nav-actions, AVANT le lien Connexion
 * ============================================================ */
.sx-1-nav-catalog-mobile {
  display: none;
}
@media (max-width: 1023px) {
  .sx-1-nav-catalog-mobile {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    background: linear-gradient(135deg, #431E96 0%, #A202C7 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 255, 0.25);
    white-space: nowrap;
    letter-spacing: -0.005em;
    transition: filter .15s ease, transform .15s ease;
  }
  .sx-1-nav-catalog-mobile:hover {
    filter: brightness(1.1);
  }
  .sx-1-nav-catalog-mobile:active {
    transform: translateY(1px);
  }
}
