/* Galeries photos : nouvelles vues et archives conservées. */
.gallery-page { margin: 0; color: #fff8e9; background: linear-gradient(110deg, #9c632b, #aa1d24 24%, #74121d 100%); background-attachment: fixed; font-family: Arial, Helvetica, sans-serif; }
.gallery-page *, .gallery-page *::before, .gallery-page *::after { box-sizing: border-box; }
.gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px max(20px, calc((100% - 1180px) / 2)); background: #351017; border-bottom: 1px solid #d9b256; }
.gallery-brand { color: #ffdf82; font-size: clamp(18px, 2.3vw, 26px); font-weight: 800; line-height: 1.2; text-decoration: none; }
.gallery-brand span { display: block; margin-top: 5px; color: #fff1ce; font-size: 11px; font-weight: 400; letter-spacing: 1.4px; }
.gallery-header__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.gallery-page a { color: #ffdf82; }
.gallery-header__links a { font-size: 14px; text-decoration: none; }
.gallery-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 60px; }
.gallery-tabs, .gallery-breadcrumb, .gallery-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gallery-tabs a, .gallery-button { display: inline-block; padding: 12px 19px; border: 1px solid #e6bc62; border-radius: 999px; color: #ffdf82; background: #4c1018; text-decoration: none; font-weight: 700; line-height: 1.3; }
.gallery-tabs a[aria-current="page"], .gallery-button--primary { background: #ffe398; color: #56131b; }
.gallery-page a:focus-visible, .gallery-page button:focus-visible, .gallery-page video:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.gallery-tabs a:hover, .gallery-button:hover { background: #f9d474; color: #451019; }
.gallery-breadcrumb { margin-top: 30px; font-size: 13px; line-height: 1.5; }
.gallery-breadcrumb a { text-underline-offset: 3px; }
.gallery-hero { padding: 28px 0 30px; }
.gallery-eyebrow { margin: 0 0 10px; color: #ffe398; font-size: 12px; line-height: 1.5; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.gallery-hero h1 { max-width: 920px; margin: 0 0 14px; color: #fff5d3; font-size: clamp(32px, 5vw, 54px); line-height: 1.12; text-shadow: 0 2px 1px #5b151c; }
.gallery-intro { max-width: 760px; margin: 0; font-size: 17px; line-height: 1.7; }
.gallery-section { margin-top: 26px; }
.gallery-section h2 { color: #ffdf82; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.gallery-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d9b256; border-radius: 16px; background: #351017; color: #fff8e9; text-decoration: none; box-shadow: 0 10px 24px #490b1c33; transition: transform 180ms ease, box-shadow 180ms ease; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px #490b1c66; }
.gallery-card__image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #210a10; }
.gallery-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.gallery-card h3 { margin: 8px 0 12px; color: #fff5d3; font-size: 22px; line-height: 1.25; }
.gallery-card p { margin: 0 0 14px; color: #e6d2cd; font-size: 14px; line-height: 1.6; }
.gallery-card__meta { color: #ffe398; font-size: 12px; font-weight: 700; line-height: 1.6; }
.gallery-card__cta { margin-top: auto; color: #ffe398; font-size: 14px; font-weight: 700; }
.gallery-archives { margin-top: 48px; padding: 26px; border: 1px solid #d9b256; border-radius: 16px; background: #351017; }
.gallery-archives h2 { margin-top: 0; }
.gallery-years { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-years a { display: block; padding: 14px 12px; border: 1px solid #a25c52; border-radius: 9px; color: #ffe398; text-align: center; font-size: 14px; text-decoration: none; }
.gallery-years a:hover { background: #62212b; }
.gallery-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.gallery-photo { margin: 0; }
.gallery-photo a { display: block; overflow: hidden; border: 1px solid #b67560; border-radius: 10px; background: #260d14; }
.gallery-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #260d14; transition: opacity 180ms ease; }
.gallery-photo a:hover img { opacity: .85; }
.gallery-photo figcaption { padding-top: 8px; color: #fff1ce; font-size: 12px; line-height: 1.4; }
.gallery-count { display: inline-block; margin: 20px 0 0; padding: 9px 14px; border-radius: 8px; background: #351017; color: #ffe398; font-size: 14px; }
.gallery-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gallery-video-card { overflow: hidden; padding: 16px; border: 1px solid #b67560; border-radius: 12px; background: #351017; }
.gallery-video-card h3 { margin: 0 0 12px; color: #ffe398; font-size: 18px; }
.gallery-video-card video { display: block; width: 100%; height: 340px; max-height: 65vh; object-fit: contain; background: #12070b; }
.gallery-video-card p { margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.gallery-actions { margin-top: 30px; }
.gallery-footer { padding: 24px 20px; border-top: 1px solid #ac665a; background: #351017; text-align: center; font-size: 13px; line-height: 1.7; }
.gallery-dialog { width: min(1120px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 18px; border: 1px solid #ffe398; border-radius: 14px; background: #1c0b12; color: #fff8e9; }
.gallery-dialog::backdrop { background: #09030be8; }
.gallery-dialog__bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.gallery-dialog h2 { margin: 0; font: 700 16px/1.4 Arial, sans-serif; color: #ffe398; }
.gallery-dialog button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #d9b256; border-radius: 8px; background: #351017; color: #ffe398; font: 700 14px Arial, sans-serif; cursor: pointer; }
.gallery-dialog__image { display: block; width: 100%; height: min(70dvh, 780px); margin: 12px 0; object-fit: contain; }
.gallery-dialog__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.gallery-dialog__caption { flex: 1 1 200px; margin: 0; font-size: 13px; line-height: 1.5; text-align: center; }
@media (max-width: 920px) { .gallery-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gallery-years { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery-header { align-items: flex-start; flex-direction: column; gap: 16px; padding: 18px; } .gallery-header__links { justify-content: flex-start; } .gallery-main { width: calc(100% - 28px); padding-top: 24px; } .gallery-tabs { gap: 8px; } .gallery-tabs a { padding: 10px 16px; } .gallery-hero { padding-top: 24px; } .gallery-cards, .gallery-video-grid { grid-template-columns: 1fr; } .gallery-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .gallery-years { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-archives { padding: 18px; } .gallery-intro { font-size: 16px; } .gallery-card h3 { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .gallery-card, .gallery-photo img { transition: none; } .gallery-card:hover { transform: none; } }
@media (max-width: 600px) {
  .gallery-dialog__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-dialog__nav button { width: 100%; }
  .gallery-dialog__caption { grid-column: 1 / -1; grid-row: 2; }
  .gallery-dialog__image { height: min(64dvh, 620px); }
}
