/* Page « Documentation » : bibliothèque, sur le socle commun (commun/commun.css). */
/* Fond des cartes : blanc en mode clair (--bande y est bleu nuit), bleu un ton au-dessus du fond en mode sombre. */
.acaf-doc { --doc-carte: #fff; }
html[data-theme="sombre"] .acaf-doc { --doc-carte: var(--bande); }

/* Cadre large : page outil */
.acaf-doc__cadre { max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); }

/* En-tête compact et collant : titre, onglets, recherche */
.acaf-doc__entete { position: sticky; top: var(--entete); z-index: 6; padding: 14px 0 14px; background: var(--fond); border-bottom: 1px solid var(--trait); }
.acaf-doc__fil { display: flex; gap: 8px; font-size: 13px; color: var(--brume); }
.acaf-page .acaf-doc__fil a { color: var(--brume); text-decoration: none; }
.acaf-page .acaf-doc__fil a:hover { color: var(--fort); }
.acaf-doc__ligne-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 4px; }
.acaf-page .acaf-doc__ligne-titre h1 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.01em; color: var(--fort); }
.acaf-doc__onglets { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--ciel); }
.acaf-page .acaf-doc__onglets button { padding: 8px 20px; border: 0; border-radius: 99px; background: none; color: var(--brume); font: 600 15px var(--texte); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.acaf-page .acaf-doc__onglets button:hover { color: var(--fort); }
.acaf-page .acaf-doc__onglets button.actif { background: var(--fort); color: var(--fond); }
.acaf-page .acaf-doc__onglets button { display: inline-flex; align-items: center; gap: 7px; }
.acaf-doc__onglets .cadenas { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.acaf-doc__onglets .ouvert .cadenas .anse { d: path("M8 11V8a4 4 0 0 1 7.5-2"); }
.acaf-doc__recherche { position: relative; flex: 0 1 380px; display: block; margin-left: auto; }
.acaf-page .acaf-doc__recherche input { width: 100%; height: 44px; padding: 0 40px 0 42px; border: 1px solid var(--trait); border-radius: 99px; background: var(--ciel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c96b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 15px 50% / 17px no-repeat; color: var(--encre); font: 400 15px var(--texte); transition: border-color .2s, background-color .2s; }
.acaf-doc__recherche input::placeholder { color: var(--brume); }
.acaf-page .acaf-doc__recherche input:focus { outline: none; border-color: var(--fort); background-color: var(--fond); }
.acaf-doc__recherche kbd { position: absolute; right: 12px; top: 50%; translate: 0 -50%; min-width: 22px; padding: 1px 6px; border: 1px solid var(--trait); border-radius: 5px; background: none; color: var(--brume); font: 500 12px/18px var(--texte); text-align: center; pointer-events: none; }
.acaf-doc__recherche input:focus ~ kbd, .acaf-doc__recherche input:not(:placeholder-shown) ~ kbd { display: none; }

/* Corps : arborescence + contenu */
.acaf-doc__corps { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); padding-bottom: 72px; }
.acaf-doc__cote { position: sticky; top: calc(var(--entete) + var(--doc-tete, 96px)); align-self: start; max-height: calc(100svh - var(--entete) - var(--doc-tete, 96px)); overflow-y: auto; padding: 18px 8px 24px 0; scrollbar-width: thin; scrollbar-color: var(--trait) transparent; }
.acaf-doc__corps.sans-arbre { grid-template-columns: minmax(0, 1fr); }
.acaf-doc__corps.sans-arbre .acaf-doc__cote { display: none; }
.acaf-doc__arbre ul { display: grid; gap: 1px; }
.acaf-doc__noeud { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; padding-left: calc(var(--niveau, 0) * 14px); border-radius: 8px; }
.acaf-doc__noeud:hover { background: color-mix(in srgb, var(--ciel) 70%, transparent); }
.acaf-doc__noeud.actif { background: var(--ciel); }
.acaf-doc__noeud.racine { grid-template-columns: minmax(0, 1fr); margin-bottom: 6px; }
.acaf-page .acaf-doc__noeud button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.acaf-page .acaf-doc__noeud .deplier { display: grid; place-items: center; width: 22px; height: 32px; color: var(--brume); }
.acaf-doc__noeud .deplier svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .15s; }
.acaf-doc__noeud .deplier.ouvert svg { rotate: 90deg; }
.acaf-page .acaf-doc__noeud .aller { display: flex; align-items: center; gap: 9px; min-width: 0; width: 100%; padding: 7px 8px 7px 2px; color: var(--encre); font-size: 14.5px; text-align: left; }
.acaf-page .acaf-doc__noeud.racine .aller { padding-left: 8px; font-weight: 600; }
.acaf-doc__noeud .aller span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acaf-doc__noeud .aller svg { flex-shrink: 0; width: 17px; height: 17px; fill: none; stroke: var(--brume); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acaf-page .acaf-doc__noeud.actif .aller { color: var(--fort); font-weight: 600; }
.acaf-doc__noeud.actif .aller svg { stroke: var(--rouge); fill: color-mix(in srgb, var(--rouge) 22%, transparent); }

/* Explorateur */
.acaf-doc__principal { min-width: 0; }
.acaf-doc__explorateur { min-height: 60svh; transition: opacity .2s; }
.acaf-doc__explorateur.charge { opacity: .6; }
.acaf-doc__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 16px 0 4px; }
.acaf-doc__ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 15px; color: var(--brume); }
.acaf-page .acaf-doc__ariane button { padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--brume); font: 500 15px var(--texte); cursor: pointer; }
.acaf-page .acaf-doc__ariane button:hover { background: var(--ciel); color: var(--fort); }
.acaf-doc__ariane .sep { opacity: .5; }
.acaf-doc__ariane .actuel { padding: 4px 8px; color: var(--fort); font-weight: 600; }
.acaf-doc__ariane > :only-child { color: var(--fort); font-weight: 600; }
.acaf-doc__outils { display: flex; align-items: center; gap: 14px; }
.acaf-doc__outils .resume { font-size: 14px; color: var(--brume); }
.acaf-doc__vues { display: inline-flex; padding: 3px; border: 1px solid var(--trait); border-radius: 8px; }
.acaf-page .acaf-doc__vues button { display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--brume); cursor: pointer; }
.acaf-page .acaf-doc__vues button.actif { background: var(--ciel); color: var(--fort); }
.acaf-doc__vues svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.acaf-doc__section { margin-top: 18px; }
.acaf-page .acaf-doc__section h2 { margin-bottom: 14px; font: 600 13px var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--brume); }

