/* ===================== Page de connexion = vitrine DAY Stock (9/11) =====================
   Grands titres à empattement (Fraunces), bandeaux clairs alternés, exemples animés,
   aux couleurs de DAY Stock : bleu marine #0f1e33 / #16283f, orange #e0852f, fond #f2f3f7. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400;1,9..144,500&display=swap");

.connexion.cnx-public { display: block; background: #f6f7fa; min-height: 100dvh; height: auto; overflow: visible; }
html.ap-bloque, html.ap-bloque body { overflow: hidden; }
body:has(#ecran-connexion:not([hidden])) #tel-onglets,
body:has(#ecran-connexion:not([hidden])) #ergo-fab,
body:has(#ecran-connexion:not([hidden])) .contact-flottant { display: none !important; }

.ap { --m9: #0f1e33; --m8: #16283f; --m7: #1f3553; --m5: #3f5673; --o: #e0852f; --o2: #ea9546; --o05: #fdf4ea;
  --clair: #f6f7fa; --clair2: #eceff4; --carte: #ffffff; --bord: #e0e4eb; --txt: #0f1e33; --doux: #5b6676;
  --serif: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--txt); font-size: 16px; }
.ap h1, .ap h2, .ap h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -.03em; color: var(--m9); margin: 0; }
.ap h1 em, .ap h2 em, .ap h3 em { font-style: normal; color: var(--o); }
.ap p { color: var(--doux); line-height: 1.6; margin: 0; }
.ap-logo { width: 34px; height: 34px; flex: none; border-radius: 9px; box-shadow: 0 0 0 1px var(--bord, #e0e4eb); }
.ap-marque { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--m9); }
.ap-marque em, .cnx-boite-marque em, .ap-app-logo em, .ap-bloc-marine em { font-style: normal; color: var(--o); }

/* boutons */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1;
  background: var(--o); color: #fff; text-decoration: none; padding: 11px 18px; border-radius: 10px; transition: transform .18s, box-shadow .18s, background .18s; }
