/* Les classiques. Le papier des notices prolonge l’accrochage sombre de l’entrée. */
.galerie { --atlas-night: #142e30; --atlas-lime: #dfed98; --atlas-paper: #fffaf0; }
.atlas-hero.hero {
    position: relative; isolation: isolate; display: grid; grid-template-columns: .96fr 1.04fr;
    align-items: center; gap: 3%; min-height: 0; padding: clamp(42px,5.6vw,100px) 5.5%;
    background: var(--atlas-night); color: var(--atlas-paper); overflow: hidden; max-width: none;
}
.atlas-hero-copy { position: relative; z-index: 2; max-width: 740px; }
.atlas-kicker { display: flex; align-items: center; gap: .8em; font: 600 12px/1.5 var(--sans); letter-spacing: .105em; text-transform: uppercase; }
.atlas-hero .atlas-kicker { color: var(--atlas-lime); }
.atlas-kicker > span { width: 2.8em; height: 1px; background: currentColor; }
.atlas-hero.hero h1 { position: static; margin: .21em 0 .22em; font: 400 clamp(74px,7.9vw,142px)/.95 var(--display); letter-spacing: -.056em; }
.atlas-hero h1 em { color: var(--atlas-lime); }
.atlas-hero h1 { word-spacing:.07em; }
.atlas-lead { max-width: 37ch; color: #e0e7db; font: 400 clamp(17px,1.45vw,23px)/1.5 var(--sans); }
.atlas-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 25px; margin-top: 30px; }
.atlas-button, .atlas-underline { display: inline-flex; align-items: center; gap: 18px; min-height: 46px; font: 650 15px/1.3 var(--sans); }
.atlas-button { justify-content: space-between; border: 1px solid transparent; border-radius: 30px; padding: 13px 20px; background: var(--atlas-night); color: #fffaf0; }
.atlas-hero .atlas-button, .museum-window .atlas-button, .tour-question .atlas-button { color: #18291f; background: var(--atlas-lime); }
.atlas-button:hover { box-shadow: 0 0 0 2px currentColor; }
.atlas-underline { color: inherit; text-decoration: underline; text-underline-offset: 5px; }
.atlas-hero .resume { color: #e0edb5; margin: 16px 0 0; }
.atlas-hanging { position: relative; margin: 0 0 0 1%; padding: 0 0 6.5% 9%; }
.wave-print { display: block; position: relative; padding: clamp(7px,.8vw,14px); background: #eee7d3; color: #142e30; box-shadow: 0 18px 42px #0411126b; transform: rotate(1.5deg); }
.wave-print img { width: 100%; aspect-ratio: 1.38; object-fit: cover; }
.wave-print > span { display: block; padding: 7px 2px 0; font: 12px/1.3 var(--sans); text-align: right; }
.statue-print { display: block; position: absolute; width: 29%; left: -2%; bottom: -1%; padding: 6px; background: #f6f3e5; color: #172b2d; transform: rotate(-5deg); box-shadow: 0 12px 30px #07141475; }
.statue-print img { width: 100%; aspect-ratio: .83; object-fit: cover; }
.statue-print span { display: flex; justify-content: space-between; align-items: center; gap: 3px; padding: 5px 0 0; font: 11px/1.2 var(--sans); }
.atlas-portals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0 5.5%; border-bottom: 1px solid var(--line); }
.atlas-portals a { position: relative; display: grid; align-content: center; padding: 24px 40px 24px 22px; border-inline-start: 1px solid var(--line); }
.atlas-portals a:last-child { border-inline-end: 1px solid var(--line); }
.atlas-portals b { font: 400 clamp(20px,2.1vw,32px)/1.15 var(--display); }
.atlas-portals span { margin-top: 5px; font: 13px/1.5 var(--sans); color: var(--muted); }
.atlas-portals i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 20px var(--sans); }
.atlas-portals a:hover, .timeline summary:hover { background: var(--panel); }
.atlas-section { max-width: 1800px; margin: auto; padding: clamp(45px,5.5vw,90px) 5.5%; }
.atlas-heading { max-width: 960px; margin-bottom: 34px; }
.atlas-heading .atlas-kicker { color: var(--muted); }
.atlas-heading :is(h1,h2) { margin: .17em 0 .22em; font-size: clamp(48px,6.3vw,100px); line-height: 1.03; overflow-wrap: break-word; }
.atlas-heading h2 span { color: var(--accent); }
.atlas-heading > p:last-child { max-width: 61ch; color: var(--muted); font: 18px/1.55 var(--sans); }
.enhanced .atlas-filters { display: grid; grid-template-columns: 2fr repeat(4,minmax(0,1fr)); align-items: end; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.atlas-filters label, .composer form label { color: var(--ink); font: 600 13px/1.4 var(--sans); }
.atlas-filters input, .atlas-filters select, .composer :is(input,select,textarea) { display: block; width: 100%; min-width: 0; border-radius: 8px; margin-top: 7px; background: var(--paper); font: 400 15px/1.4 var(--sans); color: var(--ink); }
.atlas-catalog-status { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font: 13px var(--sans); color: var(--muted); }
.atlas-catalog-status button { font: inherit; text-decoration: underline; }
.atlas-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 35px 20px; }
.atlas-grid .art-card { min-width: 0; }
.atlas-grid .art-card a { display: block; }
.atlas-card-image { overflow: hidden; background: var(--panel); border-radius: 4px; }
.atlas-card-image img, .atlas-card-image > .institution-plate { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; }
.atlas-card-image img { transition: transform .27s; }
.art-card[data-id="joconde"] img, .art-card[data-id="samothrace"] img, .art-card[data-id="migrante"] img { object-position: center 30%; }
.atlas-grid .atlas-card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; margin-top: 13px; }
.atlas-card-meta span { font: 600 10px/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.atlas-grid .art-card h3 { margin: 5px 0; font: 400 clamp(21px,1.7vw,30px)/1.12 var(--display); letter-spacing: -.025em; }
.atlas-grid .art-card p, .atlas-grid .art-card small { margin: 0; font: 13px/1.45 var(--sans); color: var(--muted); }
.institution-plate, .art-card span.institution-plate { display: flex; position: relative; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 110px; padding: 22px; background: #263e3f; color: #e0edaa; }
.institution-plate > span, .art-card .institution-plate > span { color: inherit; font: 400 clamp(19px,2vw,34px)/1.15 var(--display); max-width: 16ch; }
.institution-plate i { align-self: end; font: 24px/1 var(--sans); }
.atlas-more { display: flex; align-items: center; gap: 20px; margin: 32px auto 0; padding: 10px 20px; border: 1px solid var(--line); border-radius: 24px; font: 600 14px var(--sans); }
.atlas-selection { max-width: 760px; margin: 30px auto 0; padding: 12px 0; border-block: 1px solid var(--line); font: 15px/1.6 var(--sans); }
.atlas-selection summary, .look-closer summary, .timeline summary { cursor:pointer; }
.atlas-selection p { margin: 10px 0; }
.enhanced body[data-page="home"] .atlas-route { display: none; }
.atlas-switch { display:none; }
.enhanced body:is([data-page="classics"],[data-page="timeline"],[data-page="tours"]) .atlas-switch {
    display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; padding:10px 5.5%;
    border-bottom:1px solid var(--line); font:600 14px/1.4 var(--sans);
}
.atlas-switch a { display:inline-flex; align-items:center; min-height:44px; padding:7px 12px; border-radius:24px; }
.atlas-switch a[aria-current] { background:var(--atlas-night); color:var(--atlas-lime); }
.enhanced body[data-page="classics"] #home > :not(#collection):not(.atlas-switch),
.enhanced body[data-page="timeline"] #home > :not(#frise):not(.atlas-switch),
.enhanced body[data-page="tours"] #home > :not(#visites):not(.atlas-switch) { display: none; }
body[data-page="timeline"] #frise, body[data-page="tours"] #visites, body[data-page="classics"] #collection { min-height: 72vh; }
.visit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.visit-tile { display: flex; flex-direction: column; overflow: hidden; background: #163c3e; color: #fff9ea; border-radius: 8px; }
.visit-tile:nth-child(2) { background: #51382c; }
.visit-tile:nth-child(3) { background: #293a33; }
.visit-tile > div { background: #cfc8b8; height: clamp(160px,21vw,310px); overflow:hidden; }
.visit-tile img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 35%; }
.visit-tile:nth-child(3) img { object-position: 50% 43%; }
.visit-tile section { display: flex; flex-direction: column; align-items: start; flex: 1; padding: clamp(18px,2vw,34px); }
.visit-tile h3 { font: 400 clamp(28px,3vw,50px)/1.05 var(--display); }
.visit-tile section p { margin: 17px 0 22px; font: 15px/1.55 var(--sans); color: #f0ecde; }
.visit-tile strong { margin-top: auto; border-bottom: 1px solid #bbc5a8; padding-bottom: 4px; font: 600 14px/1.5 var(--sans); }
.timeline { border-top: 1px solid var(--line); }
.enhanced #timeline-filters { display:flex; flex-wrap:wrap; align-items:end; padding:0 0 18px; border:0; }
#timeline-filters label { flex:0 1 220px; }
#timeline-filters :is(p,button) { font:13px/1.5 var(--sans); align-self:end; padding:12px 4px; }
#timeline-filters button { text-decoration:underline; }
.timeline-period { border-bottom: 1px solid var(--line); }
.timeline-period > summary { display: grid; grid-template-columns: 1fr auto 24px; gap: 16px; align-items: center; padding: 20px 8px; list-style: none; }
.timeline-period > summary::-webkit-details-marker { display: none; }
.timeline-period summary strong { font: 400 clamp(26px,3vw,44px)/1.1 var(--display); }
.timeline-period summary small { color: var(--muted); font: 13px var(--sans); }
.timeline-period summary i::before { content: '+'; }
.timeline-period[open] summary i::before { content: '−'; }
.timeline-tracks { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(170px,100%),1fr)); gap: 10px; padding: 5px 0 25px; }
.timeline-tracks section { min-width: 0; padding: 16px; background: var(--panel); border-top: 3px solid #6b8473; }
.timeline-tracks h3 { font: 650 14px var(--sans); }
.timeline-tracks ul { list-style: none; padding: 0; margin: 14px 0 0; }
.timeline-tracks a { display: block; padding: 8px 0; border-top: 1px solid var(--line); font: 17px/1.3 var(--serif); }
.timeline-tracks a:hover, .atlas-source a, .atlas-credit a { text-decoration: underline; text-underline-offset: 3px; }
.timeline-tracks small { display: block; font: 11px/1.5 var(--sans); color: var(--muted); }
.track-image { margin:4px 0 10px; }
.track-image img { width:100%; aspect-ratio:1.6; object-fit:cover; border-radius:3px; }
.atlas-work { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 5%; align-items: start; padding: 35px 5.5% 65px; }
.atlas-work-art > img { width: 100%; max-height: 76vh; object-fit: contain; background: var(--panel); }
.atlas-credit, .atlas-source { display:block; color: var(--muted); font: 12px/1.6 var(--sans); }
.atlas-credit { padding: 8px 0; }
.atlas-work-copy h1 { font-size: clamp(40px,5vw,84px); margin: .2em 0; overflow-wrap: anywhere; }
.work-byline { font: 21px/1.4 var(--serif); }
.work-facts { margin: 25px 0; border-block: 1px solid var(--line); font: 14px/1.5 var(--sans); }
.work-facts > div { display: grid; grid-template-columns: minmax(55px,.26fr) 1fr; gap: 14px; margin: 10px 0; }
.work-facts dt { color: var(--muted); }
.work-facts dd { margin: 0; }
.work-context { font-size: 19px; line-height: 1.65; }
.look-closer { margin: 18px 0; background: var(--panel); padding: 16px 20px; border-left: 3px solid var(--accent); }
.look-closer summary { font: 600 16px/1.5 var(--sans); }
.look-closer p { margin-top: 12px; }
.atlas-work .reader-actions { margin: 20px 0; }
.atlas-source { margin: 18px 0; }
.museum-window { background: var(--atlas-night); color: #fff9ee; min-height: 300px; padding: clamp(22px,4vw,58px); display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 15px; }
.museum-window > p,.museum-window small { font: 14px/1.5 var(--sans); }
.museum-window h2 { font: italic 400 clamp(45px,5vw,85px)/1.05 var(--display); overflow-wrap:anywhere; }
.tour-room { background: var(--atlas-night); color: #f9f5e7; padding: clamp(30px,4vw,65px) 5.5%; }
.tour-room > header { display: grid; grid-template-columns: 1fr auto; gap: 10px 26px; align-items: end; margin-bottom: 24px; }
.tour-room > header .atlas-kicker { grid-column: 1/-1; color: var(--atlas-lime); }
.tour-room h1 { font-size: clamp(42px,4.5vw,74px); }
.tour-room > header nav { display:flex; gap:5px; }
.tour-room > header nav a { display:grid; place-items:center; width:44px; height:44px; border:1px solid #82928b; border-radius:50%; font:15px var(--sans); }
.tour-room > header nav [aria-current] { background: var(--atlas-lime); color:var(--atlas-night); }
.tour-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 5%; }
.tour-layout figure > img { width:100%; height:clamp(270px,40vw,550px); object-fit:contain; background:#0e2426; }
.tour-layout figcaption { padding-top: 10px; font: 17px/1.45 var(--serif); }
.tour-layout figcaption > span { display:block; color:#cbd5c9; font:12px/1.5 var(--sans); }
.tour-copy .atlas-kicker { color: var(--atlas-lime); }
.tour-copy h2, .tour-question legend { margin: 14px 0; font: 400 clamp(27px,3.1vw,52px)/1.12 var(--display); }
.tour-copy .look-closer { color: var(--atlas-night); background:#e7ebd9; border-color:var(--atlas-lime); }
.tour-next { display:flex; flex-wrap:wrap; gap:15px; justify-content:space-between; border-top:1px solid #6e817b; margin-top:25px; padding-top:12px; }
.tour-next a { display:inline-flex; align-items:center; min-height:44px; color:var(--atlas-lime); font:600 15px var(--sans); }
.tour-question fieldset { border:0; padding:0; margin:0 0 18px; min-width:0; }
.tour-question label { display:flex; align-items:center; gap:12px; min-height:46px; padding:9px 0; font:16px/1.4 var(--sans); }
.tour-question input { flex:none; width:18px; min-height:18px; height:18px; accent-color:#a4b941; }
.tour-feedback { margin-top:16px; padding:14px; color:#142e30; background:#f4ddc3; font:16px/1.55 var(--sans); }
.tour-feedback[data-correct="true"] { background:#dfedab; }
.composer { max-width:1550px; }
.composer form > label { display:inline-block; width:min(440px,100%); margin:0 12px 20px 0; vertical-align:bottom; }
.compose-pieces { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:12px 0 22px; }
.compose-pieces fieldset { min-width:0; margin:0; padding:18px; border:1px solid var(--line); }
.compose-pieces legend { padding:0 6px; font:22px var(--display); }
.compose-pieces label { margin:14px 0 0; }
.compose-preview:empty { display:none; }
.compose-view { display:block; }
.compose-view > img,.compose-view > .institution-plate { width:100%; height:170px; object-fit:contain; }
.compose-view > img { background:var(--panel); }
.compose-view > span:last-child { display:block; margin-top:6px; text-decoration:underline; font:600 13px/1.5 var(--sans); }
.compose-preview p { margin-top:5px; font:12px/1.4 var(--sans); color:var(--muted); }
.compose-error:not(:empty) { padding:12px; margin-bottom:16px; border-left:3px solid var(--accent); }
.galerie[data-theme="dark"] .composer .atlas-button, .galerie[data-theme="dark"] .museum-controls .atlas-button { background:var(--atlas-lime); color:var(--atlas-night); }
.galerie :is(.atlas-hero,.tour-room,.museum-window,.visit-tile) :focus-visible { outline:3px solid #ffe688; outline-offset:3px; }
@media(max-width:1000px){
    .masthead nav { gap:14px; }
    .wordmark { gap:10px; }
    .atlas-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .enhanced .atlas-filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .atlas-search { grid-column:1/-1; }
}
@media(max-width:720px){
    .atlas-hero.hero { grid-template-columns:1fr; padding:30px 6% 25px; gap:22px; }
    .atlas-hero.hero h1 { font-size:clamp(66px,12vw,85px); }
    .atlas-hanging { width:min(100%,430px); margin:auto; padding:0 4% 4% 13%; }
    .wave-print img { aspect-ratio:1.86; object-position:50% 40%; }
    .statue-print { width:23%; left:4%; }
    .atlas-buttons { margin-top:18px; gap:8px 15px; }
    .atlas-buttons a { font-size:14px; gap:10px; }
    .atlas-buttons .atlas-button { padding-inline:15px; }
    .atlas-portals { padding:0 3%; }
    .atlas-portals a { padding:14px 8px; }
    .atlas-portals b { font:600 14px/1.3 var(--sans); }
    .atlas-portals span { font-size:11px; }
    .atlas-portals i { display:none; }
    .atlas-section { padding-inline:5%; }
    .atlas-heading { margin-bottom:23px; }
    .atlas-heading > p:last-child { font-size:16px; }
    .atlas-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 12px; }
    .atlas-grid .art-card h3 { font-size:21px; }
    .atlas-card-meta span { font-size:9px; }
    .enhanced .atlas-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .visit-grid,.compose-pieces,.atlas-work,.tour-layout { grid-template-columns:minmax(0,1fr); }
    .visit-tile { display:grid; grid-template-columns:.75fr 1fr; }
    .visit-tile > div { height:100%; min-height:190px; }
    .visit-tile section { padding:16px; }
    .visit-tile section p { font-size:13px; margin:10px 0; }
    .visit-tile h3 { font-size:26px; }
    .atlas-work { gap:20px; padding-inline:5%; }
    .atlas-work-art > img { max-height:52vh; }
    .tour-room > header { grid-template-columns:1fr; align-items:start; }
    .tour-layout figure > img { max-height:34vh; }
    .tour-copy { margin-top:18px; }
    .tour-room > header nav a { width:44px; height:44px; }
    .composer form > label { margin-right:0; }
}
@media(max-width:600px){
    #timeline-filters label { flex:1 1 40%; }
    .enhanced body:is([data-page="classics"],[data-page="timeline"],[data-page="tours"]) .atlas-switch { gap:0 2px; padding:5px 3%; font-size:12px; }
    .atlas-switch a { padding-inline:8px; }
    .masthead { padding-bottom:4px; height:auto; min-height:102px; }
    .masthead nav { display:flex; width:100%; flex-wrap:wrap; justify-content:space-between; gap:0 4px; }
    .masthead nav>a { font-size:clamp(13px,3.6vw,16px); min-height:44px; }
}
@media(prefers-reduced-motion:reduce){.atlas-card-image img {transition:none;}}
