/* Comportements CSS de la landing (à la place du runtime Framer). */

/* Ticker : la piste glisse d'une copie complète, en boucle. */
.cp-ticker {
  animation: cp-ticker var(--cp-ticker-duration, 30s) linear infinite;
  will-change: transform;
}
.cp-ticker--paused {
  animation-play-state: paused;
}
@keyframes cp-ticker {
  to {
    transform: translateX(var(--cp-ticker-distance, -50%));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-ticker {
    animation: none;
  }
}

/* Logo Creation Pilot (clapperboard + mot-clé), injecté à la place du logo Qarin. */
.cp-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.cp-logo__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.35);
  color: #fff;
  flex-shrink: 0;
}
.cp-logo__tile svg {
  width: 19px;
  height: 19px;
}
.cp-logo__name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #0b0c2b;
}
.cp-logo--footer .cp-logo__tile {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.cp-logo--footer .cp-logo__tile svg {
  width: 22px;
  height: 22px;
}
.cp-logo--footer .cp-logo__name {
  font-size: 22px;
  color: #0b0c2b;
}
/* Badge carré (pied de page) : la tuile remplit son conteneur. */
.cp-logo__tile--badge {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.cp-logo__tile--badge svg {
  width: 52%;
  height: 52%;
}

/* FAQ : accordéon (Framer ne chargeait les réponses qu'au clic via son runtime, retiré). */
[data-cp-faq-trigger] {
  cursor: pointer;
}
.cp-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.32s ease,
    opacity 0.25s ease;
}
.cp-faq-panel__inner {
  overflow: hidden;
  min-height: 0;
}
.cp-faq-panel__inner p {
  margin: 0;
  padding-top: 12px;
}
[data-cp-faq][data-cp-open] .cp-faq-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
/* Chevron (dernier enfant de la question) : bas quand fermé, haut quand ouvert. */
[data-cp-faq-trigger] > div:last-child {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}
[data-cp-faq][data-cp-open] [data-cp-faq-trigger] > div:last-child {
  transform: rotate(0deg);
}

/* Navigation d'une page : défilement doux + décalage sous la barre fixe. */
html {
  scroll-behavior: smooth;
}
:where(#top, #produit, #fonctionnalites, #fournisseurs, #tarifs, #faq, #exemples, #liste-attente) {
  scroll-margin-top: 92px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Menu mobile (panneau injecté, visible seulement quand la barre téléphone est active). */
[data-cp-menu-toggle] {
  cursor: pointer;
}
.cp-mobile-menu {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(11, 12, 43, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(11, 12, 43, 0.22);
}
.cp-mobile-menu[hidden] {
  display: none;
}
.cp-mobile-menu__links {
  display: flex;
  flex-direction: column;
}
.cp-mobile-menu__links a {
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  color: #0b0c2b;
  text-decoration: none;
}
.cp-mobile-menu__links a:active {
  background: rgba(99, 102, 241, 0.08);
}
.cp-mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 12, 43, 0.08);
}
.cp-mobile-menu__cta a {
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}
.cp-mm-login {
  color: #0b0c2b;
  border: 1px solid rgba(11, 12, 43, 0.14);
}
.cp-mm-primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4338ca);
}

/* Bascule des tarifs : vrai sélecteur segmenté (la pastille SVG d'origine, mal calée, est neutralisée). */
.cp-keys-bg {
  background: none !important;
}
[data-cp-keys-toggle] {
  background: #fff !important;
  border-radius: 999px;
  padding: 4px;
}
[data-cp-keys-opt] {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}
[data-cp-keys-opt] p {
  margin: 0;
  color: #0b0c2b !important;
  transition: color 0.2s ease;
}
#tarifs[data-cp-keys='nos'] [data-cp-keys-opt='nos'],
#tarifs[data-cp-keys='vos'] [data-cp-keys-opt='vos'] {
  background: #0b0c2b;
  box-shadow: 0 2px 6px rgba(11, 12, 43, 0.3);
}
#tarifs[data-cp-keys='nos'] [data-cp-keys-opt='nos'] p,
#tarifs[data-cp-keys='vos'] [data-cp-keys-opt='vos'] p {
  color: #fff !important;
}
.cp-keys-note {
  margin: 14px auto 0;
  max-width: 420px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}
