/* « Mes fiches » (src/lib/carnet.ts, public/theme/carnet.js) : bandeau des fiches pratiques et page /mes-fiches/.
   Les boîtes suivent les couleurs de la planche du bureau : ciel (phase interceptive), bleu (phase orthodontique),
   bleu profond (contention), bleu pâle (au quotidien), bleu nuit (applications). */
/* Le thème colore tous les éléments (main.min.css : * { color }) : ici, le texte hérite de son bloc. */
:where(.carnet, .carnet-barre, .carnet-annonce) * { color: inherit; }
.carnet-boite--interceptif { --b-fond: #39bbfc; --b-txt: #0d2c45; --b-num: #fff; --b-num-txt: #0177ca; }
.carnet-boite--multi-attaches { --b-fond: #0177ca; --b-txt: #fff; --b-num: #39bbfc; --b-num-txt: #0d2c45; }
.carnet-boite--contention { --b-fond: #01579a; --b-txt: #fff; --b-num: #39bbfc; --b-num-txt: #0d2c45; }
.carnet-boite--quotidien { --b-fond: #ace0f9; --b-txt: #0d2c45; --b-num: #fff; --b-num-txt: #0177ca; }
.carnet-boite--pratique { --b-fond: #5ab6ec; --b-txt: #0d2c45; --b-num: #fff; --b-num-txt: #0177ca; }
.carnet-boite--videos { --b-fond: linear-gradient(120deg, #0181dc, #0d2c45); --b-txt: #fff; --b-num: rgba(255, 255, 255, .14); --b-num-txt: #39bbfc; }
.carnet-boite--applis { --b-fond: #0d2c45; --b-txt: #fff; --b-num: rgba(255, 255, 255, .12); --b-num-txt: #39bbfc; }

/* ===== Bandeau en tête des fiches pratiques ===== */
.carnet-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 28px; padding: 10px 10px 10px 12px; border-radius: 18px; background: #f3f9fe; }
.carnet-barre[hidden] { display: none; }
.carnet-barre-coche { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 38px; height: 38px; background: #39bbfc; color: #0d2c45; }
.carnet-barre-txt { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 200px; color: #586273; font-size: 14.5px; line-height: 20px; }
.carnet-barre-txt strong { color: #0d2c45; font-size: 16px; line-height: 21px; font-weight: 600; }
.carnet-barre-lien, .carnet-barre-ajout { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px 9px 18px; border: 0; border-radius: 999px; background: #0177ca; color: #fff; font: 600 15px/20px "Overused Grotesk", sans-serif; text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s; }
.carnet-barre-lien:hover, .carnet-barre-ajout:hover { background: #0167b0; color: #fff; transform: translateY(-1px); }
.carnet-barre-lien:focus-visible, .carnet-barre-ajout:focus-visible { outline: 2px solid #0d2c45; outline-offset: 3px; }
.carnet-barre-ajout { padding-left: 14px; background: #fff; color: #0177ca; box-shadow: inset 0 0 0 1.5px #0177ca; }
.carnet-barre-ajout:hover { background: #0177ca; color: #fff; }
.carnet-barre--anime .carnet-barre-coche { animation: carnet-coche .6s cubic-bezier(.3, 1.6, .5, 1); }
.carnet-barre--anime { animation: carnet-barre .5s ease-out; }
@keyframes carnet-coche { from { transform: scale(.3) rotate(-25deg); } to { transform: none; } }
@keyframes carnet-barre { from { box-shadow: 0 0 0 0 rgba(57, 187, 252, .6); } to { box-shadow: 0 0 0 14px rgba(57, 187, 252, 0); } }
@media (max-width: 767.98px) {
  .carnet-barre { margin-bottom: 22px; }
  .carnet-barre-lien { width: 100%; justify-content: center; }
}

/* ===== Page « Mes fiches » ===== */
.carnet { padding: 10px 0 90px; background: #fff; }
.carnet-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.carnet-contenu { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* Le condensé : combien de fiches, combien de temps, où on en est, et le bouton pour lire */
.carnet-resume { position: relative; overflow: hidden; padding: 26px 26px 24px; border-radius: 26px; color: #dbe9f5;
  background: radial-gradient(80% 120% at 100% 0%, rgba(57, 187, 252, .45) 0%, rgba(57, 187, 252, 0) 60%), linear-gradient(150deg, #0181dc 0%, #0167b0 45%, #0d2c45 100%);
  box-shadow: 0 30px 60px -40px rgba(1, 50, 92, .8); }
.carnet-resume[hidden] { display: none; }
.carnet-resume-sur { display: block; color: #ace0f9; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.carnet-resume .carnet-resume-ttl { margin: 6px 0 4px; padding-right: 130px; color: #fff; font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -.02em; }
.carnet-resume-meta { margin: 0 0 18px; padding-right: 130px; color: #cfe8f8; font-size: 15.5px; line-height: 22px; }
.carnet-resume-vignettes { position: absolute; top: 24px; right: 22px; display: flex; flex-direction: row-reverse; }
.carnet-resume-vignettes img { width: 56px; height: 56px; margin-left: -16px; object-fit: cover; border-radius: 14px; background: #fff; box-shadow: 0 0 0 3px #0177ca, 0 10px 20px -8px rgba(0, 0, 0, .5); }
.carnet-resume-vignettes img:nth-child(2) { transform: rotate(-6deg); }
.carnet-resume-vignettes img:nth-child(3) { transform: rotate(5deg); }
.carnet-progres { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.carnet-progres-barre { display: block; width: 0; height: 100%; border-radius: 99px; background: #39bbfc; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.carnet-progres-txt { margin: 8px 0 18px; color: #cfe8f8; font-size: 14px; line-height: 20px; }
.carnet-commencer { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin: 0; padding: 12px 24px; border: 0; border-radius: 999px; background: #fff; color: #0177ca; font: 600 17px/22px "Overused Grotesk", sans-serif; cursor: pointer;
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .55); transition: transform .2s, background-color .2s; }
.carnet-commencer:hover { transform: translateY(-2px); background: #eaf7ff; }
.carnet-commencer:focus-visible { outline: 3px solid #39bbfc; outline-offset: 3px; }
.carnet-resume--fini .carnet-commencer { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }

.carnet-boite { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px #e3eef7, 0 24px 44px -38px rgba(1, 50, 92, .55); }
.carnet-boite[hidden] { display: none; }
.carnet-boite-tete { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 20px; background: var(--b-fond); color: var(--b-txt); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.carnet-boite-tete b, .carnet-boite-picto { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--b-num); color: var(--b-num-txt); font-size: 15px; letter-spacing: 0; }
.carnet-boite-picto svg { width: 19px; height: 19px; }
.carnet-boite-titres { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.carnet-boite-detail { opacity: .8; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }

.carnet-liste { margin: 0; padding: 6px 0; list-style: none; }
.carnet-el { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0; padding: 0 8px 0 0; }
.carnet-el::before { display: none; }
.carnet-el[hidden] { display: none; }
.carnet-el:not([hidden]) ~ .carnet-el:not([hidden]) { border-top: 1px solid #e8f1f8; }
.carnet-carte { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; margin: 0; padding: 12px 8px 12px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.carnet-vignette { position: relative; display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 96px; height: 72px; border-radius: 14px; background: #f3f9fe; }
.carnet-vignette img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.carnet-vignette--picto { background: linear-gradient(135deg, #39bbfc, #0167b0); color: #fff; }
.carnet-vignette--picto > svg { width: 34px; height: 34px; }
.carnet-el--appli .carnet-vignette { background: #fff; box-shadow: inset 0 0 0 1px #e3eef7; }
.carnet-el--appli .carnet-vignette img { object-fit: contain; padding: 6px; }
.carnet-lu { position: absolute; left: -6px; top: -6px; display: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #0177ca; color: #fff; box-shadow: 0 0 0 3px #fff; }
.carnet-el--lu .carnet-lu { display: flex; animation: carnet-coche .5s cubic-bezier(.3, 1.6, .5, 1); }
.carnet-corps { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.carnet-nom { color: #0d2c45; font-size: 18px; line-height: 23px; font-weight: 600; transition: color .2s; }
.carnet-sous { color: #586273; font-size: 14.5px; line-height: 20px; }
.carnet-type { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; color: #0177ca; font-size: 13.5px; line-height: 18px; font-weight: 600; }
.carnet-type svg { width: 18px; height: 18px; padding: 4px; border-radius: 50%; background: #0177ca; color: #fff; }
.carnet-el--lu .carnet-type::after { content: "· Lue"; color: #6b7686; font-weight: 500; }
.carnet-fleche { flex-shrink: 0; color: #0177ca; transition: transform .25s; }
.carnet-carte:hover .carnet-nom { color: #0177ca; }
.carnet-carte:hover .carnet-fleche { transform: translateX(3px); }
.carnet-carte:hover .carnet-vignette img { transform: scale(1.04); }
.carnet-carte:focus-visible, .carnet-retirer:focus-visible, .carnet-magasin:focus-visible { outline: 2px solid #0177ca; outline-offset: 2px; border-radius: 14px; }
.carnet-retirer { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: #9aa6b4; cursor: pointer; transition: background-color .2s, color .2s; }
.carnet-retirer:hover { background: #f3f9fe; color: #0d2c45; }
.carnet-magasin { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: #0d2c45; color: #fff; font-size: 15px; line-height: 19px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.carnet-magasin:hover { background: #0177ca; color: #fff; }
.carnet--ios .carnet-magasin--android, .carnet--android .carnet-magasin--ios { display: none; }

.carnet-vide { padding: 46px 30px 50px; border-radius: 24px; background: #f3f9fe; text-align: center; }
.carnet-vide[hidden] { display: none; }
.carnet-vide-picto { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px; background: #fff; color: #0177ca; }
.carnet-vide-picto svg { width: 34px; height: 34px; }
.carnet-vide h2 { margin: 0 0 10px; color: #0d2c45; font-size: 24px; line-height: 30px; font-weight: 600; }
.carnet-vide p { max-width: 480px; margin: 0 auto 22px; color: #586273; font-size: 16.5px; line-height: 25px; }
.carnet-vide .parcours-cta { margin: 0; }

.carnet-garder { position: sticky; top: 120px; padding: 26px 24px 24px; border-radius: 24px; background: #f3f9fe; color: #3f4a59; }
.carnet-garder[hidden] { display: none; }
.carnet-garder-picto { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 14px; background: #fff; color: #0177ca; }
.carnet-garder-picto svg { width: 26px; height: 26px; }
.carnet-garder h2 { margin: 0 0 10px; color: #0d2c45; font-size: 21px; line-height: 27px; font-weight: 600; }
.carnet-garder p { margin: 0 0 16px; color: #3f4a59; font-size: 15.5px; line-height: 23px; }
.carnet-garder strong { color: #0d2c45; font-weight: 600; }
.carnet-icone { display: inline-flex; vertical-align: -3px; color: #0177ca; }
.carnet-garder-ios, .carnet-garder-android, .carnet-garder-ordi { display: none; }
.carnet--ios .carnet-garder-ios, .carnet--android .carnet-garder-android, .carnet--ordi .carnet-garder-ordi { display: block; }
.carnet-garder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; }
.carnet-garder-actions .parcours-cta { margin: 0; border: 0; font-family: inherit; cursor: pointer; }
.carnet-garder-actions [hidden] { display: none; }
.carnet-copier { margin: 0; padding: 0; border: 0; background: none; color: #0177ca; font: 600 15px/20px "Overused Grotesk", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.carnet-copier:hover { color: #0d2c45; }
.carnet-garder .carnet-garder-note { margin: 0; padding-top: 14px; border-top: 1px solid #dcebf6; color: #6b7686; font-size: 13.5px; line-height: 19px; }

.carnet-annonce span { flex: 1; }
.carnet-annonce { position: fixed; z-index: 50; left: 50%; bottom: 22px; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); margin: 0; padding: 12px 14px 12px 20px; border-radius: 999px; background: #0d2c45; color: #fff; font-size: 15.5px; line-height: 21px; box-shadow: 0 18px 40px -16px rgba(13, 44, 69, .7);
  transform: translate(-50%, 0); transition: opacity .35s, transform .35s; }
.carnet-annonce[hidden] { display: none; }
.carnet-annonce strong { color: #39bbfc; font-weight: 600; }
.carnet-annonce--la { animation: carnet-annonce .45s cubic-bezier(.3, 1.4, .5, 1); }
.carnet-annonce--part { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.carnet-annonce button { margin: 0; padding: 6px 14px; border: 0; border-radius: 999px; background: #39bbfc; color: #0d2c45; font: 600 14px/18px "Overused Grotesk", sans-serif; cursor: pointer; }
@keyframes carnet-annonce { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== Le lecteur : une page courte par fiche, qu'on fait glisser ===== */
html.lecteur-ouvert { overflow: hidden; }
.lecteur { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #3f4a59; }
.lecteur[open] { display: flex; flex-direction: column; animation: lecteur-entre .35s cubic-bezier(.2, .7, .2, 1); }
.lecteur::backdrop { background: rgba(13, 44, 69, .72); }
@keyframes lecteur-entre { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.lecteur-tete { display: flex; flex-shrink: 0; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-bottom: 1px solid #e8f1f8; }
.lecteur-compte { min-width: 44px; color: #0d2c45; font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lecteur-points { display: flex; flex: 1; gap: 5px; }
.lecteur-points i { flex: 1; max-width: 48px; height: 5px; border-radius: 3px; background: #e3eef7; transition: background-color .3s; }
.lecteur-points i.lu { background: #ace0f9; }
.lecteur-points i.actif { background: #0177ca; }
.lecteur-fermer { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f3f9fe; color: #0d2c45; cursor: pointer; }
.lecteur-fermer:hover { background: #e3f2fd; }
.lecteur-pistes { display: flex; flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.lecteur-pistes::-webkit-scrollbar { display: none; }
.lecteur-page { flex: 0 0 100%; min-width: 0; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-align: start; scroll-snap-stop: always; }
.lecteur-page[hidden] { display: none; }
.lecteur-media { position: relative; display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 100%; height: min(62vw, 44vh); overflow: hidden; background: #f3f9fe; }
.lecteur-photo { width: 100%; height: 100%; object-fit: contain; }
.lecteur-photo--appli { object-fit: contain; padding: 8%; background: #fff; }
.lecteur-media video { width: 100%; height: 100%; object-fit: contain; background: #0d2c45; }
.lecteur-media--video { background: #000; }
.lecteur-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.lecteur-picto { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #39bbfc, #0167b0); color: #fff; }
.lecteur-picto svg { width: 72px; height: 72px; }
.lecteur-video--grand { position: relative; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #0d2c45; cursor: pointer; }
.lecteur-video--grand img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.lecteur-video--grand .lecteur-video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 24px 22px 24px 27px; border-radius: 50%; background: #fff; color: #0177ca; box-shadow: 0 0 0 10px rgba(255, 255, 255, .28); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.lecteur-video--grand:hover .lecteur-video-play { transform: scale(1.08); }
.lecteur-video-play svg { display: block; width: 100%; height: 100%; }
.lecteur-texte { max-width: 660px; margin: 0 auto; padding: 22px 22px 34px; }
.lecteur-boite { display: inline-flex; align-items: center; gap: 8px; color: #0177ca; font-size: 12.5px; line-height: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.lecteur-boite b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: #39bbfc; color: #0d2c45; font-size: 12px; letter-spacing: 0; }
.lecteur .lecteur-ttl { margin: 6px 0 2px; color: #0d2c45; font-size: 30px; line-height: 35px; font-weight: 600; letter-spacing: -.02em; }
.lecteur-sous { margin: 0; color: #6b7686; font-size: 15px; line-height: 21px; }
.lecteur-video--bouton { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: #e3f2fd; color: #0177ca; font: 600 15px/20px "Overused Grotesk", sans-serif; cursor: pointer; transition: background-color .2s; }
.lecteur-video--bouton:hover { background: #d3ebfb; }
.lecteur-video--bouton .lecteur-video-play { width: 34px; height: 34px; padding: 10px 9px 10px 12px; border-radius: 50%; background: #0177ca; color: #fff; }
.lecteur-intro { margin: 18px 0 0; padding-left: 16px; border-left: 4px solid #39bbfc; }
.lecteur-intro p { margin: 0 0 8px; color: #0d2c45; font-size: 18px; line-height: 28px; }
.lecteur-intro p:last-child { margin-bottom: 0; }
.lecteur-intro strong, .lecteur-bloc strong { color: #0d2c45; font-weight: 600; }
.lecteur-bloc { margin: 14px 0 0; padding: 16px 18px 14px; border-radius: 18px; background: #f3f9fe; }
.lecteur .lecteur-bloc h3 { position: relative; margin: 0 0 10px; padding-left: 20px; color: #0d2c45; font-size: 17px; line-height: 22px; font-weight: 600; }
.lecteur-bloc h3::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background: #0181dc; }
.lecteur-bloc p { margin: 0 0 8px; font-size: 16px; line-height: 24px; }
.lecteur-bloc ul { margin: 0; padding: 0; list-style: none; }
.lecteur-bloc li { position: relative; margin: 0 0 7px; padding-left: 18px; font-size: 16px; line-height: 24px; }
.lecteur-bloc li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 7px; height: 7px; border-radius: 0; background: #39bbfc; }
.lecteur-bloc--alerte { background: #0d2c45; color: #dbe9f5; }
.lecteur .lecteur-bloc--alerte h3, .lecteur-bloc--alerte strong { color: #fff; }
.lecteur-bloc--alerte h3::before { background: #39bbfc; }
.lecteur-tel { display: inline-flex; align-items: center; gap: 9px; margin: 6px 0 4px; padding: 10px 18px; border-radius: 999px; background: #39bbfc; color: #0d2c45; font-size: 15.5px; line-height: 20px; font-weight: 600; text-decoration: none; }
.lecteur-tel:hover { background: #fff; }
.lecteur-magasins { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.lecteur-complet { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; color: #0177ca; font-size: 15.5px; line-height: 20px; font-weight: 600; text-decoration: none; }
.lecteur-complet:hover { text-decoration: underline; }
.lecteur-pied { display: flex; flex-shrink: 0; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e8f1f8; background: #fff; }
.lecteur-prec { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f3f9fe; color: #0177ca; cursor: pointer; transition: opacity .2s; }
.lecteur-prec:disabled { opacity: .35; cursor: default; }
.lecteur-suiv { display: flex; flex: 1; align-items: center; justify-content: center; gap: 10px; min-width: 0; height: 52px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: #0177ca; color: #fff; font: 600 16px/20px "Overused Grotesk", sans-serif; cursor: pointer; transition: background-color .2s; }
.lecteur-suiv:hover { background: #0167b0; }
.lecteur-suiv-txt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lecteur svg { flex-shrink: 0; }
.lecteur--fin .lecteur-suiv { background: #0d2c45; }
.lecteur-fermer:focus-visible, .lecteur-prec:focus-visible, .lecteur-suiv:focus-visible, .lecteur-video--bouton:focus-visible, .lecteur-video--grand:focus-visible { outline: 3px solid #39bbfc; outline-offset: 2px; }
@media (min-width: 768px) {
  .lecteur { inset: 0; width: min(760px, 94vw); height: min(90vh, 940px); margin: auto; overflow: hidden; border-radius: 26px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6); }
  .lecteur-texte { padding: 26px 34px 40px; }
  .lecteur-media { height: min(380px, 42vh); }
}

@media (max-width: 991.98px) {
  .carnet-grille { grid-template-columns: minmax(0, 1fr); }
  .carnet-garder { position: static; }
}
@media (max-width: 767.98px) {
  .carnet { padding-bottom: 64px; }
  .carnet-resume { padding: 22px 20px 20px; border-radius: 22px; }
  .carnet-resume .carnet-resume-ttl { padding-right: 96px; font-size: 26px; line-height: 31px; }
  .carnet-resume-meta { padding-right: 0; font-size: 14.5px; }
  .carnet-resume-vignettes { top: 20px; right: 16px; }
  .carnet-resume-vignettes img { width: 44px; height: 44px; margin-left: -14px; border-radius: 11px; }
  .carnet-resume-vignettes img:nth-child(n+4) { display: none; }
  .carnet-commencer { width: 100%; }
  .carnet-boite { border-radius: 20px; }
  .carnet-boite-tete { padding: 12px 16px; font-size: 13.5px; }
  .carnet-boite-detail { font-size: 13px; }
  .carnet-annonce { width: max-content; border-radius: 20px; }
  .carnet-carte { gap: 12px; padding: 10px 4px 10px 12px; }
  .carnet-vignette { width: 76px; height: 58px; border-radius: 12px; }
  .carnet-nom { font-size: 16.5px; line-height: 21px; }
  .carnet-sous { font-size: 13.5px; line-height: 18px; }
  .carnet-fleche { display: none; }
  .lecteur .lecteur-ttl { font-size: 26px; line-height: 31px; }
  .lecteur-intro p { font-size: 17px; line-height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .carnet-barre--anime, .carnet-barre--anime .carnet-barre-coche, .carnet-annonce--la, .lecteur[open], .carnet-el--lu .carnet-lu { animation: none; }
  .lecteur-pistes { scroll-behavior: auto; }
}
