/* Accès à la campagne et états interactifs partagés par la vitrine. */
.section-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.section-action--method { justify-content: center; margin-top: 28px; }
.section-action--international { margin-top: 32px; }
.campaign-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 17px 12px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #fff 10%, #f1effb 100%);
  color: #4d3678;
  box-shadow: inset 0 0 0 1px #7055b826, 0 2px 4px #43306904;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.campaign-link>span { text-wrap: nowrap; }
.campaign-link>svg {
  flex: 0 0 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Le fond coloré se fond sous le libellé sans modifier la mise en page. */
body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .self-proof__cta) {
  position: relative;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  transform: none;
  translate: none;
  --action-gradient: linear-gradient(110deg, #7543b1 0%, #5552bd 46%, #2567c0 100%);
}
body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .self-proof__cta)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: var(--action-gradient);
  box-shadow: inset 0 1px 0 #ffffff26;
  opacity: 0;
}
body[data-ambiance="opale"] .hero .site-field>.button,
body[data-ambiance="opale"] .hero-mobile-action>.button,
body[data-ambiance="opale"] .offer-copy>.button {
  background: linear-gradient(110deg, #533d7d, #61418e);
  color: #fff;
}
body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .self-proof__cta):is(:focus-visible, :active) {
  color: #fff;
  box-shadow: 0 4px 14px #4944a526;
}
body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .self-proof__cta):is(:focus-visible, :active)::before {
  opacity: 1;
}
body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .self-proof__cta):focus-visible {
  outline: 3px solid #3560c8;
  outline-offset: 4px;
}
body[data-ambiance="opale"] .hero .site-field>.button:active { transform: none; }

body[data-ambiance="opale"] #notre-exemple .self-proof__cta {
  min-height: 54px;
  padding: 12px 22px;
  gap: 22px;
  border-radius: 12px;
  background: linear-gradient(110deg, #ded1fa, #cde1fb);
  --action-gradient: linear-gradient(110deg, #8054ce, #3b66d4);
  color: #40316d;
  box-shadow: 0 2px 5px #6553a314, 0 7px 18px #6851a814, inset 0 1px 0 #ffffff70;
}

body[data-ambiance="opale"] #notre-exemple .self-proof__cta:is(:focus-visible, :active) {
  color: #fff;
  box-shadow: 0 4px 12px #6954c02b, 0 10px 24px #4768cc24;
}
@media (hover: hover) and (pointer: fine) {
  body[data-ambiance="opale"] #notre-exemple .self-proof__cta:hover {
    color: #fff;
    box-shadow: 0 4px 12px #6954c02b, 0 10px 24px #4768cc24;
  }
}

/* Les liens d'action conservent leur légèreté et prennent une lumière colorée. */
body[data-ambiance="opale"] :is(.text-button, .hero-enterprise) {
  position: relative;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 8px;
}
body[data-ambiance="opale"] :is(.text-button, .hero-enterprise)::before {
  content: "";
  position: absolute;
  inset: 0 -10px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, #e9defa, #dcecff);
  opacity: 0;
  pointer-events: none;
}
body[data-ambiance="opale"] :is(.text-button, .hero-enterprise):is(:focus-visible, :active) {
  color: #354fa6;
}
body[data-ambiance="opale"] :is(.text-button, .hero-enterprise):is(:focus-visible, :active)::before { opacity: 1; }
:is(.text-button, .self-proof__cta, .hero-enterprise, .header-cta, .hero-mobile-action>.button)>span { display: inline-block; }

