/* OkDak — animations UX partagées (modales, toasts, skeletons, validation…) */

/* —— Modales onboarding —— */
@keyframes okdakModalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes okdakModalCardIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.okdak-modal-enter > [class*="__backdrop"],
.okdak-modal-enter > .home-onboarding__backdrop,
.okdak-modal-enter > .profil-onboarding__backdrop,
.okdak-modal-enter > .dash-onboarding__backdrop,
.okdak-modal-enter > .explorer-onboarding__backdrop,
.okdak-modal-enter > .msg-onboarding__backdrop,
.okdak-modal-enter > .ia-onboarding__backdrop {
  animation: okdakModalBackdropIn 0.32s ease both;
}

.okdak-modal-enter > [class*="__card"],
.okdak-modal-enter > .home-onboarding__card,
.okdak-modal-enter > .profil-onboarding__card,
.okdak-modal-enter > .dash-onboarding__card,
.okdak-modal-enter > .explorer-onboarding__card,
.okdak-modal-enter > .msg-onboarding__card,
.okdak-modal-enter > .ia-onboarding__card {
  animation: okdakModalCardIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

/* —— Toasts globaux —— */
@keyframes okdakToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes okdakToastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.98);
  }
}

.toast {
  animation: none;
}

.toast.show {
  animation: okdakToastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.toast.is-leaving {
  animation: okdakToastOut 0.24s ease forwards;
}

.toast.success {
  background: linear-gradient(145deg, #2d8f4e, #34c759) !important;
  color: #fff !important;
}

.toast.error {
  background: linear-gradient(145deg, #c0392b, #ff4757) !important;
  color: #fff !important;
}

.toast.info {
  background: linear-gradient(145deg, #2a5fc7, #4c82ff) !important;
  color: #fff !important;
}

/* —— Bannière mise à jour PWA —— */
.okdak-update-banner {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 10070;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  background: linear-gradient(145deg, #1e1e2f, #2a2a42);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  max-width: min(94vw, 480px);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.okdak-update-banner.is-visible {
  transform: translateX(-50%) translateY(0);
}

.okdak-update-banner__text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.35;
}

.okdak-update-banner__btn {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #2a5fc7, #4c82ff);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.okdak-update-banner__btn:hover {
  filter: brightness(1.08);
}

.okdak-update-banner__dismiss {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

/* —— Modale de confirmation —— */
.okdak-confirm {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.okdak-confirm[hidden] {
  display: none !important;
}

.okdak-confirm__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.okdak-confirm__card {
  position: relative;
  width: min(92vw, 400px);
  padding: 1.25rem 1.35rem 1.1rem;
  background: linear-gradient(160deg, #1e1e2f 0%, #252538 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.okdak-confirm__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.okdak-confirm__text {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.okdak-confirm__actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.okdak-confirm__btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.okdak-confirm__btn--cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.okdak-confirm__btn--cancel:hover {
  background: rgba(255, 255, 255, 0.16);
}

.okdak-confirm__btn--ok {
  background: linear-gradient(145deg, #2a5fc7, #4c82ff);
  color: #fff;
}

.okdak-confirm__btn--ok.is-danger {
  background: linear-gradient(145deg, #c0392b, #ff4757);
}

.okdak-confirm__btn--ok:hover {
  filter: brightness(1.06);
}

body.okdak-confirm-open {
  overflow: hidden;
}

/* —— Champs invalides —— */
@keyframes okdakFieldShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-6px); }
  36% { transform: translateX(5px); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(3px); }
}

.okdak-field-shake,
.input-group.okdak-field-shake,
.form-group.okdak-field-shake {
  animation: okdakFieldShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.okdak-field-shake input,
.okdak-field-shake textarea,
.okdak-field-shake select,
input.okdak-field-shake,
textarea.okdak-field-shake,
select.okdak-field-shake {
  border-color: #ff4757 !important;
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.22) !important;
}

/* —— Auth loading —— */
.auth-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(76, 130, 255, 0.12);
  border: 1px solid rgba(76, 130, 255, 0.28);
  color: var(--apple-blue, #4c82ff);
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-loading-indicator[hidden] {
  display: none !important;
}

.auth-loading-indicator__spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(76, 130, 255, 0.25);
  border-top-color: var(--apple-blue, #4c82ff);
  border-radius: 50%;
  animation: okdakSpin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes okdakSpin {
  to { transform: rotate(360deg); }
}

/* —— Start CTA animé —— */
.start-cta--studio-demo {
  position: relative;
  overflow: hidden;
}

.start-cta--studio-demo::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 58%
  );
  transform: translateX(-120%) skewX(-12deg);
  animation: startCtaShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes startCtaShine {
  0%, 72% { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(120%) skewX(-12deg); }
}

.start-cta--studio-demo .start-cta__timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* —— Module-flow stepper (Studio) —— */
@keyframes okdakFlowStepPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(41, 151, 255, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 5px rgba(41, 151, 255, 0);
  }
}

@keyframes okdakFlowCheckPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); color: #34c759; }
  100% { transform: scale(1); }
}

body.home-app .home-module-flow__step.is-active .home-module-flow__num {
  animation: okdakFlowStepPulse 1.4s ease-in-out infinite;
}

body.home-app .home-module-flow__step.is-done .home-module-flow__num {
  animation: okdakFlowCheckPop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  color: #34c759;
  background: rgba(52, 199, 89, 0.25);
  font-size: 0;
  line-height: 0;
}

body.home-app .home-module-flow__step.is-done .home-module-flow__num::before {
  content: '✓';
  font-size: 0.6875rem;
  line-height: 1.35rem;
}

/* —— Search skeleton & résultats —— */
.okdak-search-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0 1.5rem;
}

.okdak-search-skeleton__item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.25rem 0;
}

.okdak-search-skeleton__line {
  height: 0.85rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.14) 50%, rgba(255, 255, 255, 0.06) 100%);
  background-size: 200% 100%;
  animation: okdakSkeletonShine 1.3s ease-in-out infinite;
}

