/* ============================================================
   OPTERIA — page « Outils connectés » /connexions (06/10/2026, demande Axel) : l'esprit de gleap.ai/integrations,
   avec le message d'OpterIA : un seul point d'entrée, Bobby, relié à tous les outils de l'entreprise.
   Chargée seulement par connexions.html, après da-cerveau.css (cartes grises, cadres, fiches blanches, scènes data-scene).
   Animations : transform, opacity, clip-path et stroke-dashoffset seulement (connexions.js, cerveau.js).
   ============================================================ */
.page-connexions { --orange: #FB4D17; --vert-ok: #2f9e55; }

/* ---------- Logos : tuile blanche (logo SVG), icône pleine (PNG d'application) ou pastille lettre ---------- */
.cx-logo, .cx-mini, .cx-noeud__logo, .cx-onglet__logo { display: grid; place-items: center; flex: none; overflow: hidden; background: #fff; }
.cx-logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cx-logo img { width: 26px; height: 26px; object-fit: contain; }
.cx-logo--app img, .cx-mini--app img, .cx-noeud__logo--app img, .cx-onglet__logo--app img { width: 100%; height: 100%; object-fit: cover; }
.cx-logo--lettre, .cx-mini--lettre, .cx-noeud__logo--lettre, .cx-onglet__logo--lettre { background: var(--bg); color: #fff; font-weight: 600; }
.cx-logo--lettre { font-size: 19px; }
.cx-mini { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cx-mini img { width: 13px; height: 13px; object-fit: contain; }
.cx-mini--app, .cx-mini--lettre { box-shadow: none; font-size: 11px; }

/* ---------- Premier écran : carte grise en deux, Bobby au centre, ses outils autour ---------- */
.cx-hero { padding: 56px 0 36px; background: var(--paper); }
.cx-hero__carte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); min-height: 540px; border-radius: var(--r); background: var(--gris-carte); overflow: hidden; }
.cx-hero__txt { display: flex; flex-direction: column; justify-content: center; padding: 48px 40px; }
.cx-hero__txt .meta { margin: 0 0 16px; color: var(--orange); }
.cx-hero__txt .d { margin: 0; font-size: clamp(34px, 3.5vw, 46px); }
.cx-hero__sous { margin: 24px 0 0; font-size: 18px; line-height: 1.5; color: var(--muet); }
.cx-hero__actions { margin-top: 30px; }
.cx-hero__toile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px 28px 28px; isolation: isolate; overflow: hidden; }
.cx-preuve { margin-top: 26px; }

.cx-moyeu { position: relative; width: min(100%, 410px); aspect-ratio: 1; }
.cx-moyeu__traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cx-trait { fill: none; stroke: rgba(255,255,255,.9); stroke-width: .38; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cx-flux { fill: none; stroke: var(--orange); stroke-width: .9; stroke-linecap: round; stroke-dasharray: .18 1.3; stroke-dashoffset: .18; opacity: 0; }
.cx-moyeu.is-relie .cx-trait { stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.45,0,.25,1) calc(.55s + var(--i) * 60ms); }
.cx-flux.is-part { opacity: 1; stroke-dashoffset: -1.04; transition: stroke-dashoffset .75s cubic-bezier(.5,0,.3,1), opacity .2s ease; }

/* chaque outil part d'un peu plus loin et vient se poser à sa place : ils convergent vers Bobby */
.cx-noeud { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 52px; height: 52px; margin: -26px 0 0 -26px; z-index: 1;
  opacity: 0; transform: translate(calc((var(--x) - 50) * 1.6px), calc((var(--y) - 50) * 1.6px)) scale(.6);
  transition: opacity .6s ease calc(var(--i) * 45ms), transform .9s cubic-bezier(.22,1,.36,1) calc(var(--i) * 45ms); }
.cx-moyeu.is-in .cx-noeud { opacity: 1; transform: none; }
.cx-noeud__logo { width: 52px; height: 52px; border-radius: 15px; box-shadow: none; transition: transform .45s cubic-bezier(.3,1.5,.5,1), box-shadow .35s ease; }
.cx-noeud__logo img { width: 28px; height: 28px; object-fit: contain; }
.cx-noeud__logo--lettre { font-size: 22px; }
.cx-noeud.is-actif .cx-noeud__logo { transform: scale(1.14); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--orange); }
.cx-noeud__ok { position: absolute; left: 50%; top: -12px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; background: #fff; color: var(--vert-ok); font-size: 11.5px; font-weight: 500; white-space: nowrap; box-shadow: none;
  opacity: 0; transform: translate(-50%, 6px) scale(.85); transition: opacity .3s ease, transform .4s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.cx-noeud__ok::before { content: "✓"; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--vert-ok); color: #fff; font-size: 9px; }
.cx-noeud.is-fait .cx-noeud__ok { opacity: 1; transform: translate(-50%, -100%) scale(1); }

.cx-bobby { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 26px; background: #191919;
  box-shadow: 0 0 0 8px rgba(255,255,255,.55); opacity: 0; transform: scale(.7); transition: opacity .5s ease .1s, transform .7s cubic-bezier(.3,1.4,.5,1) .1s; }
.cx-moyeu.is-in .cx-bobby { opacity: 1; transform: none; }
.cx-bobby img { width: 52px; height: 52px; }
.cx-bobby__onde { position: absolute; inset: -8px; border-radius: 32px; border: 2px solid #fff; opacity: 0; pointer-events: none; }
.cx-bobby.is-ecoute .cx-bobby__onde { animation: cx-onde 1s ease-out; }
@keyframes cx-onde { 0% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.45); } }

