/* Hub CACES : couleurs du carnet de révision sur les pages publiques (docs/cadrage-carnet-caces.md § 6, lot C0).
   public/css/apprenant/accroche.css (commun, inchangé) lit des variables --crpe-* avec valeurs de repli : on les redéfinit
   ici aux couleurs du hub (encre et ambre, docs/hub-caces-design/tokens.md), seulement sur les composants du carnet.
   Chargée après accroche.css par templates/pages/caces/_header.html.twig (pages du hub, quiz et formations rattachés). */
.carnet-accroche, .carnet-hdr, .carnet-toast, .cc-statut, .cc-carnet-sec {
    --crpe-ink: #0f172a;
    --crpe-line: #e4e4de;
    --crpe-accent: #f59e0b;
    --crpe-accent-soft: #fef3c7;
    --crpe-accent-text: #b45309;
    --crpe-accent-strong: #1e293b;
    --crpe-muted: #5b6474;
}
.carnet-accroche { border-radius: 14px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.carnet-accroche-txt strong { font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif; }
.carnet-accroche-btn { border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.carnet-accroche-link, .carnet-accroche-later { min-height: 44px; display: inline-flex; align-items: center; }
.carnet-accroche a:focus-visible, .carnet-accroche button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Bouton « Mon carnet » dans l'en-tête du hub (à la place de « Ma progression »). */
.cx-head .carnet-hdr { order: 0; margin-left: auto; }
.cx-head .carnet-hdr > a, .cx-head .carnet-hdr > details > summary { min-height: 44px; border-radius: 999px; padding: 0 16px; font-size: 14.5px; }
.cx-head .carnet-hdr > a:focus-visible, .cx-head .carnet-hdr > details > summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.cx-head .carnet-hdr-count { background: #0f172a; }
.cx-head .carnet-hdr-pop { color: #0f172a; }
.cx-head .carnet-hdr-pop a { text-decoration: none; }
@media (min-width: 992px) and (max-width: 1279.98px) { .cx-head .carnet-hdr .carnet-hdr-label { display: none; } .cx-head .carnet-hdr > a, .cx-head .carnet-hdr > details > summary { padding: 0 13px; } }
@media (max-width: 991.98px) {
    .cx-head .carnet-hdr { margin-right: 0; }
    .cx-head .carnet-hdr ~ .cx-burger--search { margin-left: 6px; }
}
@media (max-width: 600px) { .cx-head .carnet-hdr > a, .cx-head .carnet-hdr > details > summary { padding: 0 13px; } }

.carnet-toast { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.carnet-toast a { color: #fbbf24 !important; }

/* Barre « Où en êtes-vous ? » en bas des fiches de révision */
.cc-statut, .cx .cx-art .cc-statut { margin: 28px 0; background: #fff; border: 1.5px solid #e4e4de; border-radius: 18px; padding: 18px 20px; }
.cc-statut h2, .cx .cx-art .cc-statut > h2 { padding-top: 0 !important; border-top: 0 !important; margin-top: 0 !important; font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 800; margin: 0; color: #0f172a; }
.cc-statut-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.cc-statut-seg { display: inline-flex; border: 1.5px solid #e4e4de; border-radius: 999px; overflow: hidden; background: #fff; }
.cc-statut-seg button { border: 0; border-left: 1.5px solid #e4e4de; background: #fff; color: #5b6474; font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 16px; cursor: pointer; }
.cc-statut-seg button:first-child { border-left: 0; }
.cc-statut-seg button[aria-pressed="true"][data-st="vu"] { background: #fde68a; color: #0f172a; }
.cc-statut-seg button[aria-pressed="true"][data-st="revise"] { background: #f59e0b; color: #0f172a; }
.cc-statut-seg button[aria-pressed="true"][data-st="maitrise"] { background: #0f172a; color: #fff; }
.cc-statut-flag { border: 1.5px solid #e4e4de; background: #fff; color: #0f172a; border-radius: 999px; min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cc-statut-flag[aria-pressed="true"] { border-color: #f59e0b; background: #fef3c7; color: #92400e; }
.cc-statut-rappels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 14px; color: #5b6474; }
.cc-statut-rappels button { border: 1.5px solid #e4e4de; background: #fff; border-radius: 999px; min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: #0f172a; }
.cc-statut-rappels button[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.cc-statut-msg { margin: 10px 0 0; font-size: 14px; color: #5b6474; }
.cc-statut-msg a { color: #b45309; font-weight: 700; }
.cc-statut button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
@media print { .cc-statut, .carnet-accroche { display: none !important; } }

/* Accueil /caces : « Tout le CACES, gratuitement » et « Votre carnet CACES » (docs/cadrage-carnet-caces.md § 7) */
.cc-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
@media (min-width: 992px) { .cc-chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cc-chiffres li { background: #fff; border: 1.5px solid #e4e4de; border-radius: 18px; padding: 18px; }
.cc-chiffres strong { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 34px; line-height: 1; color: #0f172a; font-variant-numeric: tabular-nums; }
.cc-chiffres span { display: block; font-size: 14px; color: #5b6474; margin-top: 6px; }
.cc-promesses { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .cc-promesses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cc-promesses li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; color: #334155; }
.cc-promesses li > span:first-child { width: 40px; height: 40px; border-radius: 10px; background: #0f172a; color: #f59e0b; display: flex; align-items: center; justify-content: center; }
.cc-promesses b { display: block; color: #0f172a; }
.cc-promesses a { color: #b45309; font-weight: 700; }
.cc-carnet-sec .cx-wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 992px) { .cc-carnet-sec .cx-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; } }
.cc-carnet-sec ul.cc-benef { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 12px; }
.cc-carnet-sec ul.cc-benef li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 15.5px; color: #334155; }
.cc-carnet-sec ul.cc-benef i { color: #b45309; margin-top: 4px; }
.cc-carnet-sec ul.cc-benef b { color: #0f172a; }
.cc-carnet-btns { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.cc-carnet-btns a.cc-link { color: #b45309; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.cc-apercu { margin: 0; }
.cc-apercu img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1.5px solid #e4e4de; box-shadow: 0 14px 34px rgba(15, 23, 42, .12); background: #fff; }
.cc-apercu figcaption { font-size: 13px; color: #5b6474; margin-top: 10px; }

/* Le bouton « Mon carnet » prend la place de « Ma progression » : entre 992 et 1499 px, la recherche passe en icône seule
   et la marque ne se coupe jamais. */
.cx-head .cx-brand { flex-shrink: 0; }
.cx-head .cx-brand small { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1499.98px) { .cx-head .caces-search-label { display: none; } }
