.public-album-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px}.public-album-card{overflow:hidden;border:1px solid var(--color-border);border-radius:var(--radius-medium);background:var(--color-surface);box-shadow:var(--shadow-soft);transition:transform .2s ease,box-shadow .2s ease}.public-album-card:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(62,57,47,.16)}.public-album-cover{display:grid;place-items:center;aspect-ratio:1.55;background:var(--color-background-soft);color:var(--color-primary);font-size:18px;font-weight:700}.public-album-cover img{width:100%;height:100%;object-fit:cover}.public-album-copy{padding:20px}.public-album-copy h2{margin-bottom:8px;font-size:22px}.public-album-copy p{min-height:44px;color:var(--color-text-muted);font-size:14px}.public-album-copy span,.photo-date{color:var(--color-text-muted);font-size:13px}.back-link{display:inline-block;margin-bottom:24px;color:var(--color-primary);font-weight:700}.album-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.album-photo-card{position:relative;overflow:hidden;aspect-ratio:1.25;border-radius:var(--radius-small);background:var(--color-background-soft)}.album-photo-card img{width:100%;height:100%;object-fit:cover}.album-photo-card span{position:absolute;right:0;bottom:0;left:0;padding:28px 12px 10px;background:linear-gradient(transparent,rgba(41,39,31,.75));color:white;font-size:14px}.public-photo-view{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,.7fr);gap:32px;align-items:start}.public-photo-view>img{width:100%;max-height:75vh;object-fit:contain;background:var(--color-background-soft)}.public-photo-view h1{font-size:clamp(28px,4vw,42px)}.empty-gallery{margin:0}.photo-card{cursor:pointer}.photo-card:hover img{opacity:.92}@media(max-width:700px){.public-photo-view{grid-template-columns:1fr}.public-photo-view>img{max-height:60vh}}
.photo-modal{width:min(96vw,1500px);height:min(96vh,1100px);max-width:none;max-height:none;padding:12px;border:1px solid var(--color-border);border-radius:var(--radius-medium);background:var(--color-surface);color:var(--color-text)}.photo-modal::backdrop{background:rgba(24,23,19,.88)}.photo-modal[open]{display:flex;flex-direction:column;gap:10px}.photo-modal-toolbar{display:grid;grid-template-columns:44px 1fr auto 44px;align-items:center;gap:10px;min-height:46px}.photo-modal-toolbar p{margin:0;text-align:center;font-weight:700}.photo-modal-actions{display:flex;gap:8px}.photo-modal-button,.photo-modal-arrow{min-height:40px;padding:8px 14px;border:1px solid var(--color-border);border-radius:var(--radius-small);background:var(--color-background);color:var(--color-text);font:inherit;cursor:pointer}.photo-modal-arrow{font-size:22px;font-weight:700}.photo-modal-button:hover,.photo-modal-arrow:hover{background:var(--color-background-soft)}.photo-modal-stage{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;overflow:auto;background:var(--color-background-dark)}.photo-modal-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in}.photo-modal-stage.zoomed{display:block;text-align:center}.photo-modal-stage.zoomed img{max-width:none;max-height:none;margin:0 auto;object-fit:initial;cursor:zoom-out}.photo-modal-size{margin:0;text-align:center;color:var(--color-text-muted);font-size:12px}@media(max-width:600px){.photo-modal{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:8px}.photo-modal-toolbar{grid-template-columns:38px 1fr 38px;gap:5px}.photo-modal-toolbar p{font-size:12px}.photo-modal-actions{grid-column:1/4;grid-row:2;justify-content:center}.photo-modal-arrow{grid-row:1}.photo-modal-arrow:first-child{grid-column:1}.photo-modal-arrow:last-child{grid-column:3}.photo-modal-stage{min-height:0}.photo-modal-button{min-height:36px}}
/* Visionneuse en deux panneaux, dans la palette lin et olive du site. */
.photo-modal{inset:2vh 2vw;width:96vw;height:96vh;max-width:none;max-height:none;padding:0;border:1px solid var(--color-border);border-radius:var(--radius-medium);overflow:hidden;background:var(--color-surface);color:var(--color-text)}
.photo-modal::backdrop{background:rgba(24,23,19,.88)}
.photo-modal[open]{display:flex;flex-direction:row;gap:0}
.photo-modal-stage{position:relative;display:flex;flex:1 1 auto;min-width:0;min-height:0;align-items:center;justify-content:center;overflow:auto;background:var(--color-background-dark)}
.photo-modal-stage>img{display:block;max-width:calc(100% - 96px);max-height:calc(100% - 92px);object-fit:contain;cursor:zoom-in}
.photo-modal-stage.zoomed{display:block;text-align:center}
.photo-modal-stage.zoomed>img{max-width:none;max-height:none;margin:56px auto 48px;object-fit:initial;cursor:zoom-out}
.photo-modal-topbar{position:absolute;z-index:2;top:0;right:0;left:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:linear-gradient(rgba(20,19,16,.8),transparent);color:#fff}
.photo-modal-topbar p{margin:0;flex:1;text-align:center;font-weight:700}
.photo-modal-button,.photo-modal-arrow{min-height:40px;padding:8px 14px;border:1px solid var(--color-border);border-radius:var(--radius-small);background:var(--color-surface);color:var(--color-text);font:inherit;cursor:pointer}
.photo-modal-button:hover,.photo-modal-arrow:hover{background:var(--color-background-soft)}
.photo-modal-arrow{position:absolute;z-index:2;top:50%;width:44px;height:56px;transform:translateY(-50%);padding:0;font-size:38px;line-height:1}
.photo-modal-prev{left:14px}.photo-modal-next{right:14px}
.photo-modal-size{position:absolute;right:12px;bottom:8px;left:12px;margin:0;text-align:center;color:#fff;font-size:12px;text-shadow:0 1px 3px #000}
.photo-info-panel{display:flex;flex:0 0 360px;flex-direction:column;min-width:0;max-height:100%;overflow:auto;background:var(--color-surface)}
.photo-info-heading{padding:28px 24px 20px;border-bottom:1px solid var(--color-border)}
.photo-info-heading .eyebrow{margin:0 0 10px;font-size:11px;letter-spacing:.12em}
.photo-info-heading h2{margin:0;font-size:23px;line-height:1.25;overflow-wrap:anywhere}
.photo-info-content{flex:1;padding:22px 24px}
.photo-info-description{margin:0 0 26px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.photo-info-meta{display:grid;grid-template-columns:1fr;gap:0;margin:0}
.photo-info-meta dt,.photo-info-meta dd{margin:0;padding:10px 0;border-bottom:1px solid var(--color-border);font-size:14px}
.photo-info-meta dt{color:var(--color-text-muted)}
.photo-info-meta dd{font-weight:600;overflow-wrap:anywhere}
.photo-info-footer{padding:16px 24px;border-top:1px solid var(--color-border)}
@media(max-width:760px){.photo-modal{inset:0;width:100vw;height:100dvh;border:0;border-radius:0}.photo-modal[open]{flex-direction:column}.photo-modal-stage{flex:1 1 62%;min-height:220px}.photo-info-panel{flex:0 1 38%;width:100%;max-height:38%;border-top:1px solid var(--color-border)}.photo-info-heading{padding:12px 16px}.photo-info-heading h2{font-size:19px}.photo-info-heading .eyebrow{margin-bottom:4px}.photo-info-content{padding:12px 16px}.photo-info-description{margin-bottom:12px}.photo-info-meta{grid-template-columns:1fr 1fr;column-gap:16px}.photo-modal-stage>img{max-width:calc(100% - 72px);max-height:calc(100% - 72px)}.photo-modal-stage.zoomed>img{margin-top:58px}.photo-modal-topbar{padding:8px}.photo-modal-button{min-height:36px;padding:6px 10px}}
.album-share-button{margin-top:10px;padding:8px 14px;border:1px solid var(--color-border);border-radius:var(--radius-small);background:var(--color-surface);color:var(--color-text);font:inherit;cursor:pointer}.album-share-button:hover{background:var(--color-background-soft)}

/* Présentation de la galerie publique */
.gallery-page{width:80%;max-width:none;margin:0 auto;padding-top:30px;padding-bottom:32px}
.gallery-viewbar{display:flex;align-items:center;gap:16px;min-height:54px;margin-bottom:12px;padding:8px 12px;border:1px solid var(--color-border);border-radius:var(--radius-medium);background:var(--color-surface);box-shadow:var(--shadow-soft)}
.gallery-view-controls{display:flex;align-items:center;gap:5px}
.gallery-view-controls button{display:grid;place-items:center;width:40px;height:38px;padding:8px;border:1px solid var(--color-border);border-radius:var(--radius-small);background:var(--color-surface);color:var(--color-text-muted);cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.gallery-view-controls button:hover{border-color:var(--color-primary);background:var(--color-background-soft);color:var(--color-primary)}
.gallery-view-controls button[aria-pressed="true"]{border-color:var(--color-primary);background:var(--color-primary);color:#fff}
.gallery-view-controls svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gallery-date-control{display:flex;align-items:center;gap:8px;margin-left:auto;color:var(--color-text-muted);font-size:13px;font-weight:600}
.gallery-date-control select{min-height:36px;padding:6px 30px 6px 10px;border:1px solid var(--color-border);border-radius:var(--radius-small);background:var(--color-surface);color:var(--color-text);font:inherit}
.gallery-years{display:flex;align-items:center;gap:6px;max-width:45%;overflow:auto}
.gallery-years button{flex:none;padding:6px 10px;border:1px solid var(--color-border);border-radius:16px;background:var(--color-surface);color:var(--color-text);font:inherit;font-size:12px;cursor:pointer}
.gallery-years button[aria-pressed="true"]{border-color:var(--color-primary);background:var(--color-primary);color:#fff}
#galerie{min-height:180px;border:1px solid var(--color-border);border-radius:var(--radius-medium);background:var(--color-background-soft);overflow:hidden}
#galerie.empty-gallery{display:grid;place-items:center;padding:30px;color:var(--color-text-muted)}
.photo-row{display:flex;gap:6px;margin:0 0 6px;overflow:hidden}
.photo-card{display:block;flex:none;overflow:hidden;border-radius:3px;background:var(--color-background-dark)}
.photo-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease,opacity .2s ease}
.photo-card:hover img{transform:scale(1.025);opacity:.92}
@media(max-width:700px){.gallery-page{width:calc(100% - 20px);padding-top:18px}.gallery-viewbar{flex-wrap:wrap;gap:8px}.gallery-date-control{margin-left:auto}.gallery-years{order:3;width:100%;max-width:none}.photo-row{gap:3px;margin-bottom:3px}}#galerie.view-cartes{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));align-content:start;gap:12px;padding:12px}
#galerie.view-cartes .photo-row{display:contents}
.view-cartes .photo-card{width:auto!important;height:auto!important;aspect-ratio:1.25;border-radius:var(--radius-small)}
.view-cartes .photo-card img{object-fit:cover}
#galerie.view-pellicule{display:flex;align-items:stretch;overflow-x:auto;overflow-y:hidden;padding:12px;scrollbar-color:var(--color-primary) var(--color-background-soft)}
.view-pellicule .photo-row{width:max-content;flex:none;gap:10px;margin:0;overflow:visible}
.view-pellicule .photo-card{flex:none;border-radius:var(--radius-small)}
@media(max-width:700px){.gallery-page{width:94%}}.gallery-viewbar{position:static;z-index:auto;box-shadow:var(--shadow-soft)}
#galerie{scroll-margin-top:82px}
.gallery-pagination{display:flex;align-items:center;justify-content:center;gap:8px;padding:20px 12px;margin:10px 0 0;border:1px solid var(--color-border);border-radius:var(--radius-medium);background:var(--color-surface);box-shadow:var(--shadow-soft)}
.gallery-pagination[hidden]{display:none}
.gallery-pagination button{min-width:38px;height:38px;padding:0 10px;border:1px solid var(--color-border);border-radius:6px;background:var(--color-surface);color:var(--color-text);font:inherit;cursor:pointer}
.gallery-pagination button:hover:not(:disabled),.gallery-pagination button[aria-current="page"]{border-color:var(--color-primary);background:var(--color-primary);color:#fff}
.gallery-pagination button:disabled{opacity:.4;cursor:default}
.gallery-pagination span{padding:0 4px;color:var(--color-text-muted)}

/* Correction de la visionneuse : boîte centrée et dimensions inclusives, sans débordement du dialogue. */
#photo-modal.photo-modal{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(1500px,96vw);height:min(940px,94vh);max-width:96vw;max-height:94vh;padding:0;overflow:hidden}
#photo-modal.photo-modal[open]{display:flex;flex-direction:row;align-items:stretch}
#photo-modal .photo-modal-stage{flex:1 1 0;width:auto;height:auto;min-width:0;min-height:0}
#photo-modal .photo-modal-stage>img{width:auto;height:auto;max-width:calc(100% - 96px);max-height:calc(100% - 92px);object-fit:contain}
#photo-modal .photo-info-panel{flex:0 0 clamp(280px,26vw,360px);width:auto;min-width:0;max-height:100%;box-sizing:border-box}
@media(max-width:760px){#photo-modal.photo-modal{inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;border-radius:0}#photo-modal.photo-modal[open]{flex-direction:column}#photo-modal .photo-modal-stage{flex:1 1 62%;width:100%;min-height:0}#photo-modal .photo-modal-stage>img{max-width:calc(100% - 72px);max-height:calc(100% - 80px)}#photo-modal .photo-info-panel{flex:0 1 38%;width:100%;max-height:38%;border-top:1px solid var(--color-border)}}

/* Modale photo : détails à gauche, image centrée à droite. */
#photo-modal .photo-info-panel{order:0;flex:0 0 clamp(300px,28vw,390px)}
#photo-modal .photo-modal-stage{order:1;overflow:hidden}
#photo-modal .photo-modal-topbar{justify-content:center;padding-left:60px;padding-right:60px}
#photo-modal .photo-modal-topbar>button{position:absolute;left:12px;top:12px}
#photo-modal .photo-modal-caption{font-weight:700}
#photo-modal .photo-modal-stage>img{transform-origin:center center;transition:transform .12s ease-out;user-select:none;-webkit-user-drag:none}
#photo-modal .photo-modal-stage.zoomed>img{max-width:calc(100% - 96px);max-height:calc(100% - 92px);margin:0;cursor:grab}
#photo-modal .photo-modal-arrow{width:52px;height:78px;border:0;border-radius:4px;background:rgba(25,25,27,.78);color:#d0d0d0;font-size:46px;font-weight:300}
#photo-modal .photo-modal-arrow:hover{background:rgba(15,15,17,.92);color:#fff}
#photo-modal .photo-info-heading{padding:22px 20px 12px}
#photo-modal .photo-info-content{padding:12px 20px;overflow:auto}
#photo-modal .photo-info-description{margin:0 0 10px;line-height:1.45}
#photo-modal .photo-info-date{margin:0 0 12px;color:var(--color-text-muted);font-size:13px}
#photo-modal .photo-info-box{margin:0 0 12px;padding:10px 12px;border:1px solid var(--color-border);border-radius:var(--radius-small);background:var(--color-background-soft)}
#photo-modal .photo-info-box h3{margin:0 0 6px;font-size:13px}
#photo-modal .photo-info-meta{grid-template-columns:minmax(70px,auto) 1fr;gap:0 8px}
#photo-modal .photo-info-meta dt,#photo-modal .photo-info-meta dd{padding:4px 0;font-size:11px;line-height:1.3}
#photo-modal .photo-location-box #photo-modal-map{height:180px;border-radius:5px;overflow:hidden}
#photo-modal .photo-modal-coordinates{margin:0 0 6px;font-size:11px;color:var(--color-text-muted)}
@media(max-width:760px){#photo-modal .photo-info-panel{order:0;flex:0 1 42%;max-height:42%}#photo-modal .photo-modal-stage{order:1;flex:1 1 58%}#photo-modal .photo-modal-arrow{width:40px;height:64px}#photo-modal .photo-location-box #photo-modal-map{height:130px}}
/* Ajustements demandés : informations à droite, fermeture compacte, flèches discrètes. */
#photo-modal .photo-info-panel{order:1}
#photo-modal .photo-modal-stage{order:0}
#photo-modal .photo-modal-topbar{padding-left:60px;padding-right:52px}
#photo-modal .photo-modal-topbar>button{left:auto;right:12px;top:10px;width:28px;height:28px;min-height:28px;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(20,20,20,.28);color:#fff;font-size:12px;line-height:1}
#photo-modal .photo-modal-topbar>button:hover{background:rgba(20,20,20,.58)}
#photo-modal .photo-modal-arrow{width:42px;height:68px;border:0;border-radius:5px;background:rgba(20,20,22,.20);color:rgba(255,255,255,.78);font-size:42px;font-weight:300;transition:background .16s ease,color .16s ease}
#photo-modal .photo-modal-arrow:hover{background:rgba(20,20,22,.42);color:#fff}
@media(max-width:760px){#photo-modal .photo-info-panel{order:1}#photo-modal .photo-modal-stage{order:0}}
/* Commandes compactes de la visionneuse. */
#photo-modal .photo-modal-topbar>button{left:12px;right:auto}
#photo-modal .photo-share-icon{display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:8px;border-radius:5px;background:rgba(20,20,22,.2);color:var(--color-text)}
#photo-modal .photo-share-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#photo-modal .photo-share-icon:hover{background:var(--color-background-soft)}
/* Fenêtre de partage, visuelle uniquement pour ses onglets et services. */
.photo-share-modal{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(560px,calc(100vw - 32px));height:min(430px,calc(100dvh - 32px));max-width:none;max-height:none;padding:20px;border:0;border-radius:4px;background:#fff;color:#333;box-shadow:0 12px 40px rgba(0,0,0,.28);font-family:inherit}
.photo-share-modal::backdrop{background:rgba(20,20,20,.42)}
.photo-share-modal[open]{display:block}
.photo-share-modal h2{margin:0 0 12px;font-size:17px;font-weight:400}
.photo-share-close{position:absolute;top:10px;right:12px;border:0;background:none;color:#aeb2b5;font-size:28px;line-height:1;cursor:pointer}
.photo-share-tabs{display:flex;justify-content:center;gap:26px;border-bottom:1px solid #eee}
.photo-share-tabs button{padding:8px 4px 10px;border:0;border-bottom:3px solid transparent;background:none;color:#444;font:inherit;font-size:13px;cursor:default}
.photo-share-tabs button[aria-current="page"]{border-bottom-color:#168bd2}
.photo-share-services{display:flex;justify-content:center;gap:30px;margin:40px 0 48px}
.share-service{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;color:#fff;font-size:34px;font-weight:700;line-height:1}
.share-facebook{background:#3766a1;font-family:Arial,sans-serif}.share-tumblr{background:#40556f;font-family:Georgia,serif;font-size:39px}.share-x{background:#050505;font-size:29px;font-weight:400}.share-pinterest{background:#bd3429;font-family:Georgia,serif;font-style:italic}
.photo-share-link{display:block;width:calc(100% - 40px);height:52px;margin:0 auto;padding:8px 12px;border:1px solid #aeb5ba;border-radius:3px;background:#fff;color:#222;text-align:center;font:inherit;font-size:18px}
@media(max-width:600px){.photo-share-modal{height:370px;padding:18px 14px}.photo-share-tabs{gap:12px}.photo-share-services{gap:18px;margin:34px 0 40px}.share-service{width:44px;height:44px;font-size:29px}.photo-share-link{width:100%;font-size:15px}}
/* Palette Panterad pour la fenêtre de partage. */
.photo-share-modal{border:1px solid var(--color-border);border-radius:var(--radius-medium);background:var(--color-surface);color:var(--color-text);box-shadow:var(--shadow-soft)}
.photo-share-modal::backdrop{background:rgba(41,39,31,.62)}
.photo-share-modal h2{color:var(--color-text);font-weight:600}
.photo-share-close{color:var(--color-text-muted)}
.photo-share-close:hover{color:var(--color-primary)}
.photo-share-tabs{border-bottom-color:var(--color-border)}
.photo-share-tabs button{color:var(--color-text-muted)}
.photo-share-tabs button:hover{color:var(--color-primary)}
.photo-share-tabs button[aria-current="page"]{border-bottom-color:var(--color-primary);color:var(--color-primary)}
.share-facebook{background:var(--color-primary)}.share-tumblr{background:var(--color-background-dark)}.share-x{background:var(--color-text)}.share-pinterest{background:var(--color-accent);color:#fff}
.photo-share-link{border-color:var(--color-border);border-radius:var(--radius-small);background:var(--color-background-soft);color:var(--color-text)}
.photo-share-link:focus{outline:2px solid var(--color-primary);outline-offset:2px}
/* La modale ne montre plus les dimensions ; les flèches restent au bord avec une zone libre autour de l’image. */
#photo-modal .photo-modal-size{display:none}
#photo-modal .photo-modal-prev{left:4px}
#photo-modal .photo-modal-next{right:4px}
#photo-modal .photo-modal-stage>img{max-width:calc(100% - 150px);max-height:calc(100% - 92px)}
#photo-modal .photo-modal-stage.zoomed>img{max-width:calc(100% - 150px);max-height:calc(100% - 92px)}
@media(max-width:760px){#photo-modal .photo-modal-stage>img,#photo-modal .photo-modal-stage.zoomed>img{max-width:calc(100% - 112px);max-height:calc(100% - 80px)}#photo-modal .photo-modal-prev{left:3px}#photo-modal .photo-modal-next{right:3px}}
#photo-modal,#photo-modal *{-webkit-user-select:none;user-select:none}
/* Zoom à 100 % : une dimension CSS par pixel natif de l’original. */
#photo-modal .photo-modal-stage.zoomed{display:flex;align-items:center;justify-content:center;overflow:hidden}
#photo-modal .photo-modal-stage.zoomed>img{flex:none;width:auto;height:auto;max-width:none;max-height:none;margin:0;object-fit:initial;transform-origin:center center;cursor:grab}
/* Les commandes restent fixes dans la fenêtre, indépendamment du bandeau du site. */
.gallery-page{padding-top:86px}
.gallery-viewbar{position:fixed;top:94px;left:50%;z-index:90;width:80%;box-sizing:border-box;margin:0;transform:translateX(-50%);background:var(--color-surface);box-shadow:0 8px 24px rgba(40,36,29,.2)}
@media(max-width:700px){.gallery-page{padding-top:112px}.gallery-viewbar{top:96px;width:94%;flex-wrap:wrap;gap:8px}.gallery-date-control{margin-left:auto}.gallery-years{order:3;width:100%;max-width:none}}
/* Commandes sans bandeau dédié, alignées juste sous l’en-tête du site. */
.gallery-viewbar{top:82px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
@media(max-width:700px){.gallery-viewbar{top:82px}}
/* Zone fixe opaque sous l’en-tête : les photos défilent derrière son fond, jamais derrière les commandes. */
.gallery-viewbar{position:fixed;top:82px;left:0;z-index:90;width:100%;height:96px;box-sizing:border-box;display:flex;align-items:flex-start;padding:28px 10% 0;margin:0;transform:none;border:0;border-radius:0;background:var(--color-background);box-shadow:none}
@media(max-width:700px){.gallery-viewbar{top:82px;width:100%;height:108px;padding:24px 3%;flex-wrap:wrap;gap:8px}}
.gallery-viewbar{left:50%;width:80%;height:72px;padding:20px 0 0;transform:translateX(-50%)}
@media(max-width:700px){.gallery-viewbar{left:50%;width:94%;height:76px;padding:18px 0 0;transform:translateX(-50%);flex-wrap:nowrap;gap:8px}}
/* Aligne les commandes sur la zone intérieure exacte de la galerie (qui tient compte du padding de section). */
.gallery-viewbar{width:calc(80% - var(--page-padding) - var(--page-padding));padding-left:var(--page-padding);padding-right:var(--page-padding)}
@media(max-width:700px){.gallery-viewbar{width:calc(94% - var(--page-padding) - var(--page-padding));padding-left:var(--page-padding);padding-right:var(--page-padding)}}
/* Réduction de 20 % des commandes et de leur zone fixe. */
.gallery-viewbar{height:58px;padding-top:16px}
.gallery-view-controls{gap:4px}
.gallery-view-controls button{width:32px;height:30px;padding:6px}
.gallery-view-controls svg{width:17px;height:17px}
.gallery-date-control{gap:6px;font-size:11px}
.gallery-date-control select{min-height:29px;padding:4px 24px 4px 8px;font-size:11px}
@media(max-width:700px){.gallery-viewbar{height:61px;padding-top:14px}}
/* Vue photos : mêmes rangées justifiées que la mosaïque, avec titre et étoile sous chaque image. */
#galerie.view-cartes{display:flex;flex-direction:column;align-content:stretch;gap:0;padding:0}
#galerie.view-cartes .photo-row{display:flex;gap:6px;margin:0 0 8px;overflow:visible}
#galerie.view-cartes .photo-card{display:flex;flex:none;flex-direction:column;width:var(--photo-card-width)!important;height:var(--photo-card-height)!important;aspect-ratio:auto;border-radius:var(--radius-small);overflow:hidden;background:var(--color-surface);box-shadow:0 2px 8px rgba(40,36,29,.10)}
#galerie.view-cartes .photo-card img{display:block;flex:none;width:100%;height:auto;object-fit:cover}
.photo-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;height:40px;padding:0 10px;color:var(--color-text)}
.photo-card-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}
.photo-card-like{flex:none;color:var(--color-text-muted);font-size:23px;line-height:1}
@media(max-width:700px){#galerie.view-cartes .photo-row{gap:3px;margin-bottom:5px}.photo-card-meta{height:40px;padding:0 7px}.photo-card-title{font-size:11px}.photo-card-like{font-size:20px}}
/* Troisième vue : chronologie à gauche et photos regroupées par jour. */
#galerie.view-pellicule{display:block;overflow:visible;padding:18px;background:var(--color-background)}
.view-pellicule .filmstrip-layout{display:grid;grid-template-columns:118px minmax(0,1fr);gap:24px;align-items:start}
.view-pellicule .filmstrip-timeline{position:sticky;top:174px;display:flex;flex-direction:column;align-items:stretch;max-height:calc(100vh - 190px);overflow:auto;padding:0 6px 12px 0;scrollbar-width:thin}
.view-pellicule .filmstrip-year,.view-pellicule .filmstrip-month{border:0;background:transparent;text-align:left;color:var(--color-text-muted);font:inherit;cursor:pointer}
.view-pellicule .filmstrip-year{padding:5px 0;font-size:14px}
.view-pellicule .filmstrip-year[aria-current="true"]{color:var(--color-primary);font-weight:700}
.view-pellicule .filmstrip-month{position:relative;padding:5px 0 5px 15px;font-size:12px;text-transform:capitalize}
.view-pellicule .filmstrip-month::before{position:absolute;left:0;content:'—';color:var(--color-text-muted)}
.view-pellicule .filmstrip-month:hover,.view-pellicule .filmstrip-year:hover{color:var(--color-primary)}
.view-pellicule .filmstrip-content{min-width:0}
.view-pellicule .filmstrip-date-group{margin:0 0 24px;scroll-margin-top:174px}
.view-pellicule .filmstrip-date-group h2{margin:0 0 10px;color:var(--color-text-muted);font-size:17px;font-weight:500;text-transform:capitalize}
.view-pellicule .filmstrip-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.view-pellicule .filmstrip-photo-card{display:block;aspect-ratio:1;overflow:hidden;border-radius:3px;background:var(--color-background-dark)}
.view-pellicule .filmstrip-photo-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.view-pellicule .filmstrip-photo-card:hover img{transform:scale(1.03)}
@media(max-width:700px){#galerie.view-pellicule{padding:10px}.view-pellicule .filmstrip-layout{grid-template-columns:82px minmax(0,1fr);gap:10px}.view-pellicule .filmstrip-timeline{top:154px;max-height:calc(100vh - 166px)}.view-pellicule .filmstrip-year{font-size:12px}.view-pellicule .filmstrip-month{font-size:10px;padding-left:10px}.view-pellicule .filmstrip-photo-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:5px}.view-pellicule .filmstrip-date-group{scroll-margin-top:154px}}
/* Repères visuels de la chronologie et vignettes complètes en vue pellicule. */
.view-pellicule .filmstrip-photo-card{box-sizing:border-box;border:2px solid transparent;transition:border-color .15s ease,box-shadow .15s ease}
.view-pellicule .filmstrip-photo-card img{object-fit:contain;object-position:center;background:var(--color-background-soft)}
.view-pellicule .filmstrip-photo-card:hover{border-color:#168bd2;box-shadow:0 0 0 1px #168bd2}
.view-pellicule .filmstrip-year[aria-current="true"],.view-pellicule .filmstrip-month[aria-current="true"]{color:#168bd2;font-weight:700}/* Pellicule : remplit les vignettes par recadrage centré, sans cadre sombre. */
.view-pellicule .filmstrip-photo-card{border:0;outline:2px solid transparent;outline-offset:0}
.view-pellicule .filmstrip-photo-card img{object-fit:cover;object-position:center;background:transparent}
.view-pellicule .filmstrip-photo-card:hover{outline-color:#168bd2;box-shadow:0 0 0 1px #168bd2}
/* Survol plus visible des vignettes de la vue pellicule. */
.view-pellicule .filmstrip-photo-card:hover{outline:3px solid #087fd1;box-shadow:0 0 0 2px rgba(8,127,209,.35)}
.view-pellicule button.filmstrip-photo-card{appearance:none;padding:0;border:0;text-align:left;color:inherit;cursor:pointer}

/* Albums publics : accueil, liste complète et consultation d’une collection. */
.public-album-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))}
.public-album-card{text-decoration:none;color:var(--color-text)}
.public-album-card:focus-visible,.album-photo-card:focus-visible{outline:3px solid var(--color-primary);outline-offset:4px}
.public-album-cover{overflow:hidden}
.public-album-cover img{display:block}
.public-album-copy h2{margin:0 0 8px}
.public-album-copy p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.home-albums-track{align-items:stretch;padding:5px 3px 12px}
.home-album-card{flex:0 0 235px;min-width:0;box-shadow:none}
.home-album-card .public-album-cover{height:155px;aspect-ratio:auto}
.home-album-card .public-album-copy{padding:12px 14px}
.home-album-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 6px;color:var(--color-primary-hover);font-size:17px;line-height:1.35}
.public-album-page .gallery-viewbar,.public-album-page #gallery-pagination{display:none}
.public-album-page .gallery-page{padding-top:30px}
.public-album-page #galerie{padding:0;border:0;background:transparent;overflow:visible}
.public-album-page .section-heading{align-items:flex-start;gap:24px}
.public-album-page .section-description{white-space:pre-line}
.public-album-count{margin:8px 0 0;color:var(--color-text-muted);font-size:14px}
.public-album-page .album-photo-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
.public-album-page .album-photo-card{display:block}
@media(max-width:700px){.home-album-card{flex-basis:205px}.home-album-card .public-album-cover{height:145px}.public-album-page .gallery-page{padding-top:22px}.public-album-page .section-heading{flex-direction:column;gap:12px}.public-album-page .album-photo-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:10px}}

/* Vue normale : réduit légèrement l'espace vertical entre les rangées. */
#galerie.gallery-results.view-mosaique > .photo-row {
    margin-bottom: 4px;
}

/* Les rangées de cartes restent dans la largeur mesurée par le JavaScript. */
#galerie.gallery-results.view-cartes > .photo-row {
    max-width: 100%;
    box-sizing: border-box;
}
/* La vue Photos ne rogne pas les cartes au bord du conteneur. */
#galerie.gallery-results.view-cartes {
    overflow: visible;
}

#galerie.gallery-results.view-cartes .photo-row {
    overflow: visible;
}
/* Fin trait bleu au survol des photos dans les deux vues principales. */
#galerie.gallery-results.view-mosaique .photo-card,
#galerie.gallery-results.view-cartes .photo-card {
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: outline-color 0.15s ease;
}

#galerie.gallery-results.view-mosaique .photo-card:hover,
#galerie.gallery-results.view-mosaique .photo-card:focus-visible,
#galerie.gallery-results.view-cartes .photo-card:hover,
#galerie.gallery-results.view-cartes .photo-card:focus-visible {
    outline-color: #168bd2;
}
/* Contour orange vif toujours visible au-dessus de la miniature au survol. */
#galerie.gallery-results.view-mosaique .photo-card,
#galerie.gallery-results.view-cartes .photo-card {
    position: relative;
}

#galerie.gallery-results.view-mosaique .photo-card::after,
#galerie.gallery-results.view-cartes .photo-card::after {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    border: 3px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color 0.12s ease;
}

#galerie.gallery-results.view-mosaique .photo-card:hover::after,
#galerie.gallery-results.view-mosaique .photo-card:focus-visible::after,
#galerie.gallery-results.view-cartes .photo-card:hover::after,
#galerie.gallery-results.view-cartes .photo-card:focus-visible::after {
    border-color: #ff6a00;
}

/* Remplace aussi le contour bleu de la troisième vue par le même orange. */
#galerie.view-pellicule .filmstrip-photo-card {
    position: relative;
}

#galerie.view-pellicule .filmstrip-photo-card::after {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    border: 3px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color 0.12s ease;
}

#galerie.view-pellicule .filmstrip-photo-card:hover,
#galerie.view-pellicule .filmstrip-photo-card:focus-visible {
    outline: 0;
    box-shadow: none;
}

#galerie.view-pellicule .filmstrip-photo-card:hover::after,
#galerie.view-pellicule .filmstrip-photo-card:focus-visible::after {
    border-color: #ff6a00;
}
/* Harmonise les dates actives et survolées du menu Pellicule avec le contour orange. */
#galerie.view-pellicule .filmstrip-year[aria-current="true"],
#galerie.view-pellicule .filmstrip-month[aria-current="true"],
#galerie.view-pellicule .filmstrip-year:hover,
#galerie.view-pellicule .filmstrip-month:hover,
#galerie.view-pellicule .filmstrip-year:focus-visible,
#galerie.view-pellicule .filmstrip-month:focus-visible {
    color: #ff6a00;
}
/* Même trait orange au survol des photos et albums sur la page d'accueil. */
.home-gallery-card,
.home-album-card {
    position: relative;
}

.home-gallery-card::after,
.home-album-card::after {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    border: 3px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color 0.12s ease;
}

.home-gallery-card:hover::after,
.home-gallery-card:focus-visible::after,
.home-album-card:hover::after,
.home-album-card:focus-visible::after {
    border-color: #ff6a00;
}
/* Albums et tags : conserve les encadrés de la modale et masque les sections vides. */
#photo-modal #photo-modal-albums[hidden],#photo-modal #photo-modal-tags[hidden]{display:none}
#photo-modal .photo-collection-list{margin:0;padding:0;list-style:none;font-size:12px;line-height:1.5}
/* Albums présentés en bulles cliquables, avec retour à la ligne et repère au clavier. */
#photo-modal .photo-albums-list{display:flex;flex-wrap:wrap;gap:7px}
#photo-modal .photo-albums-list li{max-width:100%;min-width:0}
#photo-modal .photo-albums-list a{display:block;padding:6px 12px;border:1px solid var(--color-olive-light);border-radius:999px;background:var(--color-surface);color:var(--color-text);font-weight:600;line-height:1.4;text-decoration:none;overflow-wrap:anywhere;transition:background-color .15s,color .15s,border-color .15s}
#photo-modal .photo-albums-list a:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover);color:var(--color-surface)}
#photo-modal .photo-albums-list a:focus-visible{outline:2px solid var(--color-primary-hover);outline-offset:3px}
#photo-modal .photo-tags-list{display:flex;flex-wrap:wrap;gap:5px}
#photo-modal .photo-tags-list li{padding:2px 7px;border:1px solid var(--color-border);border-radius:var(--radius-small);overflow-wrap:anywhere;max-width:100%}
/* Partage de l'album : icône près du titre et confirmation de copie séparée. */
.album-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.album-title-row h1{margin:0;min-width:0;overflow-wrap:anywhere}
.album-title-row .album-share-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;margin:0;padding:7px;border:0;border-radius:50%;background:transparent;color:var(--color-text-muted)}
.album-title-row .album-share-button svg{width:22px;height:22px;fill:currentColor}
.album-title-row .album-share-button:hover{background:var(--color-background-soft);color:var(--color-text)}
.album-title-row .album-share-button:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}
.album-share-status{font-size:12px;color:var(--color-text-muted)}
/* Recherche intégrée à la barre de galerie avec les couleurs du site. */
.gallery-search-control{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--color-text-muted);font-size:13px}
.gallery-search-control input{box-sizing:border-box;width:240px;max-width:100%;padding:9px 12px;border:1px solid var(--color-border);border-radius:var(--radius-small);background:var(--color-surface);color:var(--color-text);font:inherit}
.gallery-search-control input:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}
@media(max-width:700px){.gallery-search-control{width:100%}.gallery-search-control input{flex:1;min-width:0}}
/* Loupe à l'intérieur du champ, sans gêner la saisie ni le bouton d'effacement. */
.gallery-search-control{position:relative;display:block}
.gallery-search-control .gallery-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;pointer-events:none}
.gallery-search-control input{padding-left:38px}
@media(max-width:700px){.gallery-search-control input{width:100%}}
/* Centre les boutons et le champ sur le même axe horizontal, sans déplacer la barre. */
/* Ajoute 6 pixels d'air sous le bandeau tout en conservant le centrage des commandes. */
.gallery-viewbar{align-items:center;padding-top:12px;padding-bottom:0}
.gallery-viewbar .gallery-view-controls,.gallery-viewbar .gallery-search-control,.gallery-viewbar .gallery-date-control{margin-top:0;margin-bottom:0;align-self:center}
.gallery-viewbar .gallery-search-control input{display:block}
/* Prolonge le fond fixe de 8 pixels sous les commandes sans changer leur position. */
.gallery-viewbar{height:66px;padding-bottom:8px}
@media(max-width:700px){.gallery-viewbar{height:84px}}