/* la demande, écrite sous le cercle comme dans une messagerie : elle s'écrit, Bobby l'entend, puis elle part vers les bons outils */
.cx-bulle { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; width: min(100%, 380px); min-height: 70px; margin: 0; padding: 10px 10px 10px 16px; border-radius: 18px; background: #fff; color: #191919; font-size: 14px; line-height: 1.4;
  box-shadow: none; opacity: 0; transform: translateY(10px); transition: opacity .5s ease .5s, transform .6s cubic-bezier(.22,1,.36,1) .5s; }
.cx-moyeu.is-in + .cx-bulle { opacity: 1; transform: none; }
.cx-bulle__qui { grid-column: 1; font-size: 11.5px; color: rgba(25,25,25,.5); }
.cx-bulle__txt { grid-column: 1; min-height: 2.8em; transition: opacity .3s ease; }
.cx-bulle.is-vide .cx-bulle__txt { opacity: 0; }
.cx-bulle__envoi { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e9e9e5; color: #8e8e8a; transition: background-color .25s ease, color .25s ease, transform .3s cubic-bezier(.3,1.5,.5,1); }
.cx-bulle__envoi svg { width: 16px; height: 16px; }
.cx-bulle.is-fini .cx-bulle__envoi { background: var(--orange); color: #fff; transform: scale(1.06); }
.cx-bulle__txt::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--orange); animation: cx-curseur .9s steps(1) infinite; }
.cx-bulle.is-fini .cx-bulle__txt::after { opacity: 0; animation: none; }
@keyframes cx-curseur { 50% { opacity: 0; } }

/* ---------- Grand texte ---------- */
.cx-intro { padding: 96px 0 24px; }

/* ---------- Pourquoi un seul point d'entrée ---------- */
.cx-pourquoi { padding-top: 64px; }
.cx-pourquoi__tete { max-width: 760px; margin-bottom: 44px; }
.cx-pourquoi__tete .meta { margin: 0 0 14px; }
.cx-pourquoi__tete .h { margin: 0; }
.cx-pourquoi__tete .p { max-width: 640px; margin-top: 22px; font-size: 17px; line-height: 1.6; color: var(--muet); }
.cx-duel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.cx-duel__carte { display: flex; flex-direction: column; padding: 28px 28px 26px; border-radius: 24px; background: var(--gris-carte); }
.cx-duel__carte .cv-badge { margin: 0 0 10px; }
.cx-duel__carte--avec .cv-badge { color: var(--orange); font-weight: 500; }
.cx-duel__carte h3 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.025em; line-height: 1.2; color: var(--ink); }
.cx-duel__carte > p:last-child { margin: auto 0 0; padding-top: 20px; font-size: 15.5px; line-height: 1.55; color: var(--muet); }

.cx-onglets { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; min-height: 150px; align-content: flex-start; }
.cx-onglet { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border-radius: 10px 10px 4px 4px; background: #fff; color: #353535; font-size: 14px; white-space: nowrap; box-shadow: none;
  transform: rotate(calc((var(--i) - 3.5) * 1.1deg)); }
