/* Trust Co. Academy — cartes harmonisées (17/11/2026)
   Une seule allure pour toutes les cartes : fond net, bordure fine, coins arrondis,
   ombre douce, survol discret. Variantes claire et sombre. Chargé en dernier. */

html{--ca-f:#fff;--ca-f2:#f6f8fb;--ca-b:#e6ebf1;--ca-b2:#d5dde6;--ca-t:#16222e;--ca-t2:#5b6877;
  --ca-r:18px;--ca-r2:14px;
  --ca-o:0 1px 2px rgba(16,24,40,.04),0 10px 28px -20px rgba(16,24,40,.22);
  --ca-oh:0 2px 4px rgba(16,24,40,.04),0 22px 44px -24px rgba(16,24,40,.32)}
html[data-theme="dark"]{--ca-f:#16212c;--ca-f2:#121b25;--ca-b:#243241;--ca-b2:#314356;--ca-t:#eef3f7;--ca-t2:#a3b1bf;
  --ca-o:0 1px 0 rgba(255,255,255,.03) inset,0 14px 32px -22px rgba(0,0,0,.7);
  --ca-oh:0 1px 0 rgba(255,255,255,.05) inset,0 24px 48px -24px rgba(0,0,0,.85)}

/* ---------- Socle commun ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body :is(
  .ac-etapes>li,.ac-niv .ac-nv,.ac-chaps a,.fo-offre,.fo-carte,.lb-carte,.lb-bilan,.lp-bilan,
  .lp:not(.lp--pro) .lp-carte,main .card,.cr-card,.cr-obj,.cr-toc){
  background:var(--ca-f)!important;border:1px solid var(--ca-b)!important;border-radius:var(--ca-r)!important;
  box-shadow:var(--ca-o)!important;backdrop-filter:none;-webkit-backdrop-filter:none;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}

/* Survol des cartes cliquables */
html:not(#ca1):not(#ca2):not(#ca3) body :is(.ac-niv .ac-nv,.lb-carte,a.card,.fo-offre):hover{
  transform:translateY(-3px);box-shadow:var(--ca-oh)!important;
  border-color:color-mix(in srgb,var(--ac,var(--c,#0891b2)) 38%,var(--ca-b))!important}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-chaps a:hover{transform:translateX(3px);box-shadow:var(--ca-oh)!important;
  border-color:color-mix(in srgb,var(--ac,#0891b2) 40%,var(--ca-b))!important}
html:not(#ca1):not(#ca2):not(#ca3) body .grid>div.card:hover{transform:none;box-shadow:var(--ca-o)!important;border-color:var(--ca-b)!important}

/* Épuré : on retire les gros liserés de couleur en haut */
html:not(#ca1):not(#ca2):not(#ca3) body :is(.lb-carte,.ac-nv)::before{display:none!important}
/* L'accent reste présent, en fin trait discret, sur les cartes de tarif et d'exercice */
html:not(#ca1):not(#ca2):not(#ca3) body :is(.fo-offre,.lp:not(.lp--pro) .lp-carte,.cr-card,main .card.lvl){position:relative;overflow:hidden}
html:not(#ca1):not(#ca2):not(#ca3) body :is(.fo-offre,.lp:not(.lp--pro) .lp-carte)::after,
html:not(#ca1):not(#ca2):not(#ca3) body .cr-card::after{content:"";position:absolute;left:22px;top:0;width:44px;height:3px;border-radius:0 0 4px 4px;background:var(--c,var(--c-pri,#0891b2));pointer-events:none}
html:not(#ca1):not(#ca2):not(#ca3) body main .card.lvl{border-top:1px solid var(--ca-b)!important}

/* ---------- Accueil : méthode en 4 étapes ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body .ac-etapes>li{padding:24px 22px!important}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-etapes>li:not(:last-child)::after{background:var(--ca-b2)}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-etapes h3{color:var(--ca-t)}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-etapes p{color:var(--ca-t2)}

/* ---------- Cartes de niveau (accueil + parcours) ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body .ac-niv .ac-nv{padding:0!important;overflow:hidden}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-niv .ac-nv li{border-bottom-color:var(--ca-b)!important;color:var(--ca-t2)!important}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-niv .ac-nv li::before{background:color-mix(in srgb,var(--ac) 10%,var(--ca-f))!important;color:color-mix(in srgb,var(--ac) 85%,var(--ca-t))}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-nv-prix{border-top-color:var(--ca-b)!important}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-nv-prix small{color:var(--ca-t2)}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-niv .ac-nv .ac-nv-go{border-radius:12px}
html[data-theme="dark"]:not(#ca1):not(#ca2):not(#ca3) body .ac-niv .ac-nv li::before{background:color-mix(in srgb,var(--ac) 22%,var(--ca-f))!important;color:color-mix(in srgb,var(--ac) 40%,#fff)}

/* ---------- Parcours : liste des chapitres ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body .ac-chaps a{border-radius:var(--ca-r2)!important}

/* ---------- Encadré « Cadre légal » ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body .ac-cadre{width:calc(100% - 40px);margin-inline:auto!important;
  background:color-mix(in srgb,#dc2626 4%,var(--ca-f))!important;border:1px solid color-mix(in srgb,#dc2626 22%,var(--ca-b))!important;
  border-radius:var(--ca-r)!important;box-shadow:var(--ca-o)!important}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-cadre>svg{padding:7px;width:40px!important;height:40px!important;border-radius:12px;background:color-mix(in srgb,#dc2626 10%,var(--ca-f));box-sizing:border-box}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-cadre h2{color:var(--ca-t)!important}
html:not(#ca1):not(#ca2):not(#ca3) body .ac-cadre p{color:var(--ca-t2)!important}
html[data-theme="dark"]:not(#ca1):not(#ca2):not(#ca3) body .ac-cadre>svg{color:#f87171}

/* ---------- Formations : offres ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body .fo-offre{padding:28px 24px 24px!important}
html:not(#ca1):not(#ca2):not(#ca3) body .fo-offre ul{border-top-color:var(--ca-b)!important}
html:not(#ca1):not(#ca2):not(#ca3) body .fo-offre li::before{width:8px;height:8px;top:.55em}

/* ---------- Labo : ateliers ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body .lb-carte{padding:24px!important}
html:not(#ca1):not(#ca2):not(#ca3) body .lb-carte-ico{border-radius:14px;box-shadow:none!important}
html:not(#ca1):not(#ca2):not(#ca3) body .lb-carte h3{color:var(--ca-t)}

/* ---------- Pages info (FAQ, Expert, Mentions, Confidentialité) ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body main .card{padding:22px 24px}
html:not(#ca1):not(#ca2):not(#ca3) body main .card :is(p,li){color:var(--ca-t2)}

/* ---------- Chapitres de cours ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body .cr-card{padding:20px!important}
html:not(#ca1):not(#ca2):not(#ca3) body .cr-card b{color:var(--ca-t)}
html:not(#ca1):not(#ca2):not(#ca3) body .cr-obj{background:color-mix(in srgb,var(--c-pri,#0891b2) 6%,var(--ca-f))!important;border-color:color-mix(in srgb,var(--c-pri,#0891b2) 22%,var(--ca-b))!important}
html:not(#ca1):not(#ca2):not(#ca3) body .cr-box{border-width:1px!important;border-radius:var(--ca-r2)!important;padding:18px 20px 18px 22px!important;position:relative;overflow:hidden}
html:not(#ca1):not(#ca2):not(#ca3) body .cr-box::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:currentColor;opacity:.7}

/* ---------- Forum / Labo Pro / Entraînement ---------- */
html:not(#ca1):not(#ca2):not(#ca3) body .fo-carte{padding:32px!important}
html:not(#ca1):not(#ca2):not(#ca3) body .lp:not(.lp--pro) .lp-carte{border-top:1px solid var(--ca-b)!important}
html:not(#ca1):not(#ca2):not(#ca3) body .lp--pro .lp-carte{border-radius:var(--ca-r)!important;border-top-width:1px!important}

@media (prefers-reduced-motion:reduce){html:not(#ca1):not(#ca2):not(#ca3) body :is(.ac-nv,.lb-carte,a.card,.fo-offre,.ac-chaps a):hover{transform:none}}