/* Dossiers en tuiles */
.acaf-doc__dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.acaf-page .acaf-doc__tuile { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; padding: 11px 14px; border: 1px solid var(--trait); border-radius: 12px; background: var(--doc-carte); color: var(--encre); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.acaf-page .acaf-doc__tuile:hover { border-color: color-mix(in srgb, var(--fort) 35%, transparent); transform: translateY(-2px); }
.acaf-doc__tuile svg { flex-shrink: 0; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--rouge) 14%, transparent); fill: color-mix(in srgb, var(--rouge) 30%, transparent); stroke: var(--rouge); stroke-width: 1.6; stroke-linejoin: round; }
.acaf-doc__tuile .nom, .acaf-doc__carte .nom { display: grid; gap: 2px; min-width: 0; }
.acaf-doc__tuile strong { font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--fort); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acaf-doc__tuile small, .acaf-doc__carte small { font-size: 13px; color: var(--brume); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Fichiers : cartes avec miniature */
.acaf-doc__fichiers { display: grid; gap: 18px; }
.acaf-doc__fichiers.vue-grille, .acaf-doc__fichiers.recents { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.acaf-doc__fichiers li { position: relative; min-width: 0; }
.acaf-page .acaf-doc__carte { display: grid; gap: 10px; color: var(--encre); text-decoration: none; }
.acaf-doc__vignette { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--trait); border-radius: 10px; background: linear-gradient(160deg, var(--doc-carte), var(--ciel)); transition: border-color .2s, transform .25s, box-shadow .25s; }
.acaf-doc__vignette > svg { width: 44px; height: 44px; fill: none; stroke: var(--brume); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.acaf-doc__vignette.genre-pdf > svg { stroke: var(--rouge); }
.acaf-doc__vignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; opacity: 0; transition: opacity .35s; }
.acaf-doc__vignette.genre-image img, .acaf-doc__vignette.genre-video img { background: #000; object-position: center; }
.acaf-doc__vignette.chargee img { opacity: 1; }
.acaf-doc__vignette .badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; background: rgba(7, 16, 55, .82); color: #fff; font: 700 10.5px/16px var(--texte); letter-spacing: .06em; backdrop-filter: blur(4px); }
.acaf-doc__vignette.genre-pdf .badge { background: var(--rouge); }
.acaf-doc__carte:hover .acaf-doc__vignette { border-color: color-mix(in srgb, var(--fort) 40%, transparent); transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.acaf-doc__carte strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 14.5px; line-height: 1.35; color: var(--fort); }
.acaf-doc__carte .chemin { color: color-mix(in srgb, var(--brume) 80%, transparent); }
.acaf-page .acaf-doc__telecharger { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(7, 16, 55, .82); color: #fff; opacity: 0; transition: opacity .2s, background .2s; backdrop-filter: blur(4px); }
.acaf-doc__fichiers li:hover .acaf-doc__telecharger, .acaf-doc__telecharger:focus-visible { opacity: 1; }
.acaf-page .acaf-doc__telecharger:hover { background: var(--rouge); }
.acaf-doc__telecharger svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Derniers documents : bande défilante */
.acaf-doc__fichiers.recents { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(150px, 176px); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--trait) transparent; }
.acaf-doc__fichiers.recents li { scroll-snap-align: start; padding-top: 4px; }
.acaf-doc__fichiers.recents { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 60px), transparent); }