.cx-onglet__logo { width: 20px; height: 20px; border-radius: 5px; }
.cx-onglet__logo img { width: 14px; height: 14px; object-fit: contain; }
.cx-onglet__logo--app img { width: 100%; height: 100%; }
/* les onglets s'agitent chacun leur tour : on ne sait plus où donner de la tête */
.cx-duel.is-in .cx-onglet { animation: cx-agite 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * .6s); }
@keyframes cx-agite { 0%, 84%, 100% { transform: rotate(calc((var(--i) - 3.5) * 1.1deg)); } 88% { transform: translateY(-5px) rotate(calc((var(--i) - 3.5) * 1.1deg - 2deg)); } 92% { transform: translateY(-2px) rotate(calc((var(--i) - 3.5) * 1.1deg + 2deg)); } }

.cx-fil { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; min-height: 150px; justify-content: center; }
.cx-fil__msg { max-width: 88%; margin: 0; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.cx-fil__msg--vous { align-self: flex-end; border-bottom-right-radius: 5px; background: #191919; color: #fff; }
.cx-fil__msg--bobby { align-self: flex-start; border-bottom-left-radius: 5px; background: #fff; color: #191919; box-shadow: none; }
.cx-fil__outils { display: flex; gap: 5px; margin-bottom: 6px; }
.cx-duel .cx-fil__msg { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.cx-duel.is-in .cx-fil__msg { opacity: 1; transform: none; }
.cx-duel.is-in .cx-fil__msg--bobby { transition-delay: 1.1s; }

/* trois exemples : une demande, Bobby ouvre les bons outils, prépare, vous validez */
.cx-exemples { margin-top: 72px; }
.cx-exemples__lab { margin: 0 0 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.cx-exemples__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cx-ex { display: flex; flex-direction: column; gap: 20px; padding: 14px 14px 22px; border-radius: 24px; background: var(--gris-carte); }
.cx-ex__cadre { aspect-ratio: auto; min-height: 300px; padding: 24px 16px; }
.cx-ex__txt { padding: 0 8px; }
.cx-ex__txt .cv-badge { margin: 0 0 8px; color: var(--orange); font-weight: 500; }
.cx-ex__txt h3 { margin: 0; font-size: 19px; font-weight: 400; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); }
.cx-ex__txt p:last-child { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--muet); }
.cx-scene { max-width: 290px; display: flex; flex-direction: column; gap: 12px; }
.cx-scene small { display: block; margin-bottom: 5px; font-size: 11.5px; color: rgba(13,15,20,.5); }
.cx-scene__demande { padding: 10px 12px; border-radius: 12px; background: #f3f3ef; font-size: 13.5px; }
.cx-scene__outils { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cx-scene__outils small { flex: 1 0 100%; margin: 0; }
.cx-scene__outil { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 5px; border-radius: 8px; border: 1px solid #ececec; font-size: 13px; opacity: .35; transform: scale(.94); }
.cx-scene__liste { display: flex; flex-direction: column; gap: 7px; }
.cx-scene__liste li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; opacity: 0; transform: translateX(-6px); }
.cx-scene .fs-coche { width: 16px; height: 16px; animation: none; }
.cx-scene__valider { position: relative; display: grid; height: 34px; }
.cx-scene__btn, .cx-scene__ok { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; font-size: 13.5px; font-weight: 500; }
.cx-scene__btn { background: #191919; color: #fff; opacity: .25; }
.cx-scene__ok { background: #eaf6ee; color: #236b39; opacity: 0; transform: scale(.96); }
.cx-scene__ok i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--vert-ok); color: #fff; font-size: 10px; font-style: normal; }
.cx-scene.e1 .cx-scene__outil { opacity: 1; transform: none; border-color: rgba(251,77,23,.45); }
.cx-scene.e1 .cx-scene__outil + .cx-scene__outil { transition-delay: .25s; }
.cx-scene.e2 .cx-scene__liste li:nth-child(1), .cx-scene.e3 .cx-scene__liste li { opacity: 1; transform: none; }
.cx-scene.e3 .cx-scene__btn { opacity: 1; }
.cx-scene.e4 .cx-scene__btn { opacity: 0; transform: scale(.96); }
.cx-scene.e4 .cx-scene__ok { opacity: 1; transform: none; }
.page-connexions .cx-scene :is(span, li, p) { transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1), border-color .35s ease; }
.cx-exemples__pied { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 15px; color: var(--ink-2); }
.cx-exemples__pied i { width: 8px; height: 8px; border-radius: 50%; background: var(--vert-ok); box-shadow: 0 0 0 4px rgba(47,158,85,.16); }

/* ---------- La bibliothèque : catégories collantes à gauche, recherche et cartes à droite (gleap.ai/integrations) ---------- */
.cx-biblio { scroll-margin-top: 80px; }
.cx-biblio__tete { max-width: 780px; margin-bottom: 44px; }
.cx-biblio__tete .meta { margin: 0 0 14px; }
.cx-biblio__tete .h { margin: 0; }
.cx-biblio__tete .p { max-width: 680px; margin-top: 22px; font-size: 17px; line-height: 1.6; color: var(--muet); }
.cx-biblio__grille { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }
.cx-filtres { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.cx-filtre { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 15px; line-height: 1.3; color: var(--ink-2); text-align: left; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.cx-filtre:hover { background: #f3f3ef; color: var(--ink); }
.cx-filtre:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.cx-filtre[aria-pressed="true"] { background: var(--gris-carte); color: var(--ink); font-weight: 500; }
.cx-filtre__n { flex: none; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: #ededea; font-size: 12px; font-weight: 400; color: var(--ink-2); text-align: center; }
.cx-filtre[aria-pressed="true"] .cx-filtre__n { background: #191919; color: #fff; }
.cx-filtre--vedette { color: var(--ink); font-weight: 500; }
.cx-filtre--vedette .cx-filtre__n { background: #fff1eb; color: var(--orange); }

.cx-recherche { position: sticky; top: 84px; z-index: 2; display: flex; align-items: center; gap: 10px; height: 52px; margin-bottom: 18px; padding: 0 16px; border-radius: 14px; border: 1px solid #e3e3df; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s ease, box-shadow .2s ease; }
.cx-recherche:focus-within { border-color: #191919; box-shadow: 0 0 0 3px rgba(25,25,25,.08); }
.cx-recherche svg { flex: none; width: 20px; height: 20px; color: var(--ink-3); }
.cx-recherche input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.cx-recherche input::placeholder { color: var(--ink-3); }
.cx-recherche__n { flex: none; margin: 0; font-size: 13px; color: var(--ink-3); }

.cx-groupe { padding: 26px 0 30px; border-top: 1px solid #ececea; }
.cx-groupe:first-of-type { border-top: 0; padding-top: 8px; }
.cx-groupe__tete { max-width: 640px; margin-bottom: 18px; }
.cx-groupe__tete h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
.cx-groupe__n { padding: 1px 8px; border-radius: 999px; background: #ededea; font-size: 12px; letter-spacing: 0; color: var(--ink-2); }
.cx-groupe__tete p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muet); }
.cx-groupe__tete .cx-groupe__sur { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--orange); }
/* les organismes de formation d'abord : le groupe se pose sur une carte chaude */
.cx-groupe--vedette { margin-bottom: 8px; padding: 26px 24px 26px; border: 0; border-radius: 24px; background: linear-gradient(120deg, #fff4ee 0%, #f6f4ee 60%, #f1f3ee 100%); }
.cx-groupe--vedette:first-of-type { padding-top: 26px; }
.cx-groupe--vedette .cx-groupe__n { background: #fff; color: var(--orange); }
.cx-groupe--vedette + .cx-groupe { border-top: 0; }

.cx-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cx-carte { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 14px; padding: 16px; border-radius: 16px; border: 1px solid #ececea; background: #fff;
  transition: opacity .35s ease, transform .4s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease; }
.cx-carte:hover { border-color: #dcdcd6; box-shadow: none; transform: translateY(-2px); }
.cx-carte .cx-logo { grid-row: span 2; }
.cx-carte__txt h4 { margin: 2px 0 0; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.cx-carte__txt p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muet); }
.cx-carte__cat { display: none; grid-column: 2; justify-self: start; margin-top: 8px; padding: 2px 8px; border-radius: 6px; background: #f3f3ef; font-size: 12px; color: var(--ink-2); }
.cx-carte[hidden], .cx-groupe[hidden] { display: none; }
.cx-plus { display: none; }
/* à chaque filtre, les cartes réapparaissent en cascade */
.cx-carte.is-arrive { animation: cx-arrive .45s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--k, 0) * 22ms); }
@keyframes cx-arrive { from { opacity: 0; transform: translateY(8px); } }
.cx-vide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 24px; border-radius: 18px; background: var(--gris-carte); }
.cx-vide[hidden] { display: none; }
.cx-vide p { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.55; color: var(--muet); }
.cx-vide b { display: block; font-weight: 500; color: var(--ink); }

/* ---------- Comment se fait la connexion ---------- */
.cx-etapes { margin: 30px 0 0; padding: 0; list-style: none; }
.cx-etapes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid #ececea; }
.cx-etapes li:last-child { border-bottom: 1px solid #ececea; }
.cx-etapes span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #191919; color: #fff; font-size: 13px; }
.cx-etapes h3 { margin: 2px 0 0; font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.cx-etapes p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--muet); }
.cx-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.cx-lien { font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0,0,0,.3); text-underline-offset: 4px; }
.cx-lien:hover { text-decoration-color: var(--ink); }

.cx-acces { max-width: 380px !important; }
.cx-acces__tete { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f0ee; }
.cx-acces__bobby { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #191919; }
.cx-acces__tete b { display: block; font-weight: 500; }
.cx-acces__tete small, .cx-acces__liste small { display: block; font-size: 12px; color: rgba(13,15,20,.55); }
.cx-acces__liste li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f4f4f2; }
.cx-acces__liste .cx-mini { width: 28px; height: 28px; border-radius: 8px; }
.cx-acces__liste .cx-mini img { width: 17px; height: 17px; }
.cx-acces__liste .cx-mini--app img { width: 100%; height: 100%; }
.cx-inter { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #e4e4e0; transition: background-color .3s ease; }
.cx-inter::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: none; transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.cx-acces.e1 li:nth-child(1) .cx-inter, .cx-acces.e2 li:nth-child(2) .cx-inter, .cx-acces.e3 li:nth-child(3) .cx-inter, .cx-acces.e4 li:nth-child(4) .cx-inter { background: var(--vert-ok); }
.cx-acces.e1 li:nth-child(1) .cx-inter::after, .cx-acces.e2 li:nth-child(2) .cx-inter::after, .cx-acces.e3 li:nth-child(3) .cx-inter::after, .cx-acces.e4 li:nth-child(4) .cx-inter::after { transform: translateX(14px); }
.cx-acces__regle { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; padding: 9px 12px; border-radius: 10px; background: #fff4ee; color: #a8350f; font-size: 13px; font-weight: 500; }
.cx-acces__regle i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 10px; font-style: normal; }

/* ---------- Votre outil n'est pas dans la liste ---------- */
.cx-autre { padding-top: 24px; }
.cx-autre__carte { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: 24px; background: var(--gris-carte); overflow: hidden; }
.cx-autre__txt { padding: 44px 44px 42px; }
.cx-autre__txt .h { margin: 0; }
.cx-insec { white-space: nowrap; }
.cx-autre__txt > p { max-width: 560px; margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--muet); }
.cx-autre__deco { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; min-height: 240px; isolation: isolate; }
.cx-autre__tuile { display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 22px; box-shadow: none; }
.cx-autre__tuile--q { background: #fff; font-size: 34px; color: var(--ink-3); }
.cx-autre__tuile--bobby { background: #191919; }
.cx-autre__fil { width: 150px; height: 40px; margin: 0 -6px; }
.cx-autre__fil path { stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .05 .05; stroke-dashoffset: 0; }
.cx-autre__carte.is-in .cx-autre__fil path { animation: cx-fil 1.6s linear infinite; }
@keyframes cx-fil { to { stroke-dashoffset: -.1; } }

/* ---------- Mouvement réduit : tout est posé d'emblée ---------- */
@media (prefers-reduced-motion: reduce) {
  .cx-noeud, .cx-bobby, .cx-bulle, .cx-moyeu.is-in + .cx-bulle { opacity: 1; transform: none; transition: none; }
  .cx-trait { stroke-dashoffset: 0; transition: none !important; }
  .cx-flux { display: none; }
  .cx-bulle__txt::after { display: none; }
  .cx-duel.is-in .cx-onglet, .cx-autre__carte.is-in .cx-autre__fil path, .cx-carte.is-arrive { animation: none; }
  .cx-duel .cx-fil__msg { opacity: 1; transform: none; transition: none; }
  .cx-carte, .cx-carte:hover { transform: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .cx-hero__txt { padding: 40px 32px; }
  .cx-biblio__grille { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .cx-grille { grid-template-columns: minmax(0, 1fr); }
  .cx-exemples__grille { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 960px) {
  .cx-hero__carte { grid-template-columns: minmax(0, 1fr); }
  .cx-intro { padding: 72px 0 16px; }
  .cx-duel { grid-template-columns: minmax(0, 1fr); }
  .cx-autre__carte { grid-template-columns: minmax(0, 1fr); }
  .cx-autre__deco { min-height: 170px; order: -1; }
  /* les catégories deviennent une rangée de pastilles qui défile, la recherche juste dessous */
  .cx-biblio__grille { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cx-filtres { position: static; flex-direction: row; gap: 6px; margin: 0 calc(var(--gutter) * -1) 14px; padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .cx-filtres::-webkit-scrollbar { display: none; }
  .cx-filtre { flex: none; width: auto; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #f3f3ef; font-size: 14px; white-space: nowrap; scroll-snap-align: start; }
  .cx-filtre[aria-pressed="true"] { background: #191919; color: #fff; }
  .cx-filtre[aria-pressed="true"] .cx-filtre__n { background: rgba(255,255,255,.18); color: #fff; }
  .cx-recherche { top: 76px; }
}

/* ---------- Téléphone (390 px) ---------- */
@media (max-width: 720px) {
  .cx-hero { padding: 24px 0 24px; }
  .cx-hero__carte { min-height: 0; margin: 0 calc(var(--gutter) * -1 + 8px); border-radius: 18px; }
  .cx-hero__txt { padding: 32px 22px 26px; }
  .cx-hero__txt .d { font-size: 34px; }
  .cx-hero__sous { margin-top: 18px; font-size: 17px; }
  .cx-hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .cx-hero__toile { padding: 26px 14px 22px; }
  .cx-moyeu { width: min(100%, 330px); }
  .cx-noeud { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .cx-noeud__logo { width: 42px; height: 42px; border-radius: 12px; }
  .cx-noeud__logo img { width: 23px; height: 23px; }
  .cx-bobby { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 21px; box-shadow: 0 0 0 6px rgba(255,255,255,.55); }
  .cx-bobby img { width: 40px; height: 40px; }
  .cx-bulle { min-height: 64px; font-size: 13.5px; padding: 9px 9px 9px 14px; }
  .cx-preuve { flex-direction: column; gap: 4px; }
  .cx-preuve i { display: none; }
  .cx-intro { padding: 56px 0 0; }
  .cx-pourquoi { padding-top: 48px; }
  .cx-pourquoi__tete { margin-bottom: 30px; }
  .cx-duel__carte { padding: 22px 18px 20px; border-radius: 20px; }
  .cx-duel__carte h3 { font-size: 21px; }
  .cx-onglets { min-height: 0; }
  .cx-onglet { height: 32px; font-size: 13px; }
  .cx-fil { min-height: 0; }
  .cx-exemples { margin-top: 48px; }
  .cx-ex { padding: 10px 10px 18px; border-radius: 20px; }
  .cx-ex__cadre { min-height: 280px; }
  .cx-biblio__tete { margin-bottom: 28px; }
  .cx-recherche { height: 48px; padding: 0 12px; }
  .cx-recherche input { font-size: 16px; }
  .cx-recherche__n { display: none; }
  .cx-groupe--vedette { margin: 0 -8px 8px; padding: 22px 16px; border-radius: 20px; }
  .cx-groupe__tete h3 { font-size: 20px; }
  .cx-carte { padding: 14px; }
  /* téléphone : quatre outils par catégorie, puis « Voir les autres » (la liste complète reste là pour la recherche et les filtres) */
  .cx-biblio:not(.is-filtre) .cx-groupe:not(.is-ouvert) .cx-carte:nth-child(n+5) { display: none; }
  .cx-biblio:not(.is-filtre) .cx-groupe:not(.is-ouvert) .cx-plus { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 10px; border: 1px solid #e3e3df; border-radius: 12px; background: #fff; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); cursor: pointer; }
  .cx-plus:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .cx-autre__txt { padding: 28px 20px 30px; }
  .cx-autre__txt .actions .btn { flex: 1 1 100%; justify-content: center; }
  .cx-autre__fil { width: 96px; }
  .cx-autre__tuile { width: 62px; height: 62px; border-radius: 18px; }
  .cx-liens .btn { flex: 1 1 100%; justify-content: center; }
}