.okdak-search-skeleton__line--title {
  width: 42%;
  height: 1rem;
}

.okdak-search-skeleton__line--url {
  width: 28%;
  height: 0.7rem;
  opacity: 0.7;
}

.okdak-search-skeleton__line--desc {
  width: 88%;
}

.okdak-search-skeleton__line--desc-short {
  width: 62%;
}

@keyframes okdakSkeletonShine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

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

.index-serp-item--enter,
.index-site-search__item--enter {
  animation: okdakSerpFadeIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--serp-stagger, 0) * 45ms);
}

.index-search-page__list.is-loaded .index-serp-item {
  animation: okdakSerpFadeIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--serp-stagger, 0) * 45ms);
}

/* —— 404 / Offline —— */
.page-404 main,
.page-offline .offline-container {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: rgba(28, 28, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: okdakErrorCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes okdakErrorCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.page-404,
.page-offline {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(127, 90, 240, 0.22), transparent),
    #0e0e12;
}

.page-404 .error-illustration,
.page-offline .offline-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  animation: okdakErrorFloat 4s ease-in-out infinite;
}

@keyframes okdakErrorFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.page-404 a.button,
.page-offline .retry-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #7f5af0, #6246ea);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-404 a.button:hover,
.page-offline .retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(127, 90, 240, 0.35);
}

/* —— Support succès —— */
.support-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: okdakModalBackdropIn 0.3s ease both;
}

.support-success-overlay[hidden] {
  display: none !important;
}

.support-success-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.support-success-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 2rem 1.75rem;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(165deg, rgba(28, 32, 48, 0.96), rgba(18, 20, 32, 0.98));
  border: 1px solid rgba(52, 199, 89, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: okdakModalCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.support-success-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  animation: okdakFlowCheckPop 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) 0.2s both;
}