/* Vue liste */
.acaf-doc__fichiers.vue-liste { gap: 0; border-top: 1px solid var(--trait); }
.acaf-doc__fichiers.vue-liste li { border-bottom: 1px solid var(--trait); }
.acaf-doc__fichiers.vue-liste .acaf-doc__carte { grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 52px 10px 6px; border-radius: 8px; }
.acaf-doc__fichiers.vue-liste .acaf-doc__carte:hover { background: var(--ciel); }
.acaf-doc__fichiers.vue-liste .acaf-doc__vignette { width: 40px; border-radius: 5px; }
.acaf-doc__fichiers.vue-liste .acaf-doc__carte:hover .acaf-doc__vignette { transform: none; box-shadow: none; }
.acaf-doc__fichiers.vue-liste .acaf-doc__vignette > svg { width: 20px; height: 20px; }
.acaf-doc__fichiers.vue-liste .badge { display: none; }
.acaf-doc__fichiers.vue-liste .nom { grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: center; }
.acaf-doc__fichiers.vue-liste .nom strong { -webkit-line-clamp: 1; }
.acaf-doc__fichiers.vue-liste .nom .chemin { grid-row: 2; }
.acaf-doc__fichiers.vue-liste .nom .infos { grid-column: 2; grid-row: 1 / span 2; }
.acaf-doc__fichiers.vue-liste .acaf-doc__telecharger { top: 50%; translate: 0 -50%; right: 6px; background: none; color: var(--brume); opacity: 1; backdrop-filter: none; }
.acaf-page .acaf-doc__fichiers.vue-liste .acaf-doc__telecharger:hover { background: var(--doc-carte); color: var(--fort); }

/* Chargement */
.acaf-doc__squelette li span { display: block; height: 70px; border-radius: 12px; background: linear-gradient(90deg, var(--ciel) 25%, var(--doc-carte) 50%, var(--ciel) 75%) 0 0 / 200% 100%; animation: acaf-doc-reflet 1.4s infinite linear; }
.acaf-doc__squelette-ligne { display: block; width: 180px; height: 22px; border-radius: 6px; background: var(--ciel); }
@keyframes acaf-doc-reflet { to { background-position: -200% 0; } }
.acaf-doc__vide { padding: 60px 0; text-align: center; color: var(--brume); }

/* Avertissement, discret en bas */
.acaf-doc__avertissement { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--trait); font-size: 13.5px; color: var(--brume); }
.acaf-doc__avertissement strong { color: var(--encre); font-weight: 600; }

