/* Reportage autonome : aucune feuille globale ni aucun autre reportage modifié. */
.memory-story{--ink:#263138;--paper:#efe9df;--muted:#555d5c;margin:0;background:var(--paper);color:var(--ink);font-family:"Instrument Sans",sans-serif;font-size:18px;line-height:1.75}
.memory-story *{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:2rem}
.memory-story :where(h1,h2,h3,h4,p,figure,blockquote,dl,dd){margin:0}
.memory-story a{color:inherit;text-underline-offset:.25em}
.memory-story a:hover{text-decoration-thickness:2px}
.memory-story :where(a,button,summary):focus-visible{outline:3px solid currentColor;outline-offset:5px}
.memory-story :where(a,button,summary){touch-action:manipulation}
.memory-story img{display:block;max-width:100%;height:auto}
.memory-story :where(h1,h2,h3){text-wrap:balance;font-weight:400;line-height:1.12;letter-spacing:-.035em}
.memory-story :where(p,li,dd,h2,h3,code){overflow-wrap:anywhere}
.memory-story .wide{width:min(1200px,calc(100% - 6rem));margin-inline:auto}
.memory-story .reading{width:min(660px,calc(100% - 3rem));margin-inline:auto}
.memory-story .label{font-family:"Syne",sans-serif;font-size:.69rem;font-weight:600;letter-spacing:.13em;text-transform:uppercase;line-height:1.65}
.memory-story .site-header,.memory-story .site-footer{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:1.5rem clamp(1.5rem,4vw,4rem);background:#101820;color:#f0ede7}
.memory-story .site-header{background:#efe9df;color:#263138}.memory-story .brand img{width:155px}
.memory-story .site-header nav,.memory-story .site-footer nav{display:flex;gap:1rem 2rem;flex-wrap:wrap;font-size:.85rem}
.memory-story .skip-link{position:fixed;z-index:10;top:1rem;left:1rem;transform:translateY(-200%);background:#fff;color:#101820;padding:1rem}
.memory-story .skip-link:focus{transform:none}
.memory-story .opening{padding-top:clamp(3rem,7vw,7rem)}
.memory-story .opening-type{position:relative;padding-bottom:3.5rem}
.memory-story h1{font-family:"Syne",sans-serif;font-weight:600;font-size:clamp(3.3rem,8.8vw,8.5rem);line-height:.99;letter-spacing:-.065em;max-width:1000px;margin:1.6rem 0 2rem}
.memory-story .subtitle{max-width:38rem;font-family:Georgia,serif;font-size:clamp(1.15rem,2vw,1.6rem);line-height:1.55;color:#4e5554}
.memory-story .panorama{width:100%;margin:0 auto}
.memory-story .panorama img{width:100%;max-width:2640px;margin:auto}
.memory-story figcaption{font-size:.72rem;line-height:1.6;padding-top:.85rem;letter-spacing:.025em;color:inherit}
.memory-story .panorama figcaption{padding:.85rem 1.5rem 0;max-width:1200px;margin:auto}
.memory-story .opening-note{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding-block:3rem 5rem}
.memory-story .opening-note p{max-width:34rem;font-family:Georgia,serif;font-size:1.5rem;line-height:1.5}
.memory-story .opening-note a{font-size:.8rem;white-space:nowrap}
.memory-story .contents{padding-block:3rem 6rem}
.memory-story .contents h2{font-family:"Syne",sans-serif;font-size:clamp(1.8rem,3vw,3rem);margin:1rem 0 2rem}
.memory-story .contents ol{list-style:none;padding:0;max-width:900px;margin:0}
.memory-story .contents a{display:flex;align-items:baseline;gap:1.5rem;padding:.85rem 0;text-decoration:none}
.memory-story .contents a:hover{text-decoration:underline}
.memory-story .contents span{font-family:"Syne",sans-serif;font-size:.7rem;color:#685b49}
.memory-story .chapter{padding-block:clamp(4rem,8vw,8rem);display:flow-root}
.memory-story .chapter-0{background:linear-gradient(#efe9df,#e8dfd0)}
.memory-story .chapter-1{background:linear-gradient(#e8dfd0,#ded5c8)}
.memory-story .chapter-2{background:linear-gradient(#ded5c8,#ced3d1)}
.memory-story .chapter-3{background:linear-gradient(#ced3d1,#b8c8cb)}
.memory-story .chapter-4{background:linear-gradient(#b8c8cb,#a2bec5)}
.memory-story .chapter-5{background:linear-gradient(#a2bec5,#c2cecb)}
.memory-story .chapter-6{background:linear-gradient(#c2cecb,#efe9df)}
.memory-story .chapter-heading{margin-bottom:4rem}
.memory-story .chapter-heading h2{font-family:"Syne",sans-serif;font-size:clamp(2rem,4.6vw,4.4rem);font-weight:600;max-width:1050px;margin-top:1rem}
.memory-story .manuscript{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.1rem,1.5vw,1.25rem);line-height:1.95}
.memory-story .manuscript>*+*{margin-top:1.5rem}
.memory-story .manuscript h3{font-family:"Syne",sans-serif;font-size:clamp(1.5rem,2.5vw,2rem);font-weight:600;line-height:1.35;margin-top:3.5rem;margin-bottom:1.75rem;letter-spacing:-.025em}
.memory-story .manuscript strong{font-weight:bold}
.memory-story .manuscript>p:last-child strong{display:block;font-size:1.25em;line-height:1.6;margin-top:2.5rem}
.memory-story code{font-size:.84em;white-space:normal}
.memory-story .image-spread{margin-block:4rem}
.memory-story .image-spread>.label{margin-bottom:1.5rem}
.memory-story .photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;align-items:start}
.memory-story .photo-grid:has(>.photo:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
.memory-story .photo{min-width:0}
.memory-story .photo img{width:auto;max-width:100%;margin:auto}
.memory-story .photo figcaption{display:flex;justify-content:space-between;gap:.5rem}
.memory-story .contact{background:#303431;color:#f2eee6;padding:clamp(1.25rem,3vw,3rem);margin-block:4rem}
.memory-story .notice{font-family:"Instrument Sans",sans-serif;font-size:.86rem;line-height:1.7;max-width:50rem;margin-top:1rem}
.memory-story .contact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.75rem 1.25rem;margin-top:2rem}
.memory-story .contact-grid figcaption{font-size:.65rem}
.memory-story .contact-grid figcaption span{white-space:nowrap}
.memory-story .tree,.memory-story .document,.memory-story .library{padding:clamp(1.25rem,4vw,3rem);margin-block:4rem;background:#eaf0ed;color:#263e49}
.memory-story :where(.tree,.document,.library) h3{font-family:"Syne",sans-serif;font-size:clamp(1.65rem,3vw,2.5rem);font-weight:600;margin-top:.75rem}
.memory-story .tree ul{list-style:none;padding-left:1rem}
.memory-story .tree>ul{padding-left:0;margin-block:2rem}
.memory-story .tree li{margin-top:1.5rem}
.memory-story .tree span{display:block;font-size:.85rem}
.memory-story .tree-order{font-size:.85rem;line-height:1.9}
.memory-story .document-layout{display:grid;grid-template-columns:220px minmax(0,660px);gap:clamp(2rem,5vw,5rem);justify-content:center;align-items:start}
.memory-story .reference{padding-top:.5rem;font-size:.85rem;line-height:1.7}
.memory-story .reference h3{font-family:"Syne",sans-serif;font-size:1.4rem;font-weight:600;margin:1rem 0 1.5rem}
.memory-story .reference dt{font-family:"Syne",sans-serif;font-weight:600;margin-top:1.5rem}
.memory-story .document dl{margin-top:1.25rem}
.memory-story .document dl>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1rem;padding:.65rem 0;font-size:.9rem;line-height:1.65}
.memory-story .document dt{font-weight:bold}
.memory-story .document summary{cursor:pointer;padding:1rem 0;font-size:.9rem;font-weight:bold;min-height:44px}
.memory-story .filters{display:flex;flex-wrap:wrap;gap:.65rem;margin:2rem 0 1rem}
.memory-story .filters :where(a,button){font:inherit;font-size:.85rem;border:1px solid #48636c;padding:.6rem 1rem;min-height:44px;border-radius:2rem;background:transparent;color:inherit;text-decoration:none;cursor:pointer}
.memory-story .filters :where(a,button):hover{background:#d2e0de}
.memory-story .filters button[aria-pressed="true"]{background:#263e49;color:#fff;border-color:#263e49;box-shadow:0 0 0 2px #eaf0ed,0 0 0 3px #263e49}
.memory-story .library{background:#263e49;color:#f0ede7}.memory-story .library .filters button{border-color:#b6c9cc}.memory-story .library .filters button:hover{background:#385661}.memory-story .library .filters button[aria-pressed="true"]{background:#efe9df;color:#263e49;border-color:#efe9df;box-shadow:0 0 0 2px #263e49,0 0 0 3px #efe9df}.memory-story .document>.panorama{margin-block:2rem}.memory-story .document .panorama figcaption{padding-inline:0}.memory-story .library-status{font-size:.8rem;min-height:1.8em}
.memory-story .sequence{margin-top:2rem}
.memory-story .sequence h4{font-family:"Syne",sans-serif;font-size:1.2rem;margin-bottom:1.5rem}
.memory-story [hidden]{display:none!important}
.memory-story .conclusion{padding-block:1rem 6rem;background:#efe9df}
.memory-story .document-final{margin-bottom:5rem}
.memory-story .document-final.is-receding{opacity:.28;transition:opacity 1.2s ease}
.memory-story .document-final:is(:hover,:focus-within){opacity:1}
.memory-story .closing-quote{font-family:Georgia,serif;font-style:italic;font-size:clamp(1.5rem,2.8vw,2.4rem);line-height:1.6;text-align:center;margin-top:clamp(3rem,8vw,7rem)}
.memory-story .site-footer{font-size:.8rem;padding-block:2.5rem}
@media(min-width:1500px){.memory-story .wide{width:min(1320px,calc(100% - 8rem))}}
@media(max-width:1024px){.memory-story .wide{width:calc(100% - 4rem)}.memory-story .document-layout{grid-template-columns:175px minmax(0,1fr);gap:2rem}.memory-story .contact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.memory-story .photo-grid{gap:1.25rem}}
@media(max-width:820px){.memory-story .document-layout{display:flex;flex-direction:column;gap:3rem}.memory-story .reference{max-width:660px;width:100%;margin-inline:auto}.memory-story .reference dl{display:grid;grid-template-columns:4rem minmax(0,1fr);gap:.8rem 1rem}.memory-story .reference dt{margin:0}.memory-story .reference h3{margin-bottom:1rem}.memory-story .document-layout .manuscript{max-width:660px;margin:auto}.memory-story .opening-note{align-items:start;flex-direction:column}.memory-story .contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.memory-story .wide,.memory-story .reading{width:calc(100% - 2.5rem)}.memory-story .site-header{gap:1rem;align-items:start;padding:1.25rem}.memory-story .brand img{width:115px}.memory-story .site-header nav{flex-direction:column;gap:.5rem;font-size:.75rem}.memory-story .opening-type{padding-bottom:2rem}.memory-story h1{font-size:clamp(3rem,12vw,4.5rem)}.memory-story .opening-note{padding-block:2rem 3rem}.memory-story .opening-note p{font-size:1.3rem}.memory-story .contents{padding-block:2rem 3rem}.memory-story .contents a{gap:.85rem;font-size:.95rem}.memory-story .chapter-heading{margin-bottom:2.5rem}.memory-story .photo-grid,.memory-story .photo-grid:has(>.photo:nth-child(3)){grid-template-columns:1fr;gap:2rem}.memory-story .image-spread{margin-block:3rem}.memory-story .contact-grid{gap:1.5rem .75rem}.memory-story .contact-grid figcaption{display:block;font-size:.6rem}.memory-story .contact-grid figcaption span{display:block}.memory-story .document dl>div{grid-template-columns:1fr;gap:.15rem}.memory-story .document-layout{gap:2rem}.memory-story .site-footer{flex-direction:column;align-items:start}.memory-story .site-footer nav{gap:1rem}.memory-story .filters{gap:.7rem}.memory-story .filters button{font-size:.8rem;padding:.6rem .9rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.memory-story .document-final.is-receding{opacity:1;transition:none}}
@media print{.memory-story .site-header,.memory-story .filters,.memory-story .site-footer{display:none}.memory-story .sequence[hidden]{display:block!important}.memory-story .document-final.is-receding{opacity:1}.memory-story .chapter{background:white!important;color:#000;break-before:page}.memory-story .photo{break-inside:avoid}}

/* Illustrations de marge : la colonne éditoriale conserve sa largeur et sa position. */
.memory-story .margin-anchor{position:relative}
.memory-story .manuscript>.margin-anchor-heading{margin-top:3.5rem;margin-bottom:1.75rem}
.memory-story .manuscript .margin-anchor>h3{margin:0}
.memory-story .margin-photo{width:min(240px,100%);margin:1.5rem 0;font-family:"Instrument Sans",sans-serif;line-height:1.6}
.memory-story .margin-anchor-start>.margin-photo{margin-top:0}
.memory-story .margin-photo img{width:100%;height:auto}
.memory-story .margin-photo figcaption{display:flex;justify-content:space-between;gap:.5rem;font-size:.7rem}
@media(min-width:1000px){
 .memory-story .margin-photo{position:absolute;top:0;right:calc(100% + 2rem);width:min(220px,calc((100vw - 660px)/2 - 3rem));margin:0}
 .memory-story .document-layout .margin-photo{width:220px;right:calc(100% + clamp(2rem,5vw,5rem))}
}
@media(min-width:1000px) and (max-width:1024px){
 .memory-story .document-layout .margin-photo{width:175px;right:calc(100% + 2rem)}
}

/* Chapitre VI : ajout de la vue 18 sous la vue 17, conservée à sa place. */
.memory-story .margin-opening-stack{display:grid;gap:1.5rem;width:min(240px,100%);margin:0 0 1.5rem}
.memory-story .margin-opening-stack>.margin-photo{position:static;width:100%;margin:0}
@media(min-width:1000px){
 .memory-story .margin-opening-stack{position:absolute;top:0;right:calc(100% + 2rem);width:min(220px,calc((100vw - 660px)/2 - 3rem));margin:0}
}

/* Relief des seuls tirages libres ; aucune ombre sur les composants encadrés. */
.memory-story .phototheque-photo-relief{
 box-shadow:0 4px 10px rgba(16,24,32,.10),0 12px 26px rgba(16,24,32,.12);
}

/* Aperçu hors du flux : le texte et les proportions des photographies restent intacts. */
.memory-story .likoni-reference{font:inherit;color:inherit;background:none;border:0;border-radius:2px;padding:0;margin:0;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:.2em}
.memory-story .likoni-reference:hover{ text-decoration-style:solid }
.memory-story .likoni-preview{position:fixed;z-index:30;width:300px;padding:12px;background:#f0ede7;color:#101820;border:1px solid #718995;border-radius:6px;box-shadow:0 8px 28px #10182030;overflow:auto;animation:likoni-preview-in 100ms ease-out}
.memory-story .likoni-preview img{width:auto;height:auto;max-width:100%;max-height:280px;object-fit:contain;margin-inline:auto}
.memory-story .likoni-preview figcaption{font-family:"Instrument Sans",sans-serif;font-size:.75rem;padding-top:8px}
.memory-story .likoni-preview-close{display:block;margin:0 0 6px auto;width:32px;height:32px;border:1px solid #718995;border-radius:50%;background:transparent;color:inherit;font:24px/1 "Instrument Sans",sans-serif;cursor:pointer}
@keyframes likoni-preview-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.memory-story .likoni-preview{animation:none}}
@media print{.memory-story .likoni-preview{display:none!important}.memory-story .likoni-reference{text-decoration:none}}

/* Correction 002 : seuls les paragraphes consécutifs sont rapprochés. */
.memory-story .manuscript > p + p { margin-top: 0; }