/* —— Abonnement plans —— */
.abonnement-section--three .plan {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    filter 0.28s ease;
}

.abonnement-section--three.is-comparing .plan:not(.is-highlighted) {
  opacity: 0.55;
  filter: saturate(0.7);
  transform: scale(0.98);
}

.abonnement-section--three .plan.is-highlighted {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px rgba(76, 130, 255, 0.22);
  border-color: rgba(76, 130, 255, 0.45);
  z-index: 2;
}

.billing-toggle__btn {
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.billing-toggle__btn.is-active {
  transform: scale(1.03);
}

/* —— Visibilité scroll-reveal + schéma —— */
.vis-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--vis-stagger, 0) * 60ms);
}

.vis-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vis-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.25rem;
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vis-flow-diagram__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(76, 130, 255, 0.12);
  border: 1px solid rgba(76, 130, 255, 0.28);
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 5.5rem;
  opacity: 0;
  transform: scale(0.9);
  animation: okdakVisFlowNode 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--flow-i, 0) * 0.35s + 0.2s);
}

.vis-flow-diagram__node-icon {
  font-size: 1.5rem;
}

.vis-flow-diagram__arrow {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.35);
  opacity: 0;
  animation: okdakVisFlowArrow 0.4s ease forwards;
  animation-delay: calc(var(--flow-i, 0) * 0.35s + 0.38s);
}