@media (hover: hover) and (pointer: fine) {
  body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .self-proof__cta):hover:not(:disabled) {
    color: #fff;
    box-shadow: 0 4px 10px #4944a51a, 0 10px 24px #4267bd20;
  }
  body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .self-proof__cta):hover:not(:disabled)::before { opacity: 1; }
  body[data-ambiance="opale"] :is(.text-button, .hero-enterprise):hover { color: #354fa6; }
  body[data-ambiance="opale"] :is(.text-button, .hero-enterprise):hover::before { opacity: 1; }
  .demo-tabs .sector-tab:hover:not(.active),
  .qualification-tabs button:hover:not(.active),
  .niche-controls button:hover,
  .am13__pause:hover {
    background: linear-gradient(110deg, #ebe3f9, #dcecff);
    color: #354fa6;
  }
}
@media (prefers-reduced-motion: no-preference) {
  body[data-ambiance="opale"] .hero .site-field>.button,
  body[data-ambiance="opale"] .hero-mobile-action>.button,
  body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .text-button, .self-proof__cta, .hero-enterprise) {
    transition: color 160ms ease-out, box-shadow 220ms ease-out, scale 160ms cubic-bezier(.16, 1, .3, 1), translate 220ms cubic-bezier(.16, 1, .3, 1);
  }
  body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .text-button, .self-proof__cta, .hero-enterprise)::before {
    transition: opacity 220ms ease-out;
  }
  :is(.text-button, .self-proof__cta, .hero-enterprise, .header-cta, .hero-mobile-action>.button)>span,
  .campaign-link>svg { transition: translate 220ms cubic-bezier(.16, 1, .3, 1); }
  @media (hover: hover) and (pointer: fine) {
    body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .self-proof__cta):hover:not(:disabled) { translate: 0 -1px; }
    :is(.text-button, .self-proof__cta, .hero-enterprise, .header-cta, .hero-mobile-action>.button):hover>span { translate: 2px -2px; }
    .campaign-link:hover>svg { translate: 3px 0; }
  }
  body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .text-button, .self-proof__cta, .hero-enterprise):active:not(:disabled) {
    scale: .96;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .text-button, .self-proof__cta, .hero-enterprise),
  body[data-ambiance="opale"] :is(.button, .campaign-link, .header-cta, .text-button, .self-proof__cta, .hero-enterprise)::before {
    transition: none;
    scale: 1;
    translate: none;
  }
}
@media (max-width: 680px) {
  .section-action { justify-content: center; margin-top: 24px; }
}

/* La navigation offre un accès direct, la première action reste la plus visible. */
.header { gap: 22px; }
.header nav { gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
body[data-ambiance="opale"] .header .nav-campaign {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 13px;
  background: linear-gradient(110deg, #533d7d, #61418e);
  box-shadow: 0 2px 6px #533d7d14;
}
.section-action--comparison { margin-top: 26px; }
body[data-ambiance="opale"] .hero .site-field {
  padding: 8px;
  border-radius: 20px;
}
body[data-ambiance="opale"] .hero .site-field>.button--hero,
body[data-ambiance="opale"] .hero .hero-mobile-action>.button--hero {
  min-height: 64px;
  padding-inline: 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(110deg, #603c92, #5848a6);
  --action-gradient: linear-gradient(110deg, #8345bc, #5952c7 48%, #236ac3);
  box-shadow: 0 3px 6px #533d7d24, 0 9px 24px #6851a81a, inset 0 1px 0 #ffffff26;
}
@media (hover: hover) and (pointer: fine) {
  body[data-ambiance="opale"] .hero .site-field>.button--hero:hover,
  body[data-ambiance="opale"] .hero .hero-mobile-action>.button--hero:hover {
    box-shadow: 0 5px 12px #7147b02b, 0 15px 32px #4267bd33, inset 0 1px 0 #ffffff33;
  }
}
@media (prefers-reduced-motion: no-preference) {
  body[data-ambiance="opale"] .hero .site-field>.button--hero,
  body[data-ambiance="opale"] .hero .hero-mobile-action>.button--hero {
    transition: color 160ms ease-out, box-shadow 260ms ease-out, scale 240ms cubic-bezier(.16, 1, .3, 1), translate 240ms cubic-bezier(.16, 1, .3, 1);
  }
  @media (hover: hover) and (pointer: fine) {
    body[data-ambiance="opale"] .hero .site-field>.button--hero:hover,
    body[data-ambiance="opale"] .hero .hero-mobile-action>.button--hero:hover {
      scale: 1.055;
      translate: 0 -2px;
    }
  }
  body[data-ambiance="opale"] .hero .site-field>.button--hero:active,
  body[data-ambiance="opale"] .hero .hero-mobile-action>.button--hero:active { scale: .96; translate: 0 0; }
}
@media (max-width: 1200px) and (min-width: 851px) {
  .header { gap: 14px; }
  .header nav { gap: 16px; font-size: 12px; }
  .header .wordmark .brand-logo { width: 200px; }
  .header-actions { gap: 6px; }
  .header .header-cta { gap: 8px; padding-inline: 10px; font-size: 12px; }
  body[data-ambiance="opale"] .header .nav-campaign { padding-inline: 14px; font-size: 12px; }
}
@media (max-width: 720px) {
  .opening .header { display: grid; grid-template-columns: 1fr auto; height: auto; padding-block: 16px 8px; gap: 12px; }
  .header-actions { display: contents; }
  .header .wordmark { grid-column: 1; grid-row: 1; }
  .header .header-cta { grid-column: 2; grid-row: 1; }
  .header .nav-campaign { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  body[data-ambiance="opale"] .hero .hero-mobile-action>.button--hero { font-size: 17px; }
}