/* Aperçu plein écran */
.acaf-doc-apercu-ouvert { overflow: hidden; }
.acaf-doc__apercu { width: min(1180px, 100vw - 32px); height: calc(100svh - 32px); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid var(--trait); border-radius: 14px; background: var(--fond); color: var(--encre); display: none; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.acaf-doc__apercu[open] { display: flex; animation: acaf-doc-entree .22s ease-out; }
.acaf-doc__apercu::backdrop { background: rgba(3, 8, 30, .78); backdrop-filter: blur(6px); }
@keyframes acaf-doc-entree { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.acaf-doc__apercu header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--trait); }
.acaf-doc__apercu .titre { display: grid; min-width: 0; }
.acaf-doc__apercu .titre strong { font: 600 16px var(--texte); color: var(--fort); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acaf-doc__apercu .titre small { font-size: 13px; color: var(--brume); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acaf-doc__apercu .actions { display: flex; gap: 4px; flex-shrink: 0; }
.acaf-page .acaf-doc__action { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--encre); cursor: pointer; text-decoration: none; box-shadow: none; }
.acaf-page .acaf-doc__action:hover, .acaf-page .acaf-doc__action:focus { background: var(--ciel); color: var(--fort); }
.acaf-page .acaf-doc__action:disabled { opacity: .3; cursor: default; background: none; }
.acaf-doc__action.fermer { margin-left: 6px; }
.acaf-doc__action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acaf-doc__apercu-cadre { flex: 1; display: grid; place-items: center; min-height: 0; background: #2b3142; }
.acaf-doc__apercu-cadre { position: relative; }
.acaf-doc__pdfjs { position: absolute; inset: 0; overflow: auto; background: #2b3142; }
.acaf-doc__pdfjs:focus { outline: none; }
.acaf-doc__pdfjs .pdfViewer { padding: 12px 0; }
.acaf-doc__pdfjs .pdfViewer .page { margin: 0 auto 12px; border: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.acaf-doc__pdfjs .textLayer .highlight { background-color: rgba(255, 196, 0, .45); }
.acaf-doc__pdfjs .textLayer .highlight.selected { background-color: rgba(226, 39, 1, .55); }
.acaf-doc__occurrences { display: flex; align-items: center; gap: 2px; margin-left: auto; padding: 3px 4px 3px 12px; border: 1px solid var(--trait); border-radius: 10px; }
.acaf-doc__occurrences[hidden] { display: none; }
.acaf-doc__occurrences .compte { min-width: 64px; font-size: 13.5px; color: var(--brume); white-space: nowrap; }
.acaf-page .acaf-doc__occurrences .acaf-doc__action { width: 32px; height: 32px; }
.acaf-doc__attente { padding: 18px 0; color: var(--brume); font-size: 14.5px; }
.acaf-doc__attente::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--trait); border-top-color: var(--rouge); border-radius: 50%; animation: acaf-doc-tour .8s linear infinite; }
@keyframes acaf-doc-tour { to { rotate: 360deg; } }
.acaf-doc__vide.petit { padding: 18px 0; text-align: left; font-size: 14.5px; }
.acaf-doc__apercu-cadre iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.acaf-doc__apercu-cadre img, .acaf-doc__apercu-cadre video { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Avertissement à l'ouverture */
.acaf-doc__avis { width: min(500px, 100vw - 32px); max-width: none; margin: auto; padding: 0; border: 1px solid var(--trait); border-radius: 18px; background: var(--fond); color: var(--encre); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.acaf-doc__avis[open] { animation: acaf-doc-entree .3s ease-out; }
.acaf-doc__avis::backdrop { background: rgba(3, 8, 30, .7); backdrop-filter: blur(8px); }
.acaf-doc__avis .photo { position: relative; height: 150px; background: linear-gradient(180deg, rgba(7, 16, 55, .35), rgba(7, 16, 55, .85)), #2a3354 var(--photo) 50% 60% / cover no-repeat; }
.acaf-doc__avis .icone { position: absolute; left: 50%; bottom: -30px; translate: -50% 0; display: grid; place-items: center; width: 60px; height: 60px; border: 4px solid var(--fond); border-radius: 50%; background: var(--rouge); }
.acaf-doc__avis .icone svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acaf-doc__avis .corps { display: grid; gap: 14px; justify-items: center; padding: 46px clamp(22px, 5vw, 40px) 32px; text-align: center; }
.acaf-page .acaf-doc__avis h2 { margin: 0; font-size: 26px; color: var(--fort); }
.acaf-doc__avis p { font-size: 16.5px; line-height: 1.55; color: var(--encre); }
.acaf-page .acaf-doc__avis button, .acaf-page .acaf-doc__avis button:focus { margin-top: 8px; border: 0; background: var(--rouge); color: #fff; cursor: pointer; }
.acaf-page .acaf-doc__avis button:hover { background: #c41f00; color: #fff; }
.acaf-page .acaf-doc__avis button:focus:not(:focus-visible) { outline: none; }

/* Accès instructeurs */
.acaf-doc__acces { max-width: 480px; margin: 48px auto; padding: clamp(28px, 4vw, 40px); border: 1px solid var(--trait); border-radius: 16px; background: var(--doc-carte); display: grid; gap: 10px; text-align: center; }
.acaf-doc__acces .cadenas { justify-self: center; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; background: color-mix(in srgb, var(--rouge) 14%, transparent); }
.acaf-doc__acces .cadenas svg { width: 26px; height: 26px; fill: none; stroke: var(--rouge); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acaf-page .acaf-doc__acces h2 { font-size: 26px; color: var(--fort); }
.acaf-doc__acces > p { color: var(--brume); font-size: 15px; }
.acaf-doc__acces label { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--fort); text-align: left; }
.acaf-doc__ligne { display: flex; gap: 10px; }
.acaf-doc__ligne input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--trait); border-radius: 8px; background: var(--fond); color: var(--encre); font: 400 16px var(--texte); }
.acaf-doc__ligne input:focus { outline: none; border-color: var(--fort); box-shadow: 0 0 0 1px var(--fort); }
.acaf-page .acaf-doc__ligne button { border: 0; cursor: pointer; }
.acaf-doc__erreur { min-height: 1.4em; color: #ff8a73; font-weight: 600; }

@media (hover: none) {
	.acaf-doc__fichiers.vue-grille .acaf-doc__telecharger, .acaf-doc__fichiers.recents .acaf-doc__telecharger { opacity: 1; }
}
@media (max-width: 1024px) {
	.acaf-doc__corps { grid-template-columns: minmax(0, 1fr); }
	.acaf-doc__cote { display: none; }
	.acaf-doc__entete { position: static; }
}
@media (max-width: 620px) {
	.acaf-doc__apercu { width: 100vw; height: 100svh; border: 0; border-radius: 0; }
	.acaf-doc__apercu header { flex-wrap: wrap; gap: 8px; padding: 10px 8px 10px 14px; }
	.acaf-doc__apercu .titre { flex: 1 1 calc(100% - 52px); order: 1; }
	.acaf-doc__apercu .actions { display: contents; }
	.acaf-doc__apercu .actions .fermer { order: 2; margin-left: 0; }
	.acaf-doc__apercu .actions > :not(.fermer) { order: 4; }
	.acaf-doc__apercu .actions > [aria-label="Document précédent"], .acaf-doc__apercu .actions > [aria-label="Document suivant"] { display: none; }
	.acaf-doc__occurrences { order: 3; margin-left: 0; margin-right: auto; }
	.acaf-doc__entete { padding: 10px 0 12px; }
	.acaf-doc__onglets { order: 3; width: 100%; }
	.acaf-page .acaf-doc__onglets button { flex: 1; padding: 9px 10px; font-size: 14px; }
	.acaf-doc__recherche { flex-basis: 100%; order: 4; }
	.acaf-doc__recherche kbd { display: none; }
	.acaf-doc__dossiers { grid-template-columns: 1fr; gap: 8px; }
	.acaf-doc__fichiers.vue-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.acaf-doc__fichiers.vue-liste .nom .infos { display: none; }
	.acaf-doc__ligne { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.acaf-doc__vignette, .acaf-doc__tuile, .acaf-doc__apercu[open] { transition: none; animation: none; }
}