@keyframes okdakVisFlowNode {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes okdakVisFlowArrow {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* —— View Transitions —— */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: okdakPageOut 0.22s ease both;
}

::view-transition-new(root) {
  animation: okdakPageIn 0.28s ease both;
}

@keyframes okdakPageOut {
  to { opacity: 0; transform: scale(0.99); }
}

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

/* —— Thème clair/sombre —— */
html.okdak-theme-transitioning,
html.okdak-theme-transitioning * {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

/* —— Copie lien —— */
.okdak-copy-flash {
  animation: okdakCopyFlash 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes okdakCopyFlash {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); color: #34c759; }
  100% { transform: scale(1); }
}

/* —— Notifications —— */
.notif-loading {
  animation: okdakEmptyIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.notif-loading-spinner {
  animation: okdakSpin 0.75s linear infinite;
}

@keyframes okdakSpin {
  to { transform: rotate(360deg); }
}

.notif-empty {
  animation: okdakEmptyIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.notif-item--enter {
  animation: okdakSerpFadeIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--notif-stagger, 0) * 40ms);
}

@keyframes okdakEmptyIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* —— Menu overlay —— */
.menu-overlay {
  transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
  opacity: 0;
  pointer-events: none;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* —— Index card hint —— */
.okdak-card-hint {
  position: fixed;
  z-index: 2147482900;
  max-width: 240px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(28, 28, 32, 0.96);
  color: #f5f5f7;
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.okdak-card-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Abonnement —— */
.billing-toggle {
  position: relative;
}

.billing-toggle__slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: rgba(76, 130, 255, 0.22);
  border: 1px solid rgba(76, 130, 255, 0.35);
  transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
}

.billing-toggle.is-annual .billing-toggle__slider {
  transform: translateX(100%);
}

.comparison-table tbody tr {
  transition: background 0.22s ease, transform 0.22s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(76, 130, 255, 0.08);
  transform: translateX(3px);
}

.comparison-table tbody tr.is-row-highlight {
  background: rgba(52, 199, 89, 0.1);
}

/* —— Auth succès —— */
.auth-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-success-overlay[hidden] { display: none !important; }

.auth-success-card {
  width: min(100%, 400px);
  padding: 2rem 1.75rem;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(165deg, rgba(28, 32, 48, 0.96), rgba(18, 20, 32, 0.98));
  border: 1px solid rgba(52, 199, 89, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: okdakModalCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-success-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #4c82ff, #3a6fd8);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.auth-success-card__cta:hover { transform: translateY(-2px); }

/* —— Start quickstart tour —— */
.start-quickstart-tour {
  position: fixed;
  inset: 0;
  z-index: 12000;
}

.start-quickstart-tour[hidden] { display: none !important; }

.start-quickstart-tour__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  animation: okdakModalBackdropIn 0.3s ease both;
}

.start-quickstart-tour__card {
  position: absolute;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(100%, 380px);
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: rgba(18, 22, 36, 0.97);
  border: 1px solid rgba(76, 130, 255, 0.35);
  animation: okdakModalCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* —— Studio IA —— */
.home-ia-dock__status.is-streaming::after {
  content: '▋';
  display: inline-block;
  margin-left: 2px;
  animation: okdakIaCursor 0.8s step-end infinite;
  opacity: 0.85;
}

@keyframes okdakIaCursor {
  50% { opacity: 0; }
}

.home-ia-dock__inject-btn.is-ready-pulse,
#homeIAInjectBtn.is-ready-pulse {
  animation: okdakFlowStepPulse 1.2s ease-in-out 3;
}

/* —— Feed / Explorer nouveaux posts —— */
.feed-post--new,
.explorer-card--new {
  animation: okdakSerpFadeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* —— Raccourcis clavier —— */
.okdak-shortcuts-panel {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.okdak-shortcuts-panel[hidden] { display: none !important; }

.okdak-shortcuts-panel__card {
  width: min(100%, 420px);
  max-height: 80vh;
  overflow: auto;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: rgba(18, 22, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: okdakModalCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.okdak-shortcuts-panel kbd {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}

.okdak-shortcuts-panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

/* —— États appel —— */
.okdak-call-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.okdak-call-pill--connecting {
  background: rgba(255, 159, 10, 0.15);
  color: #ffb340;
  animation: okdakFlowStepPulse 1.4s ease-in-out infinite;
}

.okdak-call-pill--live {
  background: rgba(52, 199, 89, 0.15);
  color: #5de37d;
}

.okdak-call-pill--ended {
  background: rgba(255, 71, 87, 0.12);
  color: #ff6b7a;
}

.okdak-call-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.okdak-call-pill--connecting .okdak-call-pill__dot {
  animation: okdakFlowStepPulse 1.4s ease-in-out infinite;
}

/* —— SEO landings scroll-reveal —— */
.seo-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--seo-stagger, 0) * 55ms);
}

.seo-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Cookie consent —— */
#okdak-cookie-banner {
  animation: okdakCookieIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#okdak-cookie-banner.is-leaving {
  animation: okdakCookieOut 0.32s ease forwards;
}

@keyframes okdakCookieIn {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes okdakCookieOut {
  to { opacity: 0; transform: translateY(100%); }
}

/* —— Badge achievement —— */
.okdak-achievement-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10070;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(28, 32, 48, 0.98), rgba(18, 20, 32, 0.98));
  border: 1px solid rgba(52, 199, 89, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: okdakToastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.okdak-achievement-toast[hidden] { display: none !important; }

.okdak-achievement-toast__icon { font-size: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .okdak-modal-enter > [class*="__backdrop"],
  .okdak-modal-enter > [class*="__card"],
  .toast.show,
  .toast.is-leaving,
  .okdak-field-shake,
  .start-cta--studio-demo::after,
  body.home-app .home-module-flow__step.is-active .home-module-flow__num,
  body.home-app .home-module-flow__step.is-done .home-module-flow__num,
  .okdak-search-skeleton__line,
  .index-serp-item--enter,
  .index-site-search__item--enter,
  .index-search-page__list.is-loaded .index-serp-item,
  .page-404 main,
  .page-offline .offline-container,
  .page-404 .error-illustration,
  .page-offline .offline-icon,
  .support-success-overlay,
  .support-success-card,
  .vis-reveal,
  .vis-flow-diagram__node,
  .vis-flow-diagram__arrow,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .vis-reveal {
    opacity: 1;
  }

  .abonnement-section--three.is-comparing .plan:not(.is-highlighted) {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
