/* Fiche œuvre automatique · ADW – Œuvres 1.1 */
.adw-fiche-auto .portfolio_navigation { display: none; }

.adw-fiche { --adw-encre: #000; --adw-gris: #666; --adw-filet: #e6e4df; --adw-fond: #f7f6f4; color: var(--adw-encre); padding-top: 110px; }
.adw-haut, .adw-haut *, .adw-nav, .adw-nav *, .adw-proches, .adw-proches *, .adw-visionneuse, .adw-visionneuse * { box-sizing: border-box; }
.adw-fiche a { display: inline; }
.adw-fiche img { display: block; max-width: 100%; height: auto; }

.adw-haut { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 60px; align-items: start; }

/* Photos */
.adw-principale { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: #f1f0ec; cursor: zoom-in; }
.adw-principale img { width: 100%; height: auto; }
.adw-miniatures { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.adw-miniatures li { margin: 0; padding: 0; }
.adw-miniatures button { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #f1f0ec; cursor: pointer; outline-offset: 2px; }
.adw-miniatures button img { width: 100%; height: 100%; object-fit: cover; }
.adw-miniatures button[aria-current="true"] { outline: 2px solid var(--adw-encre); }
.adw-fiche button:focus-visible, .adw-fiche a:focus-visible { outline: 2px solid var(--adw-encre); outline-offset: 3px; }

/* Informations */
.adw-infos { position: sticky; top: 24px; }
.adw-ariane, .adw-sur-titre { font-family: Overpass, sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--adw-gris); margin: 0 0 6px; }
.adw-ariane a { color: var(--adw-gris); text-decoration: none; }
.adw-ariane a:hover { color: var(--adw-encre); text-decoration: underline; }
.adw-sur-titre { margin-top: 24px; }
.adw-fiche h1.adw-titre { font-family: Overpass, sans-serif; font-weight: 400; font-size: 40px; line-height: 1.15; text-transform: uppercase; letter-spacing: 0; color: var(--adw-encre); margin: 0 0 18px; }
.adw-tableau { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.adw-tableau th, .adw-tableau td { text-align: left; padding: 10px 0; border-top: 1px solid var(--adw-filet); border-bottom: 1px solid var(--adw-filet); font-weight: 400; vertical-align: top; }
.adw-tableau th { color: var(--adw-gris); width: 120px; padding-right: 12px; }
.adw-texte { margin: 0 0 22px; }
.adw-bouton { display: block !important; text-align: center; border: 1px solid var(--adw-encre); padding: 15px 20px; margin: 0 0 10px; font-family: Overpass, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: var(--adw-encre); background: transparent; }
.adw-bouton:hover { background: var(--adw-encre); color: #fff; }
.adw-bouton-plein { background: var(--adw-encre); color: #fff; }
.adw-bouton-plein:hover { background: #333; border-color: #333; }
.adw-lieu { font-size: 13px; color: var(--adw-gris); margin: 8px 0 0; }

/* Navigation */
.adw-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 60px 0 0; padding: 14px 0; border-top: 1px solid var(--adw-filet); border-bottom: 1px solid var(--adw-filet); font-family: Overpass, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.adw-nav a { color: var(--adw-encre); text-decoration: none; }
.adw-nav a:hover { text-decoration: underline; }
.adw-nav .adw-suiv { text-align: right; }
.adw-nav .adw-tous { border: 1px solid var(--adw-encre); padding: 12px 20px; text-align: center; }
.adw-nav .adw-tous:hover { background: var(--adw-encre); color: #fff; text-decoration: none; }

/* Œuvres proches */
.adw-proches h2 { font-family: Overpass, sans-serif; font-weight: 400; font-size: 26px; text-transform: uppercase; text-align: center; margin: 70px 0 26px; color: var(--adw-encre); }
.adw-proches ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.adw-proches li { margin: 0; padding: 0; }
.adw-proches a { display: block; color: var(--adw-encre); text-decoration: none; }
.adw-proches img { width: 100%; height: 380px; object-fit: cover; background: #f1f0ec; }
.adw-proches h3 { font-family: Overpass, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; text-align: center; margin: 14px 0 0; color: var(--adw-encre); }
.adw-proches a:hover h3 { text-decoration: underline; }
.adw-proches p { text-align: center; color: var(--adw-gris); font-size: 13px; margin: 2px 0 0; }

/* Contact */
.adw-contact { margin: 60px 0 100px; scroll-margin-top: 100px; }
.adw-contact h3 { margin: 0 0 20px; }

/* Visionneuse */
.adw-visionneuse { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .92); color: #fff; }
.adw-visionneuse::backdrop { background: rgba(0, 0, 0, .92); }
.adw-visionneuse figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 70px 30px; }
.adw-visionneuse img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.adw-v-compteur { font-family: Overpass, sans-serif; font-size: 13px; letter-spacing: 1px; margin-top: 12px; color: #ddd; }
.adw-visionneuse button { position: absolute; background: transparent; border: 1px solid rgba(255, 255, 255, .6); color: #fff; cursor: pointer; font-family: Overpass, sans-serif; }
.adw-v-fermer { top: 16px; right: 16px; padding: 8px 14px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.adw-v-prec, .adw-v-suiv { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.adw-v-prec { left: 12px; }
.adw-v-suiv { right: 12px; }
.adw-visionneuse button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 1024px) {
	.adw-fiche h1.adw-titre { font-size: 32px; }
	.adw-haut { gap: 36px; }
}
@media (max-width: 820px) {
	.adw-fiche { padding-top: 30px; }
	.adw-haut { grid-template-columns: 1fr; gap: 26px; }
	.adw-infos { position: static; }
	.adw-fiche h1.adw-titre { font-size: 26px; }
	.adw-nav { grid-template-columns: 1fr 1fr; font-size: 11px; }
	.adw-nav .adw-tous { grid-column: 1 / -1; grid-row: 2; }
	.adw-proches ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.adw-proches li:nth-child(3) { display: none; }
	.adw-proches img { height: 300px; }
	.adw-proches h2 { font-size: 22px; margin-top: 50px; }
	.adw-visionneuse figure { padding: 60px 12px 20px; }
	.adw-v-prec, .adw-v-suiv { top: auto; bottom: 16px; transform: none; }
}
