/* BrevetIA - feuille commune v6 (palette validée le 20/11/2026) */
:root{
  --b-encre:#20262d;--b-encre-2:#515b65;--b-texte-2:#515b65;
  --b-fond:#ffffff;--b-surface:#f2f4f6;--b-gris-appui:#e2e6ea;--b-filet-doux:#dde2e7;
  --b-papier:#ffffff;--b-papier-2:#f2f4f6;--b-filet:#dde2e7;--b-filet-fort:#737b84;
  --b-action:#1546c4;--b-action-survol:#10389e;--b-action-actif:#0b2a78;--b-sur-action:#ffffff;
  --b-accent:#20262d;--b-focus:#20262d;
  --b-retenir:#ffd6a3;--b-retenir-bord:#995000;--b-retenir-libelle:#743a00;
  --b-juste:#20683d;--b-juste-fond:#eaf6ee;--b-faux:#b4233c;--b-faux-fond:#fff0f2;
  --b-preuve:#20262d;--b-preuve-fond:#f2f4f6;
  --b-exercice:#ffffff;
  --b-offre:#ffffff;--b-sur-offre:#20262d;--b-offre-cadre:#20262d;
  --b-titre:"Barlow","Arial Narrow",system-ui,sans-serif;
  --b-corps:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

/* une police de corps, une police de titre */
html body{font-family:var(--b-corps)!important;background:var(--b-fond)!important;color:var(--b-encre)}
html body h1,html body h2,html body h3,html:root body h1,html:root body h2,html:root body h3{font-family:var(--b-titre)!important;font-weight:600!important;letter-spacing:-.01em}
html body h3{font-size:max(1.2rem,1em)}

/* boutons d'action : une seule couleur, le bleu */
html body .cta-btn,html body .sim-btn,html body .pq-btn,html body .calc-btn,html body .xo-action:not(.xo-secondary),
html body .btn-dark,html body a.b-action,html body button.b-action,html body .hero a.btn,html body .cta-box a,
html body .cta-brevetia a,html body .bottom-cta a,html body .xo-b-l,html body header.nav a.btn,
html body .mode-card a.btn,html body form button[type=submit]{
  background:var(--b-action)!important;background-image:none!important;color:var(--b-sur-action)!important;
  border:1px solid var(--b-action)!important;border-radius:10px!important;text-decoration:none!important;
  transition:background-color .15s,transform .05s!important;cursor:pointer;
}
@media (hover:hover) and (pointer:fine){
  html body .cta-btn:hover,html body .sim-btn:hover,html body .pq-btn:hover,html body .calc-btn:hover,html body .xo-action:not(.xo-secondary):hover,
  html body .btn-dark:hover,html body a.b-action:hover,html body button.b-action:hover,html body .hero a.btn:hover,html body .cta-box a:hover,
  html body .cta-brevetia a:hover,html body .bottom-cta a:hover,html body .xo-b-l:hover,html body header.nav a.btn:hover,
  html body .mode-card a.btn:hover,html body form button[type=submit]:hover{background:var(--b-action-survol)!important;border-color:var(--b-action-survol)!important}
}
html body .cta-btn:active,html body .sim-btn:active,html body .pq-btn:active,html body .calc-btn:active,html body .xo-action:not(.xo-secondary):active,
html body .btn-dark:active,html body .b-action:active,html body .hero a.btn:active,html body .cta-box a:active,html body .cta-brevetia a:active,
html body .xo-b-l:active,html body header.nav a.btn:active,html body form button[type=submit]:active{background:var(--b-action-actif)!important;border-color:var(--b-action-actif)!important;transform:translateY(1px)}

/* plus de bloc sombre : les anciens héros et encarts encre passent en blanc, texte graphite */
html:root body .b-sombre{background:var(--b-fond)!important;background-image:none!important;color:var(--b-encre)!important}
html:root body .hero.b-sombre{border-bottom:1px solid var(--b-filet-doux)}
html:root body .hero.b-sombre::before{display:none!important}
html:root body .b-sombre h1,html:root body .b-sombre h2,html:root body .b-sombre h3{color:var(--b-encre)!important}
html:root body .b-sombre p,html:root body .b-sombre .meta,html:root body .b-sombre li{color:var(--b-texte-2)!important;opacity:1!important}
html:root body .b-sombre .breadcrumb,html:root body .b-sombre .breadcrumb a{color:var(--b-texte-2)!important}
html:root body .b-sombre a:not([class]):not([style*=background]){color:var(--b-encre)!important}
html:root body .b-sombre a[style*="background:#fff"],html:root body .b-sombre a[style*="background:white"],html:root body .b-sombre a[style*="background: #fff"]{background:var(--b-action)!important;color:var(--b-sur-action)!important;border:1px solid var(--b-action)!important;border-radius:10px!important}
html:root body .b-sombre a[style*="rgba(255,255,255"],html:root body .b-sombre a[style*="rgba(255, 255, 255"]{background:var(--b-fond)!important;color:var(--b-encre)!important;border:1px solid var(--b-filet-fort)!important;border-radius:10px!important}
html body .b-sombre .cta-btn,html body .b-sombre a.btn,html body .b-sombre .xo-action:not(.xo-secondary),html body .b-sombre .b-action{
  background:var(--b-action)!important;color:var(--b-sur-action)!important;border-color:var(--b-action)!important;box-shadow:none!important}
@media (hover:hover) and (pointer:fine){
  html body .b-sombre .cta-btn:hover,html body .b-sombre a.btn:hover,html body .b-sombre .xo-action:not(.xo-secondary):hover,html body .b-sombre .b-action:hover{background:var(--b-action-survol)!important;border-color:var(--b-action-survol)!important}
}
html body .b-sombre .cta-btn:active,html body .b-sombre a.btn:active{background:var(--b-action-actif)!important}
html body .b-sombre a:focus-visible{outline:3px solid var(--b-focus)!important;outline-offset:2px}

/* second niveau : lire = blanc, bord gris, texte graphite */
html body .xo-secondary,html body .b-lire{
  background:var(--b-fond)!important;color:var(--b-encre)!important;border:1px solid var(--b-filet-fort)!important;border-radius:10px!important;text-decoration:none!important
}
@media (hover:hover) and (pointer:fine){html body .xo-secondary:hover,html body .b-lire:hover{background:var(--b-surface)!important}}
html body .xo-secondary:active,html body .b-lire:active{background:var(--b-gris-appui)!important;transform:translateY(1px)}

/* focus visible : anneau encre séparé par du blanc ; désactivé : couleurs pleines, sans opacité */
html body a:focus-visible,html body button:focus-visible,html body input:focus-visible,html body select:focus-visible,
html body textarea:focus-visible,html body summary:focus-visible{outline:3px solid var(--b-focus)!important;outline-offset:2px!important;box-shadow:0 0 0 2px var(--b-fond)}
html body button:disabled,html body button[aria-disabled=true],html body a[aria-disabled=true],html body input:disabled{
  opacity:1!important;cursor:not-allowed!important;background:var(--b-surface)!important;color:var(--b-texte-2)!important;border-color:var(--b-gris-appui)!important}

/* réponse choisie : grise jusqu'à la correction ; juste / faux */
html body .opt.choisi,html body .choice.choisi,html body .opt.selected,html body .choice.selected,html body .qcm.choisi{background:var(--b-surface)!important;border-color:var(--b-encre)!important;color:var(--b-encre)!important;font-weight:600}
html body .opt.ok,html body .choice.good,html body .qcm.juste,html body .b-juste{background:var(--b-juste-fond)!important;border-color:var(--b-juste)!important;color:var(--b-juste)!important}
html body .choice.bad,html body .qcm.faux,html body .b-faux{background:var(--b-faux-fond)!important;border-color:var(--b-faux)!important;color:var(--b-faux)!important}

/* cartes d'exercice et liens de navigation : neutres */
html body .chapter-card,html body .crosslink,html body .year-nav-link,html body .year-card,html body .exercise-card,
html body .info-card,html body .mode-card{background:var(--b-exercice)!important;border:1px solid var(--b-filet)!important;color:var(--b-encre)}
@media (hover:hover) and (pointer:fine){
  html body a.chapter-card:hover,html body a.crosslink:hover,html body a.year-nav-link:hover,html body a.year-card:hover{border-color:var(--b-filet-fort)!important}
}
html body .exercise-card a{background:var(--b-action)!important;background-image:none!important;color:var(--b-sur-action)!important;border:1px solid var(--b-action)!important;border-radius:10px!important;text-decoration:none!important}
html body .internal-link-box a{background:var(--b-fond)!important;background-image:none!important;color:var(--b-encre)!important;border:1px solid var(--b-filet-fort)!important;border-radius:10px!important;text-decoration:none!important;box-shadow:none!important}
@media (hover:hover) and (pointer:fine){html body .exercise-card a:hover{background:var(--b-action-survol)!important;border-color:var(--b-action-survol)!important}html body .internal-link-box a:hover{background:var(--b-surface)!important}}
html body .container>.nav-links a{background:var(--b-fond)!important;color:var(--b-encre)!important;border:1px solid var(--b-filet-fort)!important;border-radius:10px!important}
@media (hover:hover) and (pointer:fine){html body .container>.nav-links a:hover{background:var(--b-surface)!important}}
html body .crosslink h3,html body .year-card .year,html body .stat-num{color:var(--b-encre)!important}

/* rôles */
html body .tip,html body .theorem-box,html body .b-retenir{background:var(--b-retenir)!important;border-color:var(--b-retenir-bord)!important;color:var(--b-encre)!important}
html body .b-preuve{background:var(--b-preuve-fond)!important;color:var(--b-preuve)!important}
html body .step-num{background:var(--b-encre)!important;background-image:none!important;color:var(--b-sur-action)!important}
html body th{background:var(--b-surface)!important;color:var(--b-encre)!important}
html body .faq-item summary,html body .faq-q{color:var(--b-encre)!important}

/* encarts de vente : l'offre, fond blanc, cadre encre */
html body .cta-box,html body .cta-brevetia,html body .bottom-cta,html body .cta{
  background:var(--b-offre)!important;background-image:none!important;color:var(--b-encre)!important;
  border:2px solid var(--b-offre-cadre)!important;border-radius:12px!important;box-shadow:none!important
}
html body .cta-box h2,html body .cta-box h3,html body .cta-box p,html body .cta-brevetia h2,html body .cta-brevetia h3,html body .cta-brevetia p,
html body .bottom-cta h2,html body .bottom-cta p,html body .cta h2,html body .cta h3,html body .cta p{color:var(--b-encre)!important;opacity:1!important}

/* mention d'auteur */
html body .eeat-byline,html body .eeat-byline a{color:var(--b-texte-2)!important;opacity:1!important}
html body .b-sombre .eeat-byline,html body .b-sombre .eeat-byline a{color:var(--b-texte-2)!important}

/* fil d'Ariane */
html body .breadcrumb{display:flex;flex-wrap:wrap;gap:0 .2rem;line-height:1.5}

/* champs et boutons natifs : police de la page */
html body button,html body input,html body select,html body textarea,html body optgroup{font-family:inherit}

/* encarts de contenu : six formes, aux jetons */
html body .b-encart{background:var(--b-surface);border:1px solid var(--b-filet);border-radius:12px;color:var(--b-encre)}
html body .b-encart-blanc{background:var(--b-exercice);border:1px solid var(--b-filet);border-radius:12px;color:var(--b-encre)}
html body .b-encart-note{background:var(--b-surface);border:1px solid var(--b-filet);border-left:4px solid var(--b-filet-fort);border-radius:12px;color:var(--b-encre)}
html body .b-encart-retenir{background:var(--b-retenir);border:0;border-left:4px solid var(--b-retenir-bord);border-radius:12px;color:var(--b-encre)}
html body .b-encart-retenir>strong:first-child,html body .b-encart-retenir>p:first-child>strong:first-child{color:var(--b-retenir-libelle)}
html body .b-encart-preuve{background:var(--b-preuve-fond);border:0;border-left:4px solid var(--b-preuve);border-radius:12px;color:var(--b-encre)}
html body .b-encart-preuve>strong:first-child,html body .b-encart-preuve>p:first-child>strong:first-child{color:var(--b-preuve)}
html body .b-encart-preuve .b-encart-preuve{border-left:0;background:transparent}
html body .b-encart-sombre{background:var(--b-offre);border:2px solid var(--b-offre-cadre);border-radius:12px;color:var(--b-encre)}
html body .b-encart-sombre h2,html body .b-encart-sombre h3,html body .b-encart-sombre p{color:var(--b-encre)}
html body .b-encart-sombre a:not([class]):not([style*=background]){color:var(--b-encre)}

/* v7 (21/11/2026) : contraste 4,5 minimum sur les styles internes des pages */
html:root{--highlight:#ffd6a3}
html body .year-card .note,html body .prow .info i,html body .dash-hello p,html body .par-name,html body .par-sub,
html body .dash-count span,html body .tile span,html body .pstat span,html body .ring small,html body .sc-nav,html body .sc-link,html body .sc-aiinput,html body .dash-tabs{color:var(--b-texte-2)!important}
html body .sc-nav .on,html body .sc-ava,html body .dash-tabs .on{background:var(--b-action)!important;color:#fff!important}
html body .exo-c .res,html body td.y,html body .opt.ok .check,html body .quiz-exp b,html body .sc-exhead .sc-lvl,html body .slabels .ln{color:var(--b-juste)!important}
html body .opt.ok .k{background:var(--b-juste)!important;color:#fff!important}
html body .chapter-meta .badge-hot,html body .ex-card.niveau3 .badge{color:var(--b-faux)!important;background:var(--b-faux-fond)!important}
html body .ex-card.niveau1 .badge{color:var(--b-juste)!important;background:var(--b-juste-fond)!important}
html body .ex-card.niveau2 .badge{color:var(--b-retenir-libelle)!important;background:var(--b-retenir)!important}
html body .prow .pic[style*="16a34a" i]{color:var(--b-juste)!important}
html body .prow .pic[style*="2563eb" i]{color:var(--b-action)!important}
html body .samp .ph,html body .glossaire span,html body .readout p,html body .step,html body p.sub,html body p.foot,html body .ptitle,html body .glossaire h2{color:var(--b-texte-2)!important}
html body .slabels .la,html body td[style*="ef4444" i]{color:var(--b-faux)!important}
html body .slabels .lb{color:var(--b-action)!important}
html body em[style*="C9AEEA" i]{color:#6a3d9a!important}
html body .scale .tick[style*="197,97,56"],html body .scale .tick[style*="197, 97, 56"]{background:#a0461f!important}
html body .scale .tick[style*="3E8B52" i]{background:#2b6b3c!important}
html body .scale .tick[style*="83,123,200"],html body .scale .tick[style*="83, 123, 200"]{background:#3a5fae!important}
/* v8 (21/11/2026) : offre de l'accueil et bouton de la fiche pH alignés sur la maquette */
html body .xo-purchase{background:var(--b-offre)!important;color:var(--b-encre)!important;border:2px solid var(--b-offre-cadre)!important;border-radius:12px!important}
html body .xo-purchase h3,html body .xo-purchase .xo-amount,html body .xo-purchase .xo-period,html body .xo-purchase .xo-reassurance{color:var(--b-encre)!important}
html body .xo-purchase .xo-buy,html body a.btn[data-buy],html body .xp-button,html body a[href="/#offres"][style*="20262d" i]{background:var(--b-action)!important;border:1px solid var(--b-action)!important;color:var(--b-sur-action)!important;border-radius:10px!important}
@media (hover:hover) and (pointer:fine){html body .xo-purchase .xo-buy:hover,html body a.btn[data-buy]:hover,html body .xp-button:hover,html body a[href="/#offres"][style*="20262d" i]:hover{background:var(--b-action-survol)!important;border-color:var(--b-action-survol)!important}}
html body .xo-purchase .xo-buy:active,html body a.btn[data-buy]:active,html body .xp-button:active,html body a[href="/#offres"][style*="20262d" i]:active{background:var(--b-action-actif)!important}
