/*
 * Accueil ALPHAPREF, mise à jour de novembre 2026.
 * Tout est préfixé « ap- » pour ne rien changer aux autres pages
 * (style.css reste tel quel). Tailles en px : le thème met html à 80 %,
 * ce qui donnait un texte de 12 px, trop petit pour lire confortablement.
 */

:root {
  --ap-navy: #1a1462;
  --ap-navy-deep: #120d47;
  --ap-rose: #dd4b5b;
  --ap-rose-btn: #f26d7d;
  --ap-ink: #14123a;
  --ap-muted: #5b5a78;
  --ap-line: #e3e2ee;
  --ap-paper: #f6f6fb;
  --ap-ok: #17a05d;
  --ap-ok-soft: #e4f6ec;
}

/* ───────── Boutons ───────── */
.ap-btn {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-size: 17px;
  font-weight: 600;
  gap: 10px;
  justify-content: center;
  line-height: 1.2;
  min-height: 54px;
  padding: 12px 26px;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.ap-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.ap-btn--main {
  background: var(--ap-rose-btn);
  box-shadow: 0 10px 24px rgba(9, 6, 48, 0.35);
  color: #fff !important;
}
.ap-btn--main:hover {
  background: #f57f8d;
  transform: translateY(-1px);
}
.ap-btn--navy {
  background: var(--ap-navy);
  color: #fff !important;
}
.ap-btn--navy:hover {
  background: #262080;
}
/* Bouton « Ajouter à Chrome » : blanc avec le logo en couleurs, bien visible sur le bleu nuit */
.ap-btn--white {
  background: #fff;
  box-shadow: 0 8px 20px rgba(9, 6, 48, 0.28);
  color: var(--ap-ink) !important;
}
.ap-btn--white:hover {
  background: #f1f0fa;
  transform: translateY(-1px);
}
.ap-btn--small {
  font-size: 15px;
  min-height: 46px;
  padding: 8px 18px;
}
.ap-chrome {
  flex: none;
}
.ap-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
  font-size: 15px;
  min-height: 46px;
  padding: 8px 18px;
}
.ap-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}
.ap-btn--line {
  background: #fff;
  border-color: var(--ap-navy);
  color: var(--ap-navy) !important;
}
.ap-btn--line:hover {
  background: #efeefb;
}
.ap-light .ap-btn:focus-visible {
  outline-color: var(--ap-navy);
}

/* ───────── Haut de page ───────── */
#ts-hero.ap-hero {
  background: var(--ap-navy);
  display: block;
  padding: 150px 0 210px; /* pas de hauteur imposée : sur un grand écran, ça laissait un grand vide */
}
.ap-hero__wave {
  bottom: -1px;
  height: 150px;
  left: 0;
  position: absolute;
  right: 0;
}
.ap-hero__wave svg {
  display: block;
}
.ap-hero .container {
  position: relative;
  z-index: 2;
}
.ap-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 20px;
}
.ap-hero__lead {
  color: #dcdaf5;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 34em;
}
.ap-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 22px;
}
.ap-hero__more {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ap-hero__more:hover {
  color: #fff;
  opacity: 0.8;
}
.ap-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}
.ap-checks li {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  gap: 8px;
}
.ap-checks svg {
  flex: none;
}
.ap-hero__stores p {
  color: #c9c6ee;
  font-size: 15px;
  margin: 0 0 10px;
}
.ap-hero__stores div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Le site présente d'abord l'extension (ordinateur). Sur téléphone on précise qu'elle
   s'installe sur PC ou Mac ; sur iPhone, l'appli passe en bouton principal. */
.ap-ios-only,
.ap-phone-only,
.ap-ios-only-inline {
  display: none !important;
}
.is-ios .ap-ios-only {
  display: inline-flex !important;
}
.is-ios .ap-ios-only-inline {
  display: inline !important;
}
.is-ios .ap-not-ios {
  display: none !important;
}
.is-phone .ap-phone-only {
  display: block !important;
}
.is-phone .ap-not-phone {
  display: none !important;
}

/* ───────── Démo animée : une fenêtre de navigateur où le robot ALPHABOT travaille ─────────
   Une seule boucle de 16 s, en quatre temps :
   0–5 s il surveille · 5–8 s il repère · 8–12 s il remplit · 12–16 s c'est réservé.
   État de base (sans animation, ou « réduire les animations ») = rendez-vous confirmé.
   Le robot est celui de l'extension : même personnage, même « Salut, je suis ALPHABOT ». */