.cp-keys-note span {
  display: none;
}
#tarifs[data-cp-keys='nos'] .cp-keys-note span[data-keys='nos'],
#tarifs[data-cp-keys='vos'] .cp-keys-note span[data-keys='vos'] {
  display: inline;
}

/* Onglets du bloc « Votre chaîne, votre style » : actif = pastille blanche, inactifs = bleu. */
[data-cp-tab] {
  cursor: pointer;
  background-color: rgb(51, 85, 255) !important;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
[data-cp-tab][data-cp-tab-active] {
  background-color: #fff !important;
  box-shadow: 0 6px 18px -6px rgba(11, 12, 43, 0.35);
}
[data-cp-tab] p {
  color: #fff !important;
  transition: color 0.2s ease;
}
[data-cp-tab][data-cp-tab-active] p {
  color: #0b0c2b !important;
}
[data-cp-tab-panel] {
  transition: opacity 0.2s ease;
}

/* Formulaire de liste d'attente (bloc CTA). */
.cp-waitlist {
  width: 100%;
  max-width: 520px;
  margin: 8px auto 0;
}
.cp-waitlist__row {
  display: flex;
  gap: 8px;
}
.cp-waitlist__email {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #fff;
  color: #0b0c2b;
  font-size: 16px;
}
.cp-waitlist__email::placeholder {
  color: rgba(11, 12, 43, 0.5);
}
.cp-waitlist__email:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cp-waitlist__submit {
  flex: 0 0 auto;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  background: #0b0c2b;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.cp-waitlist__submit:hover {
  transform: translateY(-1px);
}
.cp-waitlist__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
/* Champ piège : hors écran, jamais focalisable visuellement. */
.cp-waitlist__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cp-waitlist__status {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}
.cp-waitlist__status.is-ok {
  font-weight: 600;
}
.cp-waitlist__status.is-err {
  color: #ffd7d7;
}
@media (max-width: 520px) {
  .cp-waitlist__row {
    flex-direction: column;
  }
}

/* Sélecteur de langue (FR ⟷ EN). */
.cp-lang-li {
  display: flex;
  align-items: center;
}
.cp-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 12, 43, 0.14);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0b0c2b;
  text-decoration: none;
  transition: background 0.15s ease;
}
.cp-lang:hover {
  background: rgba(99, 102, 241, 0.08);
}
.cp-mobile-menu__links .cp-lang {
  align-self: flex-start;
  margin-top: 4px;
}

/* Page légale autonome (hors Framer : styles de base + mise en page du document). */
.cp-legal-body {
  margin: 0;
  background: #fff;
  color: #0b0c2b;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.cp-legal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px;
}
.cp-legal__back {
  color: #4338ca;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.cp-legal__back:hover {
  text-decoration: underline;
}
.cp-legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 20px 80px;
}
.cp-legal h1 {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  margin: 16px 0 6px;
}
.cp-legal__updated {
  color: #66677d;
  font-size: 14px;
  margin: 0 0 24px;
}
.cp-legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(11, 12, 43, 0.1);
  border-radius: 14px;
  background: #f7f8fb;
  margin-bottom: 20px;
  font-size: 14px;
}
.cp-legal__toc span {
  font-weight: 600;
  color: #66677d;
}
.cp-legal__toc a {
  color: #4338ca;
  text-decoration: none;
}
.cp-legal__toc a:hover {
  text-decoration: underline;
}
.cp-legal__note {
  font-size: 13px;
  color: #6a6c85;
  background: #fafafe;
  border-left: 3px solid #c7c9f0;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 32px;
}
.cp-legal__section {
  scroll-margin-top: 24px;
  margin-bottom: 40px;
}
.cp-legal__section h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11, 12, 43, 0.08);
}
.cp-legal__section h3 {
  font-size: 16px;
  margin: 20px 0 6px;
}
.cp-legal__section p,
.cp-legal__section ul {
  margin: 0 0 12px;
  color: #3a3b52;
}
.cp-legal__section ul {
  padding-left: 20px;
}
.cp-legal__section li {
  margin-bottom: 6px;
}
.cp-legal__section dl {
  margin: 0 0 12px;
}
.cp-legal__section dt {
  font-weight: 600;
  margin-top: 10px;
}
.cp-legal__section dd {
  margin: 2px 0 0;
  color: #3a3b52;
}