.ap-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(224,133,47,.8); }
.ap-btn-clair { background: transparent; color: var(--m9); }
.ap-btn-clair:hover { background: rgba(15,30,51,.06); box-shadow: none; }
.ap-btn-contour { background: #fff; color: var(--m9); box-shadow: inset 0 0 0 1.5px var(--m9); }
.ap-btn-contour:hover { box-shadow: inset 0 0 0 1.5px var(--m9), 0 10px 22px -12px rgba(15,30,51,.5); }
.ap-hero .ap-btn-clair { background: #fff; box-shadow: inset 0 0 0 1.5px var(--m9); }
.ap-btn-grand { padding: 15px 24px; font-size: 15.5px; border-radius: 12px; }

/* en-tête */
.ap-haut { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(246,247,250,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.ap-haut.defile { border-bottom-color: var(--bord); }
.ap-nav { display: flex; gap: 22px; margin-left: 18px; }
.ap-nav a { color: var(--doux); text-decoration: none; font-weight: 600; font-size: 14px; }
.ap-nav a:hover { color: var(--m9); }
.ap-haut-btns { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 760px) {
  .ap-nav, .ap-haut .ap-btn:not(.ap-btn-clair) { display: none; }
  .ap-haut .ap-btn-clair { background: var(--m9); color: #fff; }
}

/* bandeaux */
.ap-bande { padding: clamp(60px, 8vw, 104px) clamp(16px, 5vw, 64px); background: var(--clair); }
.ap-fonce-clair { background: var(--clair2); }
.ap-centre { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.ap-centre h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; margin: 10px 0 14px; }
.ap-sur { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--o); }

/* hero */
.ap-hero { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; padding-top: clamp(36px, 6vw, 70px);
  background: radial-gradient(800px 420px at 90% 10%, rgba(224,133,47,.10), transparent 70%), var(--clair); }
@media (min-width: 1100px) { .ap-hero { grid-template-columns: .95fr 1.05fr; } }
.ap-pastille { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--m7); background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 6px 12px; }
.ap-pastille svg { width: 14px; height: 14px; color: var(--o); }
.ap-hero h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; margin: 22px 0 22px; }
.ap-hero-txt > p { font-size: 18px; max-width: 50ch; }
.ap-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.ap-micro { display: block; margin-top: 16px; color: var(--doux); font-size: 13px; }

/* écran d'ordinateur */
.ap-ecran { justify-self: center; width: 100%; max-width: 640px; }
.ap-moniteur { background: #111827; border-radius: 18px; padding: 12px; box-shadow: 0 40px 70px -35px rgba(15,30,51,.55), 0 0 0 1px rgba(0,0,0,.2); }
.ap-pied-ecran { width: 26%; height: 34px; margin: 0 auto; background: linear-gradient(#cfd5de, #b9c1cd); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.ap-pied-ecran::after { content: ""; display: block; }
.ap-app { display: grid; grid-template-columns: 150px 1fr; background: #f2f3f7; border-radius: 8px; overflow: hidden; min-height: 330px; font-size: 12px; }
.ap-app-menu { background: var(--m9); color: #c8d2e0; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.ap-app-logo { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 12px; }
.ap-app-logo .ap-logo { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.ap-app-menu span { padding: 7px 8px; border-radius: 7px; font-weight: 600; }
.ap-app-menu span.on { background: var(--m7); color: #fff; box-shadow: inset 3px 0 0 var(--o); }
.ap-app-corps { padding: 14px; display: grid; gap: 10px; align-content: start; }
.ap-app-t b { display: block; font-size: 16px; font-weight: 800; } .ap-app-t small { color: #6b7686; }
.ap-app-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ap-app-kpi div { background: #fff; border-radius: 10px; padding: 8px 10px; }
.ap-app-kpi small { display: block; color: #6b7686; font-size: 10.5px; font-weight: 600; }
.ap-app-kpi b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; } .ap-app-kpi u { text-decoration: none; color: #6b7686; font-weight: 700; margin-left: 2px; }
.ap-app-alerte { display: flex; align-items: center; gap: 7px; background: #fff4e8; color: #8a4a12; font-weight: 700; border-radius: 9px; padding: 8px 10px;
  opacity: 0; transform: translateY(-6px); transition: opacity .5s 1.4s, transform .5s 1.4s; }
.ap-app-alerte svg { width: 14px; height: 14px; }
.vu .ap-app-alerte { opacity: 1; transform: none; }
.ap-app-cels { background: #fff; border-radius: 10px; padding: 10px 12px; display: grid; gap: 7px; }
.ap-cel { display: grid; grid-template-columns: 62px 1fr 38px; align-items: center; gap: 8px; font-weight: 700; color: #3c4453; font-size: 11px; }
.ap-cel-b { height: 8px; background: #eceef2; border-radius: 5px; overflow: hidden; }
.ap-cel-b i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #f4b06b, var(--o)); transition: width 1.2s cubic-bezier(.2,.8,.2,1) calc(.4s + var(--k, 0) * .1s); }
.vu .ap-cel-b i { width: var(--p); }
.ap-cel em { font-style: normal; font-size: 10.5px; color: #2f7fd8; background: #e8f1fc; border-radius: 9px; padding: 2px 0; text-align: center; }
.ap-cel em.chaud { color: #d64545; background: #fdecec; animation: ap-pouls 1.8s ease-in-out infinite; }
@keyframes ap-pouls { 50% { box-shadow: 0 0 0 4px rgba(214,69,69,.14); } }
@media (max-width: 560px) { .ap-app { grid-template-columns: 1fr; } .ap-app-menu { display: none; } }

/* le problème */
.ap-probleme { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; max-width: 1150px; margin: 0 auto; }
@media (min-width: 1000px) { .ap-probleme { grid-template-columns: 1fr auto 300px; } }
.ap-pb-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ap-pb { background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; padding: 16px; }
.ap-pb-ic { color: var(--o); } .ap-pb-ic svg { width: 18px; height: 18px; }
.ap-pb b { display: block; margin: 8px 0 4px; font-size: 14.5px; } .ap-pb p { font-size: 13.5px; line-height: 1.5; }
.ap-fleche { font-size: 30px; color: var(--o); text-align: center; }
@media (max-width: 999px) { .ap-fleche { transform: rotate(90deg); } .ap-fleche.vu { transform: rotate(90deg); } }
.ap-bloc-marine { background: var(--m9); color: #fff; border-radius: 18px; padding: 30px 26px; text-align: center; display: grid; justify-items: center; gap: 10px;
  box-shadow: 0 30px 60px -30px rgba(15,30,51,.7); }
.ap-bloc-marine .ap-logo { width: 54px; height: 54px; border-radius: 14px; box-shadow: none; }
.ap-bloc-marine > b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ap-bloc-marine p { color: #c8d2e0; font-size: 14.5px; }

/* trois cartes / étapes */
.ap-trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; max-width: 1150px; margin: 0 auto; }
.ap-carte, .ap-etape { background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 26px; transition: transform .25s, box-shadow .25s; }
.ap-carte:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(15,30,51,.45); }
.ap-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--o05); color: var(--o); font-weight: 800; }
.ap-carte h3, .ap-etape h3 { font-size: 23px; margin: 16px 0 8px; line-height: 1.2; }
.ap-etapes .ap-num { background: var(--m9); color: #fff; }

/* exemples */
.ap-ex { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; max-width: 1100px; margin: 0 auto 70px; }
.ap-ex:last-child { margin-bottom: 0; }
@media (min-width: 950px) { .ap-ex { grid-template-columns: 1fr 1fr; gap: 60px; } .ap-ex-inverse .ap-ex-txt { order: 2; } }
.ap-ex-txt h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; margin: 10px 0 12px; }
.ap-widget { background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 20px; box-shadow: 0 30px 50px -40px rgba(15,30,51,.5); display: grid; gap: 12px; }
.ap-w-t { display: flex; align-items: center; gap: 12px; }
.ap-w-t b { display: block; font-size: 15px; } .ap-w-t small { color: var(--doux); font-size: 13px; }
.ap-w-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #e8f1fc; color: #2f7fd8; }
.ap-w-ic.chaud { background: #fdecec; color: #d64545; } .ap-w-ic svg { width: 19px; height: 19px; }
.ap-courbe { width: 100%; height: auto; }
.ap-consigne { stroke: #2f7fd8; stroke-width: 1.5; stroke-dasharray: 5 5; }
.ap-trait { fill: none; stroke: var(--o); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 2s cubic-bezier(.4,.1,.2,1) .3s; }
.vu .ap-trait { stroke-dashoffset: 0; }
.ap-w-ligne { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 4px 0 10px; border-bottom: 1px solid #eef0f4; }
.ap-w-ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.ap-w-ligne b { display: block; font-size: 14.5px; } .ap-w-ligne small { color: var(--doux); font-size: 12.5px; }
.ap-w-ligne > span { font-weight: 800; font-variant-numeric: tabular-nums; }
.ap-w-ligne .ap-cel-b { grid-column: 1 / -1; }
.ap-ticket { display: flex; justify-content: space-between; align-items: center; border-left: 4px solid var(--o); background: var(--clair); border-radius: 12px; padding: 12px 14px; }
.ap-ticket b { display: block; } .ap-ticket small { color: var(--doux); font-size: 12.5px; } .ap-poids { font-size: 20px; }
.ap-cmr-feuille { position: relative; border: 1.5px solid #c62828; border-radius: 6px; padding: 14px 16px; display: grid; gap: 7px; background: #fff;
  transform: translateY(14px) rotate(-1.5deg); opacity: 0; transition: transform .8s cubic-bezier(.2,.8,.2,1) .5s, opacity .6s .5s; }
.vu .ap-cmr-feuille { transform: rotate(-1.5deg); opacity: 1; }
.ap-cmr-feuille span { color: #c62828; font-weight: 900; font-size: 22px; letter-spacing: .04em; }
.ap-cmr-feuille b { position: absolute; right: 14px; top: 16px; border: 1.5px solid #111; padding: 3px 8px; font-size: 12px; }
.ap-cmr-feuille i { display: block; height: 7px; border-radius: 4px; background: #eef0f4; }
.ap-cmr-feuille i:nth-of-type(2) { width: 75%; } .ap-cmr-feuille i:nth-of-type(3) { width: 55%; }
.ap-cmr-feuille em { justify-self: start; display: inline-flex; gap: 5px; align-items: center; font-style: normal; font-size: 12.5px; font-weight: 700; color: #15a05a; background: #e3f6ec; border-radius: 999px; padding: 4px 10px;
  transform: scale(.6); opacity: 0; transition: transform .5s cubic-bezier(.3,1.6,.5,1) 1.4s, opacity .3s 1.4s; }
.vu .ap-cmr-feuille em { transform: none; opacity: 1; } .ap-cmr-feuille em svg { width: 13px; height: 13px; }

/* téléphone */
.ap-tel { width: 260px; justify-self: center; background: #f2f3f7; border-radius: 40px; padding: 44px 16px 22px; position: relative;
  box-shadow: 0 0 0 9px #1b1b1d, 0 0 0 10px #3a3a3e, 0 40px 70px -30px rgba(15,30,51,.6); transform: translateY(30px) rotate(4deg); opacity: 0; transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.ap-tel.vu { transform: rotate(-3deg); opacity: 1; }
.ap-tel-ile { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #000; }
.ap-tel small { font-size: 10.5px; font-weight: 700; color: #6b7686; text-transform: uppercase; letter-spacing: .04em; }
.ap-tel-t { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 10px; }
.ap-tel-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-tel-g > div { background: #fff; border-radius: 13px; padding: 10px; position: relative; overflow: hidden; min-height: 76px; }
.ap-tel-g > div::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, rgba(234,149,70,.1), rgba(224,133,47,.26)); transition: height 1.3s .6s; }
.ap-tel.vu .ap-tel-g > div::before { height: var(--p); }
.ap-tel-g span { position: relative; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #6b7686; }
.ap-tel-g em { font-style: normal; color: #2f7fd8; } .ap-tel-g em.chaud { color: #d64545; }
.ap-tel-g b { position: relative; display: block; font-size: 22px; font-weight: 800; margin-top: 6px; }

/* pour qui */
.ap-deux { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; }
@media (min-width: 950px) { .ap-deux { grid-template-columns: 1.1fr .9fr; gap: 70px; } }
.ap-gauche { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; margin: 10px 0 24px !important; }
.ap-coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ap-coches li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.ap-coches svg { width: 19px; height: 19px; color: var(--o); flex: none; }
.ap-deux blockquote { margin: 0; background: var(--m9); color: #fff; border-radius: 20px; padding: 34px; font-family: var(--serif); font-size: 21px; line-height: 1.45; font-weight: 500; font-style: normal; }
.ap-deux cite { display: block; margin-top: 16px; font-family: inherit; font-style: normal; font-size: 14px; font-weight: 700; color: var(--o2); }

/* FAQ */
.ap-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.ap-faq details { background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; padding: 0 20px; }
.ap-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; color: var(--o); font-size: 22px; line-height: 1; transition: transform .2s; }
.ap-faq details[open] summary::after { transform: rotate(45deg); }
.ap-faq details p { padding: 0 0 18px; }

/* fin + pied */
.ap-final { background: var(--m9); text-align: center; padding: clamp(70px, 9vw, 110px) clamp(16px, 5vw, 64px); }
.ap-final h2 { color: #fff; font-size: clamp(30px, 4vw, 50px); line-height: 1.15; max-width: 22ch; margin: 0 auto; }
.ap-final h2 em { color: var(--o2); }
.ap-final .ap-cta { justify-content: center; margin-top: 34px; }
.ap-final .ap-btn-contour { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.ap-pied { background: #0a1526; color: #8d9db3; padding: 34px clamp(16px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; font-size: 13.5px; }
.ap-pied .ap-marque { color: #fff; } .ap-pied a { color: #c8d2e0; } .ap-pied small { flex-basis: 100%; color: #5f6f86; }

/* boîte de connexion (par-dessus) */
.ap-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.ap-modal-fond { position: absolute; inset: 0; background: rgba(10,21,38,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.ap-modal .cnx-boite { position: relative; width: min(100%, 420px); background: #fff; border-radius: 22px; padding: 30px 28px 26px; box-shadow: 0 40px 80px -30px rgba(10,21,38,.6);
  transform: translateY(16px) scale(.98); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s; max-height: calc(100dvh - 32px); overflow: auto; }
.ap-modal.ouvert { visibility: visible; }
.ap-modal.ouvert .ap-modal-fond { opacity: 1; }
.ap-modal.ouvert .cnx-boite { transform: none; opacity: 1; }
.ap-modal-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f2f3f7; color: #3c4453; font-size: 22px; line-height: 1; cursor: pointer; }
.cnx-boite-marque { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #0f1e33; }
.cnx-boite-marque .ap-logo { width: 36px; height: 36px; }

/* apparition au défilement */
.ap-r { opacity: 0; transform: translateY(20px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.ap-r.vu { opacity: 1; transform: none; }
.ap-fleche.ap-r.vu { transform: none; }
@media (max-width: 999px) { .ap-fleche.ap-r.vu { transform: rotate(90deg); } }
@media (prefers-reduced-motion: reduce) {
  .ap *, .ap-r, .ap-modal * { transition: none !important; animation: none !important; }
}

/* ---------- « Vous saisissez une fois, tout le reste suit » (animation en boucle) ---------- */
.ap-app-alerte { background: #e3f6ec; color: #0e653a; }
.ap-gain { display: flex; gap: 14px; margin-top: 22px; }
.ap-gain > div { background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.ap-gain b { font-family: var(--serif); font-weight: 800; font-size: 40px; line-height: 1; color: var(--o); font-variant-numeric: tabular-nums; }
.ap-gain span { font-size: 12.5px; line-height: 1.3; color: var(--doux); font-weight: 600; }
.ap-note { display: block; margin-top: 8px; font-size: 11.5px; color: #8a94a3; }
.ap-w-saisie { grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .ap-w-saisie { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.ap-form { background: var(--clair); border-radius: 14px; padding: 14px; display: grid; gap: 9px; position: relative; }
.ap-form-t { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; }
.ap-form-t svg { width: 16px; height: 16px; color: var(--o); }
.ap-champ { background: #fff; border: 1px solid var(--bord); border-radius: 9px; padding: 6px 10px; min-height: 46px; }
.ap-champ small { display: block; font-size: 10.5px; color: #8a94a3; font-weight: 700; }
.ap-tape { display: inline-block; font-weight: 700; font-size: 14px; white-space: nowrap; clip-path: inset(0 100% 0 0); border-right: 2px solid transparent; padding-right: 2px; }
.vu .ap-tape { animation: ap-tape calc(var(--n) * .055s) steps(var(--n)) var(--t) forwards, ap-curseur .5s step-end var(--t) 4; }
@keyframes ap-tape { to { clip-path: inset(0 0 0 0); } }
@keyframes ap-curseur { 0%, 100% { border-right-color: var(--o); } 50% { border-right-color: transparent; } }
.ap-ok { justify-self: start; display: inline-flex; align-items: center; gap: 5px; background: var(--o); color: #fff; font-weight: 700; font-size: 13px; border-radius: 9px; padding: 8px 12px;
  transform: scale(.85); opacity: .35; }
.vu .ap-ok { animation: ap-ok .45s cubic-bezier(.3,1.6,.5,1) 2.5s forwards; }
@keyframes ap-ok { to { transform: none; opacity: 1; background: #15a05a; } }
.ap-ok svg { width: 14px; height: 14px; }
.ap-cascade { display: grid; gap: 8px; position: relative; }
.ap-casc { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 9px 11px;
  opacity: .25; transform: translateX(-14px); }
.ap-casc .ap-w-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--o05); color: var(--o); }
.ap-casc .ap-w-ic svg { width: 16px; height: 16px; }
.ap-casc b { font-size: 13px; }
.ap-casc em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #15a05a; background: #e3f6ec; border-radius: 999px; padding: 3px 8px; opacity: 0; }
.vu .ap-casc { animation: ap-casc .5s cubic-bezier(.2,.8,.2,1) calc(2.9s + var(--k) * .32s) forwards; }
.vu .ap-casc em { animation: ap-apparait .3s calc(3.1s + var(--k) * .32s) forwards; }
@keyframes ap-casc { 60% { box-shadow: 0 0 0 4px rgba(224,133,47,.18); } to { opacity: 1; transform: none; border-color: rgba(224,133,47,.45); } }
@keyframes ap-apparait { to { opacity: 1; } }
/* la flèche du problème respire */
.ap-fleche.vu { animation: ap-respire 1.6s ease-in-out infinite; }
@keyframes ap-respire { 50% { translate: 6px 0; } }
@media (max-width: 999px) { @keyframes ap-respire { 50% { translate: 0 6px; } } }
/* l'écran du hero : la ligne de saisie revient en boucle */
.ap-ecran.vu .ap-app-alerte { animation: ap-toast 7s ease-in-out 1.4s infinite; }
@keyframes ap-toast { 0%, 100% { opacity: 0; transform: translateY(-6px); } 8%, 80% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ap-tape { clip-path: none; } .ap-casc, .ap-casc em, .ap-ok { opacity: 1; transform: none; }
}

/* ---------- hero plus « produit » : halo, notifications flottantes, téléphone posé devant l'écran ---------- */
.ap-ecran { position: relative; }
.ap-ecran::before { content: ""; position: absolute; inset: 8% -6% 10% 4%; background: radial-gradient(closest-side, rgba(224,133,47,.28), transparent); filter: blur(30px); z-index: -1; }
.ap-flot { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 18px 40px -18px rgba(15,30,51,.45); font-size: 12.5px; opacity: 0; transform: translateY(12px) scale(.96); }
.ap-flot b { display: block; font-size: 13px; } .ap-flot small { color: var(--doux); }
.ap-flot > svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: #e3f6ec; color: #15a05a; flex: none; }
.ap-flot-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--o05); color: var(--o); display: grid; place-items: center; }
.ap-flot-ic svg { width: 16px; height: 16px; }
.ap-flot-1 { top: -18px; right: -10px; }
.ap-flot-2 { top: 44%; right: -34px; }
.ap-ecran.vu .ap-flot { animation: ap-flot-in .6s cubic-bezier(.2,.8,.2,1) forwards, ap-flotte 6s ease-in-out infinite; }
.ap-ecran.vu .ap-flot-1 { animation-delay: 2s, 2.6s; }
.ap-ecran.vu .ap-flot-2 { animation-delay: 2.5s, 3.1s; }
@keyframes ap-flot-in { to { opacity: 1; transform: none; } }
@keyframes ap-flotte { 50% { translate: 0 -7px; } }
.ap-mini-tel { position: absolute; left: -26px; bottom: -22px; width: 128px; background: #f2f3f7; border-radius: 22px; padding: 26px 10px 12px;
  box-shadow: 0 0 0 5px #1b1b1d, 0 0 0 6px #3a3a3e, 0 30px 50px -20px rgba(15,30,51,.6); opacity: 0; transform: translateY(30px) rotate(-6deg); }
.ap-mini-tel .ap-tel-ile { top: 7px; width: 44px; height: 13px; }
.ap-mini-tel small { display: block; font-size: 8.5px; font-weight: 800; color: #6b7686; text-transform: uppercase; letter-spacing: .04em; }
.ap-mini-tel > b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.ap-mini-b { height: 5px; border-radius: 3px; background: #e3e5ea; margin: 5px 0 7px; overflow: hidden; }
.ap-mini-b i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f4b06b, var(--o)); transition: width 1.2s 1.6s; }
.ap-mini-g { display: grid; gap: 4px; }
.ap-mini-g span { display: flex; justify-content: space-between; background: #fff; border-radius: 6px; padding: 4px 6px; font-size: 9.5px; font-weight: 700; color: #3c4453; }
.ap-mini-g em { font-style: normal; color: var(--o); }
.ap-ecran.vu .ap-mini-tel { animation: ap-tel-in .9s cubic-bezier(.2,.8,.2,1) 1.1s forwards; }
.ap-ecran.vu .ap-mini-b i { width: 58%; }
@keyframes ap-tel-in { to { opacity: 1; transform: rotate(-4deg); } }
@media (max-width: 760px) { .ap-flot-2, .ap-mini-tel { display: none; } .ap-flot-1 { right: 6px; top: -14px; } }

/* bandeau des chiffres */
.ap-chiffres { background: var(--m9); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; }
.ap-chiffres > div { padding: 34px 20px; text-align: center; background: var(--m9); position: relative; }
.ap-chiffres > div + div::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: rgba(255,255,255,.1); }
.ap-chiffres b { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: 1; color: #fff; }
.ap-chiffres b span { color: var(--o2); }
.ap-chiffres small { display: block; margin-top: 8px; color: #a9b5c6; font-size: 14px; }
@media (max-width: 760px) { .ap-chiffres { grid-template-columns: 1fr 1fr; } .ap-chiffres > div:nth-child(3)::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .ap-flot, .ap-mini-tel { opacity: 1; transform: none; } }
.ap { overflow-x: clip; }

/* ---------- connexion directement dans le haut de page : simple et rapide ---------- */
.ap-cnx { margin-top: 28px; background: #fff; border: 1px solid var(--bord); border-radius: 18px; padding: 18px 18px 14px; max-width: 560px;
  box-shadow: 0 24px 50px -34px rgba(15,30,51,.5); }
.ap-cnx h2 { font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0; margin: 0 0 12px; color: var(--m9); }
.ap-cnx > p { display: none; }
.ap-cnx .cnx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.ap-cnx .cnx-form .champ { margin: 0; }
.ap-cnx .cnx-form .champ span { font-size: 12px; }
.ap-cnx .cnx-form input { height: 46px; font-size: 15px; }
.ap-cnx .cnx-form .btn { grid-column: 1 / -1; height: 48px; font-size: 15.5px; background: var(--o); border-color: var(--o); }
.ap-cnx .cnx-lien { margin-top: 8px; font-size: 13px; }
.ap-cnx > p.sourdine { display: none; }
.ap-cnx .cnx-erreur, .ap-cnx .cnx-info { margin-bottom: 12px; }
.ap-micro a { color: var(--o); font-weight: 700; }
@media (max-width: 560px) { .ap-cnx .cnx-form { grid-template-columns: 1fr; } }
/* téléphone : la connexion juste sous le titre */
@media (max-width: 760px) {
  .ap-hero { padding-top: 22px; }
  .ap-hero-txt { display: flex; flex-direction: column; }
  .ap-hero-txt .ap-pastille { display: none; }
  .ap-hero h1 { font-size: 31px; margin: 0 0 4px; order: 1; }
  .ap-hero-txt .ap-cnx { order: 2; margin-top: 16px; }
  .ap-hero-txt .ap-micro { order: 3; }
  .ap-hero-txt > p { order: 4; margin-top: 22px; font-size: 16px; }
}

/* ---------- vrai téléphone (iPhone) posé devant l'écran ---------- */
.ap-mini-tel { display: none !important; }
.ap-iphone { position: absolute; left: -38px; bottom: -46px; width: 158px; aspect-ratio: 9 / 19.3; border-radius: 30px; background: #1b1b1d; padding: 6px;
  box-shadow: inset 0 0 0 1.5px #3a3a3e, 0 0 0 1px #0d0d0e, 0 34px 60px -22px rgba(15,30,51,.7); opacity: 0; transform: translateY(40px) rotate(-7deg); z-index: 2; }
.ap-iphone::before, .ap-iphone::after { content: ""; position: absolute; left: -2px; width: 3px; border-radius: 2px; background: #2c2c2f; }
.ap-iphone::before { top: 58px; height: 22px; } .ap-iphone::after { top: 88px; height: 34px; }
.ap-iphone-ecran { position: relative; height: 100%; border-radius: 25px; background: #f2f3f7; overflow: hidden; padding: 0 9px; display: flex; flex-direction: column; }
.ap-ip-barre { display: flex; align-items: center; justify-content: space-between; height: 26px; font-size: 8.5px; font-weight: 700; color: #0f1e33; padding: 0 6px; }
.ap-ip-barre i { width: 44px; height: 13px; border-radius: 8px; background: #000; }
.ap-ip-res { font-size: 6px; letter-spacing: 1px; }
.ap-ip-date { font-size: 7px; font-weight: 800; color: #6b7686; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.ap-ip-titre { font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: #0f1e33; margin: 1px 0 6px; }
.ap-ip-total { background: #fff; border-radius: 10px; padding: 7px 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.ap-ip-total b { font-size: 16px; font-weight: 800; color: #0f1e33; } .ap-ip-total span { font-size: 9px; font-weight: 800; color: var(--o); }
.ap-ip-total div { flex-basis: 100%; height: 4px; border-radius: 2px; background: #eceef2; margin-top: 4px; overflow: hidden; }
.ap-ip-total i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f4b06b, var(--o)); transition: width 1.2s 1.8s; }
.ap-ip-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 5px; }
.ap-ip-grille > div { background: #fff; border-radius: 9px; padding: 6px 6px 5px; position: relative; overflow: hidden; }
.ap-ip-grille > div::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, rgba(234,149,70,.1), rgba(224,133,47,.26)); transition: height 1.3s 2s; }
.ap-ecran.vu .ap-ip-grille > div::before { height: var(--p); }
.ap-ip-grille span { position: relative; display: flex; justify-content: space-between; font-size: 7.5px; font-weight: 800; color: #6b7686; }
.ap-ip-grille em { font-style: normal; color: #2f7fd8; } .ap-ip-grille em.chaud { color: #d64545; }
.ap-ip-grille b { position: relative; display: block; font-size: 15px; font-weight: 800; color: #0f1e33; margin-top: 2px; }
.ap-ip-grille b small { font-size: 9px; color: #6b7686; }
.ap-ip-tab { margin: auto -9px 0; display: flex; justify-content: space-around; padding: 7px 0 12px; background: rgba(249,249,251,.95); border-top: .5px solid #dfe2e8; }
.ap-ip-tab span { color: #a0a6b1; } .ap-ip-tab span.on { color: var(--o); }
.ap-ip-tab svg { width: 13px; height: 13px; }
.ap-ecran.vu .ap-iphone { animation: ap-iphone-in 1s cubic-bezier(.2,.8,.2,1) 1s forwards; }
.ap-ecran.vu .ap-ip-total i { width: 58%; }
@keyframes ap-iphone-in { to { opacity: 1; transform: rotate(-5deg); } }
@media (max-width: 760px) { .ap-iphone { display: none; } }
@media (prefers-reduced-motion: reduce) { .ap-iphone { opacity: 1; transform: rotate(-5deg); } }

/* ---------- espace producteur ---------- */
.ap-ex-txt h3 em { font-style: normal; color: var(--o); }
.ap-coches-petit { margin-top: 18px; gap: 9px; } .ap-coches-petit li { font-size: 15px; }
.ap-appels { margin-top: 20px; display: inline-flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 12px 16px; }
.ap-appels > span { font-size: 12.5px; font-weight: 700; color: var(--doux); }
.ap-appels b { font-family: var(--serif); font-weight: 800; font-size: 26px; color: var(--m9); }
.ap-appels s { color: #a0a6b1; text-decoration-thickness: 2px; text-decoration-color: #d64545; }
.ap-appels b span { color: #15a05a; }
.ap-prod { position: relative; display: grid; place-items: center; min-height: 520px; }
.ap-prod::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(224,133,47,.22), transparent); filter: blur(10px); }
.ap-iphone.ap-iphone-grand { position: relative; left: auto; bottom: auto; width: 250px; border-radius: 44px; padding: 9px; opacity: 1; transform: rotate(-3deg) translateY(20px); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.ap-prod.vu .ap-iphone-grand { transform: rotate(-3deg); }
.ap-iphone-grand .ap-iphone-ecran { border-radius: 36px; padding: 0 14px; }
.ap-iphone-grand::before { top: 92px; height: 34px; } .ap-iphone-grand::after { top: 138px; height: 52px; }
.ap-iphone-grand .ap-ip-barre { height: 40px; font-size: 12px; } .ap-iphone-grand .ap-ip-barre i { width: 72px; height: 21px; border-radius: 12px; }
.ap-iphone-grand .ap-ip-date { font-size: 10px; } .ap-iphone-grand .ap-ip-titre { font-size: 22px; margin-bottom: 10px; }
.ap-iphone-grand .ap-ip-total { padding: 11px 12px; border-radius: 14px; } .ap-iphone-grand .ap-ip-total b { font-size: 26px; } .ap-iphone-grand .ap-ip-total > span { font-size: 12px; }
.ap-iphone-grand .ap-ip-total div { height: 6px; }
.ap-prod.vu .ap-ip-total i { width: 72%; }
.ap-ip-liste { display: grid; gap: 6px; margin-top: 8px; }
.ap-ip-liste > div { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 9px 11px; opacity: 0; transform: translateX(-10px); }
.ap-prod.vu .ap-ip-liste > div { animation: ap-flot-in .5s cubic-bezier(.2,.8,.2,1) calc(.6s + var(--k) * .2s) forwards; }
.ap-ip-liste b { display: block; font-size: 13px; color: #0f1e33; } .ap-ip-liste small { font-size: 10.5px; color: #6b7686; }
.ap-ip-liste em { font-style: normal; font-weight: 800; font-size: 14px; color: #0f1e33; }
.ap-ip-sous { display: block; margin: 12px 0 6px; font-size: 10px; font-weight: 800; color: #6b7686; text-transform: uppercase; letter-spacing: .04em; }
.ap-ip-notif { display: flex; gap: 9px; align-items: center; background: #fff; border-left: 3px solid var(--o); border-radius: 12px; padding: 9px 10px; opacity: 0; transform: translateY(10px); }
.ap-ip-notif svg { width: 18px; height: 18px; color: var(--o); flex: none; }
.ap-ip-notif b { display: block; font-size: 12px; color: #0f1e33; } .ap-ip-notif small { font-size: 10px; color: #6b7686; }
.ap-prod.vu .ap-ip-notif { animation: ap-flot-in .5s cubic-bezier(.2,.8,.2,1) 1.7s forwards; }
.ap-flot-prod { top: 16%; right: 2%; }
.ap-prod.vu .ap-flot-prod { animation: ap-flot-in .6s cubic-bezier(.2,.8,.2,1) 2.2s forwards, ap-flotte 6s ease-in-out 2.8s infinite; }
@media (max-width: 560px) { .ap-flot-prod { right: 0; top: 4%; } .ap-prod { min-height: 480px; } }
@media (prefers-reduced-motion: reduce) { .ap-ip-liste > div, .ap-ip-notif, .ap-flot-prod { opacity: 1; transform: none; } }
.ap-ip-total b .ap-nb { font-style: normal; display: inline; height: auto; width: auto; background: none; font-variant-numeric: tabular-nums; }
.ap-flot-prod { z-index: 3; top: 20%; right: 0; }
@media (min-width: 950px) { .ap-flot-prod { right: -2%; } }
.ap-flot-prod { top: auto; bottom: 30%; }

/* ---------- graphiques animés ---------- */
.ap-app-graph { background: #fff; border-radius: 10px; padding: 9px 12px 8px; }
.ap-app-graph-t { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-bottom: 6px; }
.ap-app-graph-t span { display: flex; gap: 6px; align-items: center; color: #6b7686; font-size: 9.5px; }
.ap-app-graph-t i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
i.e { background: var(--o); } i.s { background: var(--m7); }
.ap-barres { display: flex; align-items: flex-end; gap: 7px; height: 58px; border-bottom: 1px solid #eceef2; }
.ap-barres > div { flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.ap-barres i { flex: 1; height: 0; border-radius: 3px 3px 0 0; transition: height .9s cubic-bezier(.2,.8,.2,1) calc(.5s + var(--k) * .08s); }
.ap-barres i.e { background: linear-gradient(180deg, #f4b06b, var(--o)); }
.ap-barres i.s { background: linear-gradient(180deg, #3f5673, var(--m7)); transition-delay: calc(.7s + var(--k) * .08s); }
.vu .ap-barres i { height: var(--h); }
.ap-donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.ap-donut circle { fill: none; stroke-width: 6; stroke-dasharray: 0 100; stroke-dashoffset: calc(var(--o) * -1); transition: stroke-dasharray .9s cubic-bezier(.4,.1,.2,1) calc(.5s + var(--k) * .35s); }
.vu .ap-donut circle { stroke-dasharray: calc(var(--v) - .8) calc(100 - var(--v) + .8); }

/* stock : anneau par variété */
.ap-w-stock { gap: 14px; }
.ap-w-donut { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #eef0f4; position: relative; }
.ap-w-donut svg { width: 120px; height: 120px; }
.ap-w-donut-c { position: absolute; left: 0; top: 0; width: 120px; height: 120px; display: grid; place-content: center; text-align: center; }
.ap-w-donut-c b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; } .ap-w-donut-c small { font-size: 11px; color: var(--doux); }
.ap-w-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.ap-w-donut li { display: flex; align-items: center; gap: 8px; } .ap-w-donut li i { width: 10px; height: 10px; border-radius: 3px; }
.ap-w-donut li b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* espace producteur : écran + téléphone */
.ap-prod { min-height: 560px; }
.ap-prod-ecran { position: absolute; left: 0; top: 30px; width: 88%; max-width: 520px; opacity: 0; transform: translateX(-30px); transition: opacity .8s, transform 1s cubic-bezier(.2,.8,.2,1); }
.ap-prod.vu .ap-prod-ecran { opacity: 1; transform: none; }
.ap-prod .ap-iphone-grand { margin-left: auto; margin-right: 0; justify-self: end; z-index: 2; width: 232px; }
.ap-app-prod { min-height: 300px; grid-template-columns: 120px 1fr; }
.ap-acces { display: grid; gap: 5px; background: #fff; border-radius: 10px; padding: 7px 9px; }
.ap-acces > div { display: grid; grid-template-columns: 22px 1fr auto 26px; align-items: center; gap: 7px; font-size: 10.5px; }
.ap-av { width: 22px; height: 22px; border-radius: 50%; background: var(--o05); color: var(--o); font-size: 8px; font-weight: 800; display: grid; place-items: center; }
.ap-acces em { font-style: normal; font-weight: 700; color: #3c4453; }
.ap-inter { width: 26px; height: 15px; border-radius: 8px; background: #dfe2e8; position: relative; transition: background .3s calc(1s + var(--k) * .45s); }
.ap-inter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .3s calc(1s + var(--k) * .45s); }
.ap-prod.vu .ap-inter { background: #15a05a; } .ap-prod.vu .ap-inter::after { transform: translateX(11px); }
.ap-donut-l { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 8px 10px; }
.ap-donut-l svg { width: 54px; height: 54px; flex: none; }
.ap-donut-l b { display: block; font-size: 14px; font-weight: 800; } .ap-donut-l small { font-size: 9.5px; color: #6b7686; }
@media (max-width: 950px) { .ap-prod-ecran { position: relative; top: 0; width: 100%; } .ap-prod { display: grid; gap: 0; } .ap-prod .ap-iphone-grand { margin: -120px auto 0 auto; justify-self: center; } }
@media (max-width: 560px) { .ap-prod-ecran { display: none; } .ap-prod .ap-iphone-grand { margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .ap-prod-ecran { opacity: 1; transform: none; } }
@media (min-width: 951px) {
  .ap-prod { min-height: 540px; display: block; }
  .ap-prod-ecran { top: 20px; width: 94%; max-width: 560px; }
  .ap-app-prod { grid-template-columns: 96px 1fr; min-height: 320px; }
  .ap-app-prod .ap-app-menu span { font-size: 10.5px; padding: 6px; }
  .ap-prod .ap-iphone-grand { position: absolute; right: -24px; bottom: 0; width: 186px; border-radius: 34px; padding: 7px; }
  .ap-prod .ap-iphone-grand .ap-iphone-ecran { border-radius: 28px; padding: 0 10px; }
  .ap-prod .ap-iphone-grand .ap-ip-barre { height: 30px; font-size: 9.5px; } .ap-prod .ap-iphone-grand .ap-ip-barre i { width: 54px; height: 16px; }
  .ap-prod .ap-iphone-grand .ap-ip-titre { font-size: 17px; } .ap-prod .ap-iphone-grand .ap-ip-total b { font-size: 20px; }
  .ap-prod .ap-ip-liste > div { padding: 6px 8px; } .ap-prod .ap-ip-liste b { font-size: 11px; } .ap-prod .ap-ip-liste em { font-size: 12px; }
  .ap-flot-prod { bottom: 6%; right: auto; left: 18%; }
}
@media (min-width: 951px) {
  .ap-prod-ecran { left: auto; right: -10px; width: 88%; transform: translateX(30px); }
  .ap-prod .ap-iphone-grand { right: auto; left: -34px; bottom: -10px; }
  .ap-flot-prod { left: auto; right: -20px; bottom: 4%; }
}

/* Connexion juste sous le titre : visible sans descendre, même sur un petit écran d'ordinateur */
@media (min-width: 761px) {
  .ap-hero-txt .ap-cnx { margin-top: 24px; }
  .ap-hero-txt .ap-cnx + p { margin-top: 22px; }
}
@media (min-width: 1000px) { .ap-hero { align-items: start; } }
/* écrans d'ordinateur peu hauts (portables) : titre et marges plus compacts pour garder la connexion à l'écran */
@media (min-width: 1000px) and (max-height: 860px) {
  .ap-hero { padding-top: 22px; }
  .ap-hero h1 { font-size: clamp(32px, 3.3vw, 44px); margin-bottom: 0; }
  .ap-hero-txt .ap-pastille { margin-bottom: 10px; }
  .ap-hero-txt .ap-cnx { margin-top: 18px; }
}

/* ===== 20/11 : haut de page clair (connexion), puis vraies pommes de terre foncées FIXES :
   le texte défile par-dessus la photo qui reste immobile. ===== */
.ap { position: relative; isolation: isolate; }
.ap::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,10,6,.80) 0%, rgba(10,8,6,.86) 100%),
    url("https://images.unsplash.com/photo-1590165482129-1b8b27698780?w=1800&q=75&auto=format&fit=crop") center / cover no-repeat,
    url("../img/vraies-patates.jpg") center / cover no-repeat,
    #1a140d; }
.connexion.cnx-public { background: transparent; }
.ap-hero { background: #ffffff; }
.ap-bande:not(.ap-hero), .ap-fonce-clair { background: transparent; }
/* textes posés directement sur la photo : en clair */
.ap-bande:not(.ap-hero) > .ap-centre h2,
.ap-bande:not(.ap-hero) .ap-ex-txt h3 { color: #fff; }
.ap-bande:not(.ap-hero) > .ap-centre p,
.ap-bande:not(.ap-hero) .ap-ex-txt > p,
.ap-bande:not(.ap-hero) .ap-ex-txt li { color: rgba(255,255,255,.82); }
.ap-bande:not(.ap-hero) .ap-sur { color: #f0a050; }
.ap-haut { background: rgba(255,255,255,.92); }
.ap-bande:not(.ap-hero) .ap-gauche h2 { color: #fff; }
.ap-bande:not(.ap-hero) .ap-gauche p, .ap-bande:not(.ap-hero) .ap-gauche li { color: rgba(255,255,255,.85); }
.ap-bande:not(.ap-hero) h2.ap-gauche { color: #fff; }
.ap-bande:not(.ap-hero) .ap-coches li { color: rgba(255,255,255,.88); }
/* 20/11 : on voit qu'il faut descendre.
   1) Haut de page moins haut sur ordinateur : le bandeau des chiffres dépasse en bas du premier écran.
   2) Bouton orange « Voir comment ça marche ↓ » qui saute doucement, reste en bas de l'écran
      tant qu'on est dans le haut de page, puis se pose à cheval sur le bandeau ; un clic fait descendre. */
html { scroll-behavior: smooth; }
#ap-chiffres { scroll-margin-top: 64px; }
@media (min-width: 1100px) { .ap-hero { padding-top: 24px; padding-bottom: 0; row-gap: 26px; } .ap-hero h1 { margin: 16px 0 16px; } }
@media (max-width: 1099px) { .ap-hero { padding-bottom: 0; } }
.ap-descendre { position: sticky; bottom: 18px; z-index: 6; grid-column: 1 / -1; justify-self: center; width: max-content; margin-bottom: -22px;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: #e0852f; color: #fff; text-decoration: none;
  font: 700 15px/1 Inter, system-ui, sans-serif; box-shadow: 0 12px 26px -10px rgba(224,133,47,.85);
  animation: ap-saut 1.8s ease-in-out infinite; }
.ap-descendre svg { width: 18px; height: 18px; }
.ap-descendre:hover { background: #ea9546; }
@keyframes ap-saut { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .ap-descendre { animation: none; } }