.ap-demo {
  --t: 16s;
  margin: 0 auto;
  max-width: 540px;
  width: 100%;
}
.ap-demo__win {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(6, 4, 40, 0.45);
  color: var(--ap-ink);
  position: relative;
  text-align: left;
}
.ap-demo__bar {
  align-items: center;
  background: #ecebf5;
  border-radius: 16px 16px 0 0;
  display: flex;
  gap: 6px;
  padding: 10px 12px;
}
.ap-demo__bar > i {
  background: #c9c7dc;
  border-radius: 50%;
  flex: none;
  height: 10px;
  width: 10px;
}
.ap-demo__url {
  background: #fff;
  border-radius: 8px;
  color: #55537a;
  flex: 1;
  font-size: 12px;
  margin-left: 6px;
  min-width: 0;
  overflow: hidden;
  padding: 5px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* L'extension dans la barre du navigateur : allumée */
.ap-demo__ext {
  align-items: center;
  background: var(--ap-navy);
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  gap: 6px;
  padding: 4px 9px 4px 5px;
}
.ap-demo__ext img {
  border-radius: 5px;
  height: 18px;
  width: 18px;
}
.ap-demo__ext b {
  background: #35d07f;
  border-radius: 9px;
  height: 14px;
  position: relative;
  width: 24px;
}
.ap-demo__ext b::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 10px;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 10px;
}
.ap-demo__body {
  padding: 16px 16px 6px;
}
.ap-demo__page {
  min-height: 252px;
  position: relative;
}
.ap-demo__scene {
  inset: 0;
  opacity: 0;
  position: absolute;
}
.ap-demo__scene h4 {
  color: var(--ap-ink);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}

/* Les deux scènes reprennent la mise en page des vraies pages de prise de rendez-vous
   (étapes, jours en colonnes, créneaux en bleu, compte à rebours), SANS le motif ni le nom
   de la préfecture, et sans le logo de l'État : c'est une démonstration, pas le site officiel. */
.ap-gov__step {
  margin-bottom: 10px;
}
.ap-gov__step small {
  color: #666;
  display: block;
  font-size: 10px;
  line-height: 1.2;
}
.ap-gov__step strong {
  color: #161616;
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.ap-gov__bars {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 5px;
}
.ap-gov__bars i {
  background: #e5e5e5;
  height: 3px;
}
.ap-gov__bars i.on {
  background: #000091;
}

/* Scène 1 : les jours en colonnes, les créneaux qui s'ouvrent */
.ap-gov__days {
  display: grid;
  gap: 0 6px;
  grid-template-columns: repeat(6, 1fr);
  min-height: 132px;
}
.ap-gov__days > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ap-gov__days b {
  border-bottom: 1px solid #161616;
  color: #161616;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
  padding-bottom: 5px;
  text-align: center;
}
.ap-chip {
  background: #e3e3fd;
  border: 1px solid #000091;
  color: #000091;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  padding: 6px 0;
  text-align: center;
}
.ap-demo__none {
  color: #666;
  font-size: 12px;
  left: 0;
  margin: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 104px;
}
.ap-gov__nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.ap-gov__btn {
  background: #000091;
  border: 1px solid #000091;
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 12px;
}
.ap-gov__btn--ghost {
  background: #fff;
  color: #000091;
}

/* Scène 2 : « Vos informations », le créneau retenu et le compte à rebours */
.ap-gov__info {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.25fr 1fr;
  margin-bottom: 9px;
}
.ap-gov__info > div {
  padding: 6px 9px;
}
.ap-gov__info small {
  color: #3a3a3a;
  display: block;
  font-size: 9.5px;
  line-height: 1.25;
}
.ap-gov__info b {
  color: #161616;
  font-size: 12.5px;
  font-weight: 600;
}
.ap-gov__picked {
  background: #eee;
  border-left: 3px solid #000091;
}
.ap-gov__timer {
  border: 1px solid #b34000;
  border-left-width: 5px;
}
.ap-fields {
  display: grid;
  gap: 7px 10px;
  grid-template-columns: 1fr 1fr;
}
.ap-field small {
  color: #161616;
  display: block;
  font-size: 10px;
  margin-bottom: 2px;
}
.ap-field div {
  background: #eee;
  border-bottom: 2px solid #3a3a3a;
  border-radius: 3px 3px 0 0;
  color: #161616;
  font-size: 12px;
  font-weight: 500;
  height: 27px;
  line-height: 25px;
  overflow: hidden;
  padding: 0 8px;
}
.ap-field span {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  white-space: nowrap;
}

/* Scène 3 : confirmé */
.ap-demo__done {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 1;
  text-align: center;
}
.ap-demo__tick {
  align-items: center;
  background: var(--ap-ok-soft);
  border-radius: 50%;
  display: flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 10px;
  width: 58px;
}
.ap-demo__done strong {
  font-size: 17px;
  font-weight: 600;
}
.ap-demo__done p {
  color: var(--ap-ok);
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0 0;
}
.ap-demo__done small {
  color: #77759a;
  font-size: 11.5px;
  margin-top: 4px;
}

/* Le robot et sa bulle, en bas de la page comme dans l'extension */
.ap-demo__agent {
  align-items: flex-end;
  display: flex;
  gap: 4px;
  padding: 0 16px 14px 0;
}
.ap-demo__robot {
  flex: none;
  height: 156px;
  margin: -64px 0 -30px -40px; /* il dépasse de la fenêtre, comme s'il se tenait devant */
  position: relative;
  width: auto;
  z-index: 3;
}
.ap-demo__bubble {
  background: var(--ap-navy);
  border-radius: 14px 14px 14px 4px;
  color: #fff;
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 14px;
  padding: 12px 15px 13px;
}
.ap-demo__says {
  display: block;
  min-height: 40px;
  position: relative;
}
.ap-demo__says span {
  inset: 0;
  opacity: 0;
  position: absolute;
}
.ap-demo__says .ap-st4 {
  opacity: 1;
}
/* « Appel sur votre téléphone » : pendant le formulaire */
.ap-demo__call {
  align-items: center;
  background: var(--ap-ok);
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  color: #fff;
  display: flex;
  font-size: 11.5px;
  font-weight: 600;
  gap: 6px;
  opacity: 0;
  padding: 6px 11px;
  position: absolute;
  right: 0;
  top: -4px;
  z-index: 2;
}
.ap-demo__call svg {
  transform-origin: center;
}
.ap-demo__meter {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
}
.ap-demo__meter i {
  background: #7fd4ff;
  display: block;
  height: 100%;
  width: 100%;
}
/* « Alerte sonore » : la pastille qui sonne quand un créneau s'ouvre */
.ap-demo__bell {
  align-items: center;
  background: #ffb020;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  color: #2b1d00;
  display: flex;
  font-size: 11.5px;
  font-weight: 600;
  gap: 6px;
  opacity: 0;
  padding: 6px 11px;
  position: absolute;
  right: 0;
  top: -4px;
  z-index: 2;
}

/* Les quatre temps, sous la fenêtre */
.ap-demo__steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.ap-demo__steps li {
  border-top: 3px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  padding-top: 8px;
}
.ap-demo__steps li:last-child {
  border-top-color: #fff;
  color: #fff;
}
.ap-demo__note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  line-height: 1.4;
  margin: 14px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ap-demo__scene--watch { animation: ap-s1 var(--t) infinite; }
  .ap-demo__scene--form { animation: ap-s3 var(--t) infinite; }
  .ap-demo__scene--done { animation: ap-s4 var(--t) infinite; }
  .ap-gov__days { animation: ap-refresh var(--t) infinite; }
  .ap-chip { animation: ap-chip-in var(--t) infinite; }
  .ap-chip--pick { animation: ap-chip-pick var(--t) infinite; }
  .ap-gov__next { animation: ap-next var(--t) infinite; }
  .ap-gov__confirm { animation: ap-confirm var(--t) infinite; }
  .ap-demo__none { animation: ap-none var(--t) infinite; }
  .ap-demo__meter i { animation: ap-meter var(--t) infinite; transform-origin: left; }
  .ap-demo__bell { animation: ap-bell var(--t) infinite; }
  .ap-demo__call { animation: ap-call var(--t) infinite; }
  .ap-demo__call svg { animation: ap-call-ring var(--t) infinite; }
  .ap-st1 { animation: ap-p1 var(--t) infinite; }
  .ap-st2 { animation: ap-s2 var(--t) infinite; }
  .ap-st3 { animation: ap-s3 var(--t) infinite; }
  .ap-demo__says .ap-st4 { animation: ap-s4 var(--t) infinite; }
  .ap-demo__tick { animation: ap-pop var(--t) infinite; }
  .ap-f1 { animation: ap-type1 var(--t) infinite; }
  .ap-f2 { animation: ap-type2 var(--t) infinite; }
  .ap-f3 { animation: ap-type3 var(--t) infinite; }
  .ap-f4 { animation: ap-type4 var(--t) infinite; }
  .ap-demo__steps li:nth-child(1) { animation: ap-l1 var(--t) infinite; }
  .ap-demo__steps li:nth-child(2) { animation: ap-l2 var(--t) infinite; }
  .ap-demo__steps li:nth-child(3) { animation: ap-l3 var(--t) infinite; }
  .ap-demo__steps li:nth-child(4) { animation: ap-l4 var(--t) infinite; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Étapes */
  .ap-viz--add .ap-viz__btn { animation: ap-add-bg 6s infinite; }
  .ap-viz--add .ap-viz__btn em:first-child { animation: ap-add-a 6s infinite; }
  .ap-viz--add .ap-viz__btn em:last-child { animation: ap-add-b 6s infinite; }
  .ap-viz__line:nth-child(1) span { animation: ap-w1 6s infinite 2s backwards; }
  .ap-viz__line:nth-child(2) span { animation: ap-w2 6s infinite 2s backwards; }
  .ap-viz__line:nth-child(3) span { animation: ap-w3 6s infinite 2s backwards; }
  .ap-viz__switch i { animation: ap-sw-bg 6s infinite 4s backwards; }
  .ap-viz__switch i::after { animation: ap-sw-knob 6s infinite 4s backwards; }
  .ap-viz__live { animation: ap-live 6s infinite 4s backwards; }
  .ap-viz__live b { animation: ap-pulse 1.2s infinite; }
  /* Fonctionnalités */
  .ap-fx__spin { animation: ap-spin 5s infinite; }
  .ap-fx__pick { animation: ap-pick 5s infinite 0.4s backwards; }
  .ap-fx__ring { animation: ap-ringing 5s infinite 0.8s backwards; }
  .ap-fx__wave { animation: ap-wave 5s infinite 0.8s backwards; }
  .ap-fx__lines i:nth-child(1) { animation: ap-line1 5s infinite 1.2s backwards; }
  .ap-fx__lines i:nth-child(2) { animation: ap-line2 5s infinite 1.2s backwards; }
  .ap-fx__lines i:nth-child(3) { animation: ap-line3 5s infinite 1.2s backwards; }
  .ap-fx__slot { animation: ap-slot-bg 5s infinite 1.6s backwards; }
  .ap-fx__slot span { animation: ap-slot-a 5s infinite 1.6s backwards; }
  .ap-fx__slot b { animation: ap-slot-b 5s infinite 1.6s backwards; }
  .ap-fx__badge { animation: ap-badge 5s infinite 2s backwards; }
}
@keyframes ap-add-bg { 0%, 38% { background: #1a73e8; } 46%, 100% { background: #17a05d; } }
@keyframes ap-add-a { 0%, 38% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes ap-add-b { 0%, 40% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes ap-w1 { 0%, 8% { width: 0; } 24%, 100% { width: 100%; } }
@keyframes ap-w2 { 0%, 26% { width: 0; } 44%, 100% { width: 100%; } }
@keyframes ap-w3 { 0%, 46% { width: 0; } 66%, 100% { width: 100%; } }
@keyframes ap-sw-bg { 0%, 22% { background: #c5c6dc; } 30%, 100% { background: #35d07f; } }
@keyframes ap-sw-knob { 0%, 22% { transform: translateX(0); } 30%, 100% { transform: translateX(16px); } }
@keyframes ap-live { 0%, 28% { opacity: 0; } 36%, 100% { opacity: 1; } }
@keyframes ap-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(23, 160, 93, 0.5); } 60% { box-shadow: 0 0 0 7px rgba(23, 160, 93, 0); } }
@keyframes ap-spin { 0% { transform: rotate(0); } 30%, 100% { transform: rotate(360deg); } }
@keyframes ap-pick { 0%, 30% { background: rgba(255, 255, 255, 0.28); transform: scale(1); } 40% { background: #35d07f; transform: scale(1.45); } 50%, 100% { background: #35d07f; transform: scale(1); } }
@keyframes ap-ringing { 0%, 100% { transform: rotate(0); } 6% { transform: rotate(16deg); } 12% { transform: rotate(-14deg); } 18% { transform: rotate(11deg); } 24% { transform: rotate(-8deg); } 30% { transform: rotate(0); } }
@keyframes ap-wave { 0%, 4% { opacity: 0; } 10%, 26% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes ap-line1 { 0%, 6% { transform: scaleX(0); } 20%, 100% { transform: scaleX(1); } }
@keyframes ap-line2 { 0%, 22% { transform: scaleX(0); } 36%, 100% { transform: scaleX(1); } }
@keyframes ap-line3 { 0%, 38% { transform: scaleX(0); } 52%, 100% { transform: scaleX(1); } }
@keyframes ap-slot-bg { 0%, 34% { background: rgba(255, 255, 255, 0.2); } 42%, 100% { background: #35d07f; } }
@keyframes ap-slot-a { 0%, 34% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes ap-slot-b { 0%, 38% { opacity: 0; transform: scale(0.4); } 46% { opacity: 1; transform: scale(1.2); } 52%, 100% { opacity: 1; transform: scale(1); } }
@keyframes ap-badge { 0%, 30% { transform: scale(0); } 40% { transform: scale(1.25); } 48%, 100% { transform: scale(1); } }

/* Repères : 31,25 % = 5 s · 50 % = 8 s · 75 % = 12 s */
@keyframes ap-s1 { 0%, 48% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes ap-p1 { 0%, 29% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes ap-s2 { 0%, 30% { opacity: 0; } 32%, 48% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes ap-s3 { 0%, 49% { opacity: 0; } 52%, 73% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes ap-s4 { 0%, 74% { opacity: 0; } 77%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ap-refresh {
  0%, 13% { opacity: 1; } 15% { opacity: 0.25; } 17%, 28% { opacity: 1; } 30% { opacity: 0.25; } 32%, 100% { opacity: 1; }
}
@keyframes ap-meter {
  0% { transform: scaleX(0); } 15% { transform: scaleX(1); } 15.1% { transform: scaleX(0); }
  30% { transform: scaleX(1); } 100% { transform: scaleX(1); }
}
@keyframes ap-none { 0%, 30% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes ap-chip-in { 0%, 31% { opacity: 0; transform: translateY(4px); } 35%, 100% { opacity: 1; transform: none; } }
@keyframes ap-chip-pick {
  0%, 31% { background: #e3e3fd; color: #000091; opacity: 0; transform: translateY(4px); }
  35%, 39% { background: #e3e3fd; color: #000091; opacity: 1; transform: none; }
  42% { background: #000091; color: #fff; opacity: 1; transform: scale(1.12); }
  45%, 100% { background: #000091; color: #fff; opacity: 1; transform: none; }
}
@keyframes ap-next { 0%, 41% { opacity: 0.35; transform: none; } 44% { opacity: 1; transform: none; } 46.5% { opacity: 1; transform: scale(0.92); } 48%, 100% { opacity: 1; transform: none; } }
@keyframes ap-confirm { 0%, 69% { opacity: 0.35; transform: none; } 71% { opacity: 1; transform: none; } 73% { opacity: 1; transform: scale(0.94); } 74.5%, 100% { opacity: 1; transform: none; } }
@keyframes ap-bell {
  0%, 32% { opacity: 0; transform: translateY(6px); } 35% { opacity: 1; transform: translateY(0) rotate(-2deg); }
  37% { transform: rotate(2deg); } 39% { transform: rotate(-2deg); } 41%, 47% { opacity: 1; transform: none; }
  50%, 100% { opacity: 0; }
}
@keyframes ap-call { 0%, 59% { opacity: 0; transform: translateY(6px); } 62%, 73% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; } }
@keyframes ap-call-ring {
  0%, 61% { transform: rotate(0); } 62.5% { transform: rotate(-18deg); } 64% { transform: rotate(16deg); } 65.5% { transform: rotate(-14deg); }
  67% { transform: rotate(12deg); } 68.5% { transform: rotate(-9deg); } 70%, 100% { transform: rotate(0); }
}
@keyframes ap-pop { 0%, 76% { transform: scale(0.5); } 80% { transform: scale(1.1); } 83%, 100% { transform: scale(1); } }
@keyframes ap-type1 { 0%, 53% { width: 0; } 56.5%, 100% { width: 100%; } }
@keyframes ap-type2 { 0%, 56.5% { width: 0; } 60%, 100% { width: 100%; } }
@keyframes ap-type3 { 0%, 60% { width: 0; } 65%, 100% { width: 100%; } }
@keyframes ap-type4 { 0%, 65% { width: 0; } 69%, 100% { width: 100%; } }
@keyframes ap-l1 { 0%, 30% { border-top-color: #fff; color: #fff; } 32%, 100% { border-top-color: rgba(255,255,255,.25); color: rgba(255,255,255,.6); } }
@keyframes ap-l2 { 0%, 30% { border-top-color: rgba(255,255,255,.25); color: rgba(255,255,255,.6); } 32%, 49% { border-top-color: #fff; color: #fff; } 51%, 100% { border-top-color: rgba(255,255,255,.25); color: rgba(255,255,255,.6); } }
@keyframes ap-l3 { 0%, 49% { border-top-color: rgba(255,255,255,.25); color: rgba(255,255,255,.6); } 51%, 74% { border-top-color: #fff; color: #fff; } 76%, 100% { border-top-color: rgba(255,255,255,.25); color: rgba(255,255,255,.6); } }
@keyframes ap-l4 { 0%, 74% { border-top-color: rgba(255,255,255,.25); color: rgba(255,255,255,.6); } 76%, 100% { border-top-color: #fff; color: #fff; } }

/* ───────── Sections claires ───────── */
.ap-light {
  background: #fff;
  color: var(--ap-ink);
  font-size: 16px;
  line-height: 1.6;
  padding: 84px 0;
  position: relative;
}
.ap-light--paper {
  background: var(--ap-paper);
}
.ap-light h2 {
  color: var(--ap-ink);
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.ap-light h3 {
  color: var(--ap-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}
.ap-intro {
  color: var(--ap-muted);
  font-size: 18px;
  margin: 0 0 44px;
  max-width: 38em;
}
.ap-light p {
  color: var(--ap-muted);
}

/* Trois étapes : une vraie suite, donc numérotée */
.ap-steps {
  counter-reset: ap-step;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-steps li {
  border-top: 3px solid var(--ap-navy);
  counter-increment: ap-step;
  padding-top: 18px;
}
.ap-steps li::before {
  color: var(--ap-rose);
  content: counter(ap-step);
  display: block;
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
}
.ap-steps p {
  margin: 0;
}

/* Une petite scène animée par étape (boucle de 6 s, les trois décalées) */
.ap-viz {
  align-items: center;
  background: #eef0ff;
  border-radius: 16px;
  display: flex;
  height: 148px;
  justify-content: center;
  margin: 0 0 20px;
  overflow: hidden;
  padding: 16px;
  position: relative;
}
/* Étape 1 : « Ajouter à Chrome » devient « Ajoutée » */
.ap-viz__card {
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(26, 20, 98, 0.12);
  display: grid;
  gap: 10px 10px;
  grid-template-columns: 30px 1fr;
  padding: 14px;
  width: min(100%, 250px);
}
.ap-viz__name b {
  color: var(--ap-ink);
  display: block;
  font-size: 14px;
  line-height: 1.2;
}
.ap-viz__name small {
  color: var(--ap-muted);
  font-size: 12px;
}
.ap-viz__btn {
  background: #1a73e8;
  border-radius: 20px;
  color: #fff;
  display: grid;
  font-size: 13px;
  font-weight: 600;
  grid-column: 1 / -1;
  padding: 8px 12px;
  text-align: center;
}
.ap-viz__btn em {
  font-style: normal;
  grid-area: 1 / 1;
}
.ap-viz__btn em:first-child {
  opacity: 0;
}
.ap-viz--add .ap-viz__btn {
  background: var(--ap-ok);
}
/* Étape 2 : trois champs qui se remplissent */
.ap-viz--form {
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
  padding: 14px 18px;
}
.ap-viz__line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 78px 1fr;
}
.ap-viz__line small {
  color: var(--ap-muted);
  font-size: 11.5px;
  line-height: 1.2;
}
.ap-viz__line div {
  background: #fff;
  border: 1px solid #d8d9f0;
  border-radius: 8px;
  color: var(--ap-ink);
  font-size: 13px;
  font-weight: 600;
  height: 32px;
  line-height: 30px;
  overflow: hidden;
  padding: 0 10px;
}
.ap-viz__line span {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  white-space: nowrap;
}
/* Étape 3 : l'interrupteur s'allume, le robot se met au travail */
.ap-viz--on {
  gap: 10px;
  justify-content: flex-start;
  padding: 10px 14px 0 10px;
}
.ap-viz__robot {
  align-self: flex-end;
  flex: none;
  height: 128px;
  width: auto;
}
.ap-viz__side {
  display: grid;
  flex: 1;
  gap: 10px;
  min-width: 0;
}
.ap-viz__switch {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(26, 20, 98, 0.1);
  color: var(--ap-ink);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  justify-content: space-between;
  padding: 9px 10px;
}
.ap-viz__switch i {
  background: #35d07f;
  border-radius: 12px;
  flex: none;
  height: 20px;
  position: relative;
  width: 36px;
}
.ap-viz__switch i::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 16px;
  left: 2px;
  position: absolute;
  top: 2px;
  transform: translateX(16px);
  width: 16px;
}
.ap-viz__live {
  align-items: center;
  color: var(--ap-ok);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}
.ap-viz__live b {
  background: var(--ap-ok);
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

/* Vidéo : le tutoriel de l'extension */
.ap-yt {
  aspect-ratio: 16 / 9;
  background: #0d0a33 center / cover no-repeat;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  display: block;
  max-width: 940px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}
.ap-yt iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}
.ap-yt__play {
  align-items: center;
  background: var(--ap-rose-btn);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  height: 78px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
  width: 78px;
}
.ap-yt:hover .ap-yt__play {
  transform: translate(-50%, -50%) scale(1.07);
}
.ap-yt:focus-visible {
  outline: 3px solid var(--ap-navy);
  outline-offset: 4px;
}
.ap-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Ce qu'il fait : six lignes, une petite animation chacune (boucle de 5 s, décalées) */
.ap-feats {
  display: grid;
  gap: 34px 40px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-feats li {
  align-content: start;
  display: grid;
  gap: 4px 18px;
  grid-template-columns: 84px 1fr;
}
.ap-feats h3 {
  align-self: end;
  font-size: 18px;
  margin: 0;
}
.ap-feats p {
  font-size: 15px;
  grid-column: 2;
  margin: 0;
}
.ap-fx {
  align-items: center;
  background: var(--ap-navy);
  border-radius: 22px;
  display: flex;
  grid-row: span 2;
  height: 84px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 84px;
}
.ap-fx svg {
  height: 54px;
  width: 54px;
}
.ap-fx__spin {
  transform-box: fill-box;
  transform-origin: 50% 54%;
}
.ap-fx__ring {
  transform-box: fill-box;
  transform-origin: 50% 8%;
}
.ap-fx__badge {
  transform-box: fill-box;
  transform-origin: center;
}
/* calendrier : neuf cases, celle du milieu devient verte */
.ap-fx__cal {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, 14px);
}
.ap-fx__cal i {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  height: 14px;
}
.ap-fx__cal .ap-fx__pick {
  background: #35d07f;
}
/* formulaire : trois lignes qui s'écrivent */
.ap-fx__lines {
  display: grid;
  gap: 9px;
  width: 48px;
}
.ap-fx__lines i {
  background: #fff;
  border-radius: 4px;
  height: 7px;
  transform-origin: left;
}
.ap-fx__lines i:nth-child(2) {
  width: 78%;
}
.ap-fx__lines i:nth-child(3) {
  width: 55%;
}
/* créneau : l'heure se transforme en coche */
.ap-fx__slot {
  align-items: center;
  background: #35d07f;
  border-radius: 10px;
  color: #fff;
  display: grid;
  font-size: 15px;
  font-weight: 600;
  height: 40px;
  justify-items: center;
  width: 64px;
}
.ap-fx__slot span,
.ap-fx__slot b {
  grid-area: 1 / 1;
}
.ap-fx__slot span {
  opacity: 0;
}
.ap-fx__slot b {
  display: flex;
}

/* L'appli iPhone : un bloc à part, sous l'extension */
.ap-iphone {
  background: var(--ap-paper);
}
.ap-iphone__grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: 250px 1fr;
}
.ap-iphone .ap-intro {
  margin-bottom: 26px;
}
.ap-phone {
  background: #050816;
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
}
.ap-phone video {
  display: block;
  height: auto;
  width: 100%;
}
.ap-shots {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 190px));
  margin: 0 0 28px;
}
.ap-shots img {
  border-radius: 18px;
  display: block;
  height: auto;
  width: 100%;
}
/* Page ouverte sur un iPhone : ce bloc remonte juste sous le haut de page */
#ts-content {
  display: flex;
  flex-direction: column;
}
.is-ios #iphone {
  order: -1;
}

/* Tarifs : la phrase rassurante sous le titre + bouton plus lisible */
.ap-pricing-note {
  color: var(--ap-muted);
  font-size: 17px;
  margin: -6px auto 34px;
  max-width: 36em;
  text-align: center;
}
#pricing .ts-list-divided li {
  font-size: 15px;
}
#pricing .card-footer .btn {
  font-size: 17px;
  padding: 13px 20px;
}
.ap-pricing-foot {
  color: var(--ap-muted);
  font-size: 15px;
  margin: 26px 0 0;
  text-align: center;
}

/* Questions fréquentes */
.ap-faq {
  max-width: 820px;
}
.ap-faq details {
  border-bottom: 1px solid var(--ap-line);
}
.ap-faq summary {
  color: var(--ap-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
}
.ap-faq summary::-webkit-details-marker {
  display: none;
}
.ap-faq summary::after {
  color: var(--ap-rose);
  content: "+";
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  position: absolute;
  right: 4px;
  top: 16px;
}
.ap-faq details[open] summary::after {
  content: "–";
}
.ap-faq summary:focus-visible {
  outline: 3px solid var(--ap-navy);
  outline-offset: 2px;
}
.ap-faq details p {
  margin: 0 0 20px;
  max-width: 44em;
}
.ap-faq details a {
  color: var(--ap-navy);
  text-decoration: underline;
}
.ap-last {
  align-items: center;
  background: var(--ap-navy);
  border-radius: 20px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  justify-content: space-between;
  margin-top: 56px;
  padding: 34px 38px;
}
.ap-last h2 {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 6px;
}
.ap-last p {
  color: #d7d5f0;
  margin: 0;
}
.ap-last .ap-btn:focus-visible {
  outline-color: #fff;
}

/* ───────── Bouton WhatsApp ───────── */
.ap-wa {
  align-items: center;
  background: #1fa855;
  border-radius: 30px;
  bottom: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  color: #fff !important;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 9px;
  padding: 12px 18px 12px 14px;
  position: fixed;
  right: 18px;
  text-decoration: none !important;
  z-index: 990;
}
.ap-wa:hover {
  background: #1b964c;
}
.ap-wa:focus-visible {
  outline: 3px solid var(--ap-navy);
  outline-offset: 3px;
}

/* ───────── Bandeau cookies : compact, en bas à gauche, il ne cache plus le haut de page ───────── */
.ap-cookies {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  color: var(--ap-ink);
  display: flex;
  font-size: 14px;
  gap: 14px;
  left: 18px;
  line-height: 1.45;
  max-width: 560px;
  padding: 14px 16px;
  position: fixed;
  z-index: 1000;
}
.ap-cookies p {
  margin: 0;
}
.ap-cookies a {
  color: var(--ap-navy);
  text-decoration: underline;
}
.ap-cookies div {
  display: flex;
  flex: none;
  gap: 8px;
}
.ap-cookies button {
  background: #fff;
  border: 1px solid var(--ap-navy);
  border-radius: 9px;
  color: var(--ap-navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
}
.ap-cookies #accept-cookies {
  background: var(--ap-navy);
  color: #fff;
}
.ap-cookies button:focus-visible {
  outline: 3px solid var(--ap-rose);
  outline-offset: 2px;
}

/* ───────── Retour de paiement ───────── */
.ap-pay {
  align-items: center;
  background: rgba(13, 10, 51, 0.6);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 10000;
}
.ap-pay__box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  color: var(--ap-ink);
  font-size: 16px;
  line-height: 1.55;
  max-height: 92vh;
  max-width: 520px;
  overflow: auto;
  padding: 30px;
  width: 100%;
}
.ap-pay__box h2 {
  color: var(--ap-ink);
  font-size: 25px;
  font-weight: 600;
  margin: 0 0 8px;
}
/* Le titre porte « checkout-alert » pour Google Tag Manager : on annule l'ancien style flottant */
.ap-pay__box h2.checkout-alert {
  animation: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  left: auto;
  padding: 0;
  position: static;
  text-align: left;
  top: auto;
  transform: none;
  z-index: auto;
}
.ap-pay__box p {
  color: var(--ap-muted);
  margin: 0 0 16px;
}
.ap-pay__box ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.ap-pay__box li {
  margin-bottom: 8px;
}
.ap-pay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ap-pay .ap-btn {
  font-size: 16px;
  min-height: 48px;
  padding: 10px 20px;
}
.ap-pay .ap-btn:focus-visible {
  outline-color: var(--ap-navy);
}

/* ───────── Barre de menu : texte lisible ───────── */
.navbar .navbar-nav .nav-link {
  font-size: 15px;
}
.navbar-brand img {
  height: 72px;
  width: auto;
}

/* ───────── Écrans moyens et petits ───────── */
@media (max-width: 991px) {
  #ts-hero.ap-hero {
    padding: 128px 0 150px;
  }
  .ap-hero__wave {
    height: 90px;
  }
  .ap-demo {
    margin-top: 44px;
  }
  .ap-feats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-iphone__grid {
    gap: 36px;
    grid-template-columns: 210px 1fr;
  }
  /* Menu ouvert sur mobile : fond plein, sinon les liens passent sur le texte */
  .navbar .navbar-collapse {
    background: var(--ap-navy);
    border-radius: 0 0 14px 14px;
    margin: 0 -15px;
    padding: 6px 20px 18px;
  }
  .navbar .navbar-nav .btn {
    margin: 10px 0 0 !important;
  }
}
@media (max-width: 767px) {
  .ap-light {
    padding: 60px 0;
  }
  .ap-intro {
    margin-bottom: 32px;
  }
  .ap-steps {
    grid-template-columns: 1fr;
  }
  .ap-hero__actions .ap-btn--main {
    width: 100%;
  }
  .ap-feats {
    grid-template-columns: 1fr;
  }
  .ap-iphone__grid {
    grid-template-columns: 1fr;
  }
  .ap-iphone .ap-phone {
    margin: 0 auto;
    max-width: 240px;
  }
  .ap-shots {
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
  }
  .ap-shots img {
    border-radius: 12px;
  }
  .ap-iphone .ap-btn,
  .ap-cta-row .ap-btn {
    width: 100%;
  }
  .ap-last {
    padding: 28px 22px;
  }
  .ap-cookies {
    align-items: stretch;
    flex-direction: column;
    left: 10px;
    right: 10px;
  }
  .ap-cookies div {
    justify-content: flex-end;
  }
  .ap-wa span {
    display: none;
  }
  .ap-wa {
    padding: 13px;
  }
}
@media (max-width: 460px) {
  .ap-demo__body {
    padding: 12px 12px 4px;
  }
  .ap-demo__ext span {
    display: none;
  }
  .ap-demo__robot {
    height: 118px;
    margin: -40px 0 -22px -12px;
  }
  .ap-demo__bubble {
    font-size: 12.5px;
    padding: 9px 11px 10px;
  }
  .ap-demo__says {
    min-height: 51px;
  }
  .ap-demo__steps li {
    font-size: 11.5px;
  }
  .ap-gov__days {
    gap: 0 4px;
  }
  .ap-chip {
    font-size: 9.5px;
  }
  .ap-gov__info b {
    font-size: 11.5px;
  }
}

/* ───────── Petits réglages du thème, sur l'accueil seulement ───────── */
#pricing .ts-title {
  margin-bottom: 14px;
}
#pricing .ts-title h2 {
  color: var(--ap-ink);
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 600;
}
/* Le fond du menu arrivait en 1 s : pendant ce temps les liens blancs étaient illisibles sur fond clair */
.navbar .ts-background {
  transition: opacity 0.2s ease;
}
/* Le compteur d'essai est en bas à droite : le bouton WhatsApp passe au-dessus */
body:has(#free-trial) .ap-wa {
  bottom: 86px;
}
