/* dazler.org — refonte 2026 (Metro modernisé, jour / nuit). Référence : docs/design_handoff_dazler_refonte */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/font/opensans-var.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url(/font/opensans-italic-var.woff2) format("woff2"); }

:root {
	--bg: #ffffff; --fg: #2b2c2c; --h1: #616363; --body: #4a4c4c; --sub: #616363; --link: #0f7fa3; --idle: #a3a5a5;
	--card: #f3f4f4; --line: #e3e4e4; --input-bd: #c9cbcb; --input: #ffffff; --tab-bg: #ffffff; --tab-idle: #616363;
	--accent: #26BCEB; --accent-pressed: #0f7fa3; --tile-fallback: #616363; --error: #d64545;
	--font-title: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
	--font-text: "Open Sans", "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
	--pad-x: 48px; --pad-top: 36px; --pad-bottom: 56px; --grid-x: 24px; --gap: 6px;
	--row: 150px; --h1-size: 64px; --hero-h: 380px; --hero-fs: 72px; --hero-sub: 22px; --hero-x: 48px;
	--lead: 24px; --text: 17px; --tile-tx: 20px; --tile-ty: 14px;
	color-scheme: light;
}
html[data-theme="nuit"] {
	--bg: #0b0c0c; --fg: #ffffff; --h1: #ffffff; --body: #c4c6c6; --sub: #a3a5a5; --link: #26BCEB; --idle: #6f7171;
	--card: #161717; --line: #2a2b2b; --input-bd: #3a3b3b; --input: #161717; --tab-bg: #161717; --tab-idle: #a3a5a5;
	color-scheme: dark;
}
@media (max-width: 899px) {
	:root {
		--pad-x: 18px; --pad-top: 14px; --pad-bottom: 32px; --grid-x: 5px; --gap: 5px;
		--row: 120px; --h1-size: 44px; --hero-h: 300px; --hero-fs: 40px; --hero-sub: 15px; --hero-x: 18px;
		--lead: 19px; --text: 15px; --tile-tx: 12px; --tile-ty: 9px;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--body); font-family: var(--font-text); font-weight: 300;
	-webkit-font-smoothing: antialiased; transition: background-color .4s, color .4s;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-title); font-weight: 300; margin: 0; color: var(--fg); }
p { margin: 0; }
a { color: var(--link); }
a:hover { color: var(--accent); }
img { max-width: 100%; }
b, strong { font-weight: 600; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---- Logo selon le thème ---- */
.logo { display: flex; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
.logo-nuit, html[data-theme="nuit"] .logo-jour { display: none; }
html[data-theme="nuit"] .logo-nuit { display: block; }
.i-jour, .i-nuit { display: flex; }
.i-nuit, html[data-theme="nuit"] .i-jour { display: none; }
html[data-theme="nuit"] .i-nuit { display: flex; }

/* ---- En-tête ---- */
.site-header { height: 76px; display: flex; align-items: center; gap: 36px; padding: 0 32px; }
.pivot { display: flex; gap: 28px; font-family: var(--font-title); font-weight: 300; font-size: 24px; }
.pivot a { color: var(--idle); text-decoration: none; transition: color .3s; }
.pivot a.is-active { color: var(--fg); }
.pivot a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-weight: 600; }
.footer-links a { color: var(--fg); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.back-btn { display: none; border: 0; }

/* ---- Boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 0; font-family: inherit; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.btn-cta { background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; padding: 11px 20px; }
.btn-cta:hover, .btn-primary:hover { background: var(--accent-pressed); color: #fff; }
.btn-primary { background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; padding: 15px 38px; }
.btn-block { width: 100%; padding: 15px; font-weight: 700; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); font-weight: 600; font-size: 14px; padding: 11px 22px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--fg); }
.btn-small { font-size: 12px; font-weight: 700; padding: 8px 14px; }

/* ---- Pastilles ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; text-decoration: none; background: transparent; color: var(--fg); border: 1px solid var(--input-bd); cursor: pointer; font-family: inherit; line-height: 1.2; }
.chip:hover { color: var(--fg); border-color: var(--accent); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---- Mise en page ---- */
.page { padding: var(--pad-top) var(--pad-x) var(--pad-bottom); display: flex; flex-direction: column; gap: 22px; }
.page-narrow { max-width: 980px; }
.page-grid { padding: 6px var(--grid-x) 0; }
.page-title { font-size: var(--h1-size); line-height: 1; color: var(--h1); }
.page-subtitle { font-size: 18px; color: var(--sub); margin-top: 8px; }
.title-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.title-row .meta { font-size: 14px; }
.back-link { font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; align-self: flex-start; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--sub); }
.breadcrumb a { color: var(--sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--fg); font-weight: 600; }
.bleed { margin: 0 calc(var(--grid-x) - var(--pad-x)); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.two-col.even { grid-template-columns: 1fr 1fr; gap: 28px; }
.lead { font-family: var(--font-title); font-size: var(--lead); line-height: 1.45; color: var(--fg); }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: var(--text); line-height: 1.75; min-width: 0; }
.prose h2 { font-size: 30px; line-height: 1.15; margin-top: 12px; }
.prose h3 { font-size: 24px; line-height: 1.2; margin-top: 8px; }
.prose img { display: block; height: auto; }
.prose video { display: block; width: 100%; height: auto; }
.prose ul { margin: 0; padding-left: 20px; }
.prose figure { margin: 0; }
.prose table { border-collapse: collapse; width: auto; }
.prose td, .prose th { padding: 2px 12px 2px 0; vertical-align: top; text-align: left; }
.album-description { display: block; }
.album-description > .video-facade { margin: 16px 0; }
.aside-card { background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 1.55; position: sticky; top: 20px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 8px 0 24px; }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 16px; border: 1px solid var(--input-bd); background: var(--input); color: var(--fg); border-radius: 999px; }
.search-count { color: var(--sub); margin-bottom: 28px; }
.search-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.search-list a { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--fg); }
.search-list a:hover b { color: var(--accent); }
.search-list img { width: 96px; height: 72px; object-fit: cover; flex: none; background: var(--card); }
.search-list span { display: flex; flex-direction: column; gap: 3px; }
.search-list small { color: var(--sub); font-size: 13px; line-height: 1.5; }
.side-tiles { display: grid; grid-auto-rows: 230px; gap: 6px; position: sticky; top: 20px; }
.aside-card h2 { font-size: 26px; }
.aside-card h3 { font-size: 20px; }
.aside-card ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.info-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.info-boxes div { background: var(--bg); padding: 12px; }
.info-boxes b { display: block; color: var(--fg); font-size: 16px; }
.tel-link { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--fg); text-decoration: none; font-size: 14px; }
.spec-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.spec-list dt { font-weight: 600; color: var(--fg); }
.spec-list dd { margin: 0; }
.section { padding: 0 var(--pad-x) var(--pad-bottom); display: flex; flex-direction: column; gap: 14px; }
.section h2 { font-size: 26px; }

/* ---- Bandeau ---- */
.hero { position: relative; height: var(--hero-h); background: var(--tile-fallback); overflow: hidden; }
.hero > img, .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.1) 75%); }
.hero.hero-bottom::after { background: linear-gradient(transparent 30%, rgba(0,0,0,.7)); }
.hero-content { position: absolute; z-index: 1; left: var(--hero-x); right: var(--hero-x); bottom: var(--hero-x); color: #fff; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.hero-content h1 { font-size: var(--hero-fs); line-height: 1; color: #fff; }
.hero-content h2 { font-size: var(--hero-sub); line-height: 1.35; color: #fff; }
.hero .breadcrumb a, .hero .breadcrumb [aria-current], .hero .breadcrumb li + li::before { color: #fff; }

/* ---- Tuiles Metro ---- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: var(--row); gap: var(--gap); }
.tiles .t1 { grid-column: 1 / 5; grid-row: 1 / 3; }
.tiles .t2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.tiles .t3 { grid-column: 1 / 3; grid-row: 3 / 5; }
.tiles .t4 { grid-column: 3 / 5; grid-row: 3 / 4; }
.tiles .t5 { grid-column: 3 / 5; grid-row: 4 / 5; }
.tiles .t6 { grid-column: 5 / 7; grid-row: 3 / 5; }
.tiles .t7 { grid-column: span 2; }
.tiles .d-full { grid-column: 1 / -1; }
.tile { position: relative; overflow: hidden; display: block; color: #fff; text-decoration: none; background: var(--tile-fallback); transition: transform .15s, filter .3s; --fs: 28px; --tfs: 24px; }
.tile:hover { filter: brightness(1.1); color: #fff; }
.tile:active { transform: perspective(800px) rotateX(2deg) scale(.985); }
.tile-track { position: absolute; left: 0; right: 0; top: 0; height: 100%; transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.tile.is-live .tile-track { height: 200%; }
.tile.is-live.is-flipped .tile-track { transform: translateY(-50%); }
.tile-face { height: 100%; position: relative; display: flex; align-items: center; background: var(--tile-fallback); }
.tile.is-live .tile-face { height: 50%; }
.tile-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-text { position: relative; font-family: var(--font-title); font-weight: 300; font-size: var(--tfs); line-height: 1.15; padding: 28px; align-self: center; }
.tile-text.is-excerpt { align-self: flex-start; padding: 48px 22px 80px; overflow: hidden; max-height: 100%; }
.tile-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.5)); pointer-events: none; }
.tile.is-flipped .tile-shade.hide-flipped { opacity: 0; }
.tile-title { position: absolute; left: var(--tile-tx); bottom: var(--tile-ty); right: 12px; font-family: var(--font-title); font-weight: 300; font-size: var(--fs); line-height: 1.1; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.tile.t1 { --fs: 44px; }
.tile-kicker { position: absolute; left: var(--tile-tx); top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; background: rgba(0,0,0,.45); color: #fff; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }
.tile-ext { position: absolute; right: 12px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.tile-play { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; color: #2b2c2c; }
.tile.is-flat .tile-title { text-shadow: none; }
@media (prefers-reduced-motion: reduce) {
	.tile-track { transition: none; }
	.tile.is-live.is-flipped .tile-track { transform: none; }
}

/* grille « projets » 3 colonnes */
.tiles-3 { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 6px; }
.tiles-3 .tile { --fs: 34px; }

/* ---- Albums, photos ---- */
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.card-link { position: relative; aspect-ratio: 4 / 3; display: block; overflow: hidden; color: #fff; text-decoration: none; background: var(--tile-fallback); transition: filter .3s, transform .15s; }
.card-link:hover { filter: brightness(1.1); color: #fff; }
.card-link:active { transform: scale(.98); }
.card-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-caption { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.6)); display: flex; flex-direction: column; gap: 2px; }
.card-caption b { font-family: var(--font-title); font-weight: 300; font-size: 22px; line-height: 1.15; }
.card-caption small { font-size: 12px; font-weight: 600; opacity: .85; }
.photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.photo-grid a { display: block; aspect-ratio: 1; background: var(--card); cursor: zoom-in; overflow: hidden; }
.photo-grid a:hover { filter: brightness(1.12); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.album-nav .card-link { aspect-ratio: auto; height: 140px; }
.album-nav .is-next .card-caption { align-items: flex-end; text-align: right; }

/* ---- Visionneuse ---- */
.viewer { position: fixed; inset: 0; z-index: 40; background: #0b0c0c; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: 100%; overflow-y: auto; }
.viewer[hidden] { display: none; }
.viewer-main { position: relative; display: flex; flex-direction: column; min-height: 0; }
.viewer-bar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 14px; font-size: 13px; flex-shrink: 0; }
.viewer-bar .icon-btn { border: 0; color: #fff; }
.viewer-bar b { font-weight: 600; }
.viewer-count { margin-left: auto; color: #a3a5a5; padding-right: 8px; }
.viewer-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 70px; min-height: 0; }
.viewer-stage img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; display: block; }
.viewer-arrow { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.viewer-arrow:hover { background: var(--accent); color: #fff; }
.viewer-arrow.prev { left: 10px; }
.viewer-arrow.next { right: 10px; }
.viewer-thumbs { display: flex; gap: 6px; padding: 16px 24px; overflow-x: auto; flex-shrink: 0; }
.viewer-thumbs button { flex-shrink: 0; width: 88px; height: 60px; border: 0; padding: 0; cursor: pointer; background: #161717; opacity: .45; }
.viewer-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer-thumbs button.is-active { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
.viewer-panel { background: #161717; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.viewer-panel .kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.viewer-panel h2 { font-size: 30px; line-height: 1.1; color: #fff; }
.viewer-panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.viewer-panel dt { color: #a3a5a5; }
.viewer-panel dd { margin: 0; }
.viewer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.viewer-actions .btn-ghost { color: #fff; border-color: #4a4c4c; }
.viewer-hint { font-size: 12px; color: #a3a5a5; }
.viewer-albums { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.viewer-albums a { color: #fff; }
/* page photo (seephoto) : même composition, dans le flux */
.photo-page { position: static; min-height: calc(100vh - 76px); }

/* ---- Toiles ---- */
.toile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.toile-card { display: flex; flex-direction: column; background: var(--card); }
.toile-card > a { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile-fallback); }
.toile-card > a img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s; }
.toile-card > a:hover img { filter: brightness(1.1); }
.toile-bar { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toile-bar span { font-family: var(--font-title); font-size: 18px; color: var(--fg); }
.toile-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.toile-detail > img { width: 100%; height: auto; display: block; }
.toile-detail .btn-block + .btn-block { margin-top: 10px; }
.specs { margin: 24px 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs dt { color: var(--sub); }
.specs dd { margin: 0; color: var(--fg); }
.section-title { font-size: 32px; margin: 56px 0 18px; }

/* ---- Vidéos ---- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.video-facade { border: 0; padding: 0; cursor: pointer; position: relative; aspect-ratio: 16 / 9; background: #000; color: #fff; text-align: left; display: block; width: 100%; overflow: hidden; text-decoration: none; }
.video-facade:hover { filter: brightness(1.1); color: #fff; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade .play { position: absolute; left: 50%; top: 50%; margin: -28px 0 0 -28px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; }
.video-facade .caption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-family: var(--font-title); font-size: 22px; }
.modal { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-frame { width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; background: #000; position: relative; }
.modal-frame iframe, .modal-frame video, .modal-frame audio { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-frame.is-doc { aspect-ratio: auto; height: 85vh; background: #fff; }
.modal-frame.is-image { aspect-ratio: auto; background: transparent; display: flex; justify-content: center; }
.modal-frame.is-image img { max-height: 85vh; width: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---- Bandeaux prestations ---- */
.bands { display: flex; flex-direction: column; gap: 6px; }
.bands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.band { height: 78px; position: relative; display: flex; align-items: flex-end; padding: 10px 14px; color: #fff; text-decoration: none; background: var(--tile-fallback); font-family: var(--font-title); font-size: 20px; overflow: hidden; }
.bands-grid .band { height: 110px; padding: 10px 12px; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band span { position: relative; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.band:hover { filter: brightness(1.12); color: #fff; }

/* ---- Team ---- */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.member { background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.member img, .member .initial { width: 52px; height: 52px; object-fit: cover; }
.member .initial { color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 26px; }
.member h3 { font-size: 22px; margin-top: 6px; }
.member h4 { font-family: var(--font-text); font-size: 13px; font-weight: 600; color: var(--body); }
.member p { font-size: 13px; line-height: 1.5; }
.member .links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; font-weight: 600; margin-top: auto; }
.member .links a { text-decoration: none; }

/* ---- News, article, pager ---- */
.pager { display: flex; gap: 6px; justify-content: center; font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.pager a, .pager span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--input-bd); display: flex; align-items: center; justify-content: center; color: var(--fg); text-decoration: none; }
.pager a:hover { border-color: var(--accent); }
.pager .is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pager .pager-dots { border: 0; }
.article { padding: var(--pad-top) var(--pad-x) var(--pad-bottom); display: flex; flex-direction: column; gap: 18px; max-width: 868px; }
.article .date { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--link); text-transform: uppercase; }
.article h1 { font-size: var(--hero-fs); line-height: 1.05; color: var(--h1); }
.article-body { font-size: var(--text); line-height: 1.8; display: flex; flex-direction: column; gap: 14px; overflow-wrap: anywhere; }
.article-body img, .article-body video, .article-body iframe { max-width: 100%; height: auto; display: block; }
.article-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.share { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.share .btn-ghost { font-size: 13px; padding: 8px 14px; border-color: var(--input-bd); }

/* ---- Contact ---- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--fg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg); min-width: 0; }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; font-size: 15px; padding: 13px 16px; border: 1px solid var(--input-bd); border-radius: 999px; background: var(--input); color: var(--fg); min-width: 0; width: 100%; }
.field textarea { border-radius: 22px; padding: 14px 18px; resize: vertical; min-height: 140px; }
.field .error { color: var(--error); font-size: 12px; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.fieldset { border: 0; margin: 0; padding: 18px; background: var(--card); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.fieldset legend { float: left; width: 100%; font-size: 13px; font-weight: 600; color: var(--link); margin-bottom: 2px; padding: 0; }
.fieldset .field { font-size: 12px; }
.fieldset .field input { padding: 11px 14px; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { background: var(--card); border-left: 4px solid var(--error); padding: 14px 18px; font-size: 14px; color: var(--fg); }
.sent { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 48px 32px 40px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; outline: 0; }
.sent::before { content: ""; position: absolute; inset: -40% 10% auto; height: 260px; background: radial-gradient(closest-side, rgba(38, 188, 235, .22), transparent); pointer-events: none; }
.sent > * { position: relative; }
.sent .check { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(38, 188, 235, .15), 0 0 0 20px rgba(38, 188, 235, .07); animation: dz-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.sent h2 { font-size: 30px; line-height: 1.2; max-width: 560px; }
.sent-text { color: var(--sub); font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0; }
.sent-recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 0; }
.sent-recap div { display: flex; gap: 8px; align-items: baseline; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13px; max-width: 100%; }
.sent-recap dt { color: var(--sub); font-weight: 600; }
.sent-recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
@keyframes dz-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sent .check { animation: none; } }
@media (max-width: 700px) { .sent { padding: 36px 20px 30px; } .sent h2 { font-size: 24px; } }
.references { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.references a { background: #fff; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 10px; }
.references img { max-height: 100%; width: auto; object-fit: contain; }

/* ---- Tableau (record du monde) ---- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); padding: 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .rank { font-family: var(--font-title); font-size: 28px; color: var(--fg); }
.table img { width: 120px; height: auto; display: block; }

/* ---- Pied de page, onglets, toast, installation ---- */
.site-footer { padding: 40px 24px 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 12px; color: var(--sub); }
.site-footer p { text-align: right; line-height: 1.6; }
.social { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-weight: 600; }
.social a { color: var(--link); text-decoration: none; }
.tabbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; background: #2b2c2c; color: #fff; font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 999px; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.install-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.install-card { width: 100%; max-width: 440px; background: var(--bg); color: var(--body); border-radius: 26px 26px 0 0; padding: 16px 24px 32px; display: flex; flex-direction: column; gap: 18px; }
.install-card .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; }
.install-head { display: flex; align-items: center; gap: 16px; }
.install-head .app-icon { width: 64px; height: 64px; border-radius: 16px; background: #0b0c0c; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-head .app-icon img { width: 48px; }
.install-head h2 { font-size: 24px; }
.install-head p { font-size: 13px; }
.install-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.install-actions { display: flex; gap: 10px; }
.install-actions button { flex: 1; font-weight: 600; border: 0; padding: 15px; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 15px; }
.install-actions .later { background: var(--card); color: var(--fg); }
.install-actions .install { flex: 1.4; font-weight: 700; background: var(--accent); color: #fff; }

/* ---- Mobile (< 900 px) ---- */
@media (max-width: 899px) {
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
	.site-header { height: 64px; padding: 16px 12px 0 14px; gap: 8px; }
	.logo img { height: 26px; }
	.pivot, .btn-cta { display: none; }
	.back-btn { display: flex; width: 44px; height: 44px; margin-left: -8px; }
	.header-actions { gap: 8px; }
	.theme-btn { width: 44px; height: 44px; }
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.tiles .tile { grid-column: span 1; grid-row: span 1; --fs: 20px; --tfs: 15px; }
	.tiles .t1 { grid-column: span 2; grid-row: span 2; --fs: 30px; }
	.tiles .t4, .tiles .m-wide { grid-column: span 2; --fs: 22px; }
	.tile-text { padding: 12px; }
	.tile-text.is-excerpt { padding: 36px 10px 44px; font-size: 13px; }
	.tiles-3 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
	.tiles-3 .tile { --fs: 22px; }
	.two-col, .two-col.even, .toile-detail { grid-template-columns: 1fr; gap: 28px; }
	.aside-card { position: static; }
	.album-grid, .toile-grid, .members { grid-template-columns: repeat(2, 1fr); }
	.card-link { aspect-ratio: 1; }
	.card-caption b { font-size: 17px; }
	.photo-grid { grid-template-columns: repeat(3, 1fr); }
	.video-grid { grid-template-columns: 1fr; }
	.bands-grid { grid-template-columns: repeat(2, 1fr); }
	.form-row { grid-template-columns: 1fr; }
	.hero .breadcrumb { display: none; }
	.desk-only { display: none !important; }
	.viewer { grid-template-columns: 1fr; grid-template-rows: auto auto; }
	.viewer-stage { padding: 0; min-height: 380px; }
	.viewer-stage img { max-height: 380px; }
	.viewer-thumbs, .viewer-hint { display: none; }
	.photo-page { min-height: 0; }
	.site-footer { flex-direction: column; align-items: center; padding: 24px 18px 28px; }
	.site-footer p { text-align: center; }
	.tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--tab-bg); border-top: 1px solid var(--line); grid-template-columns: repeat(5, 1fr); transition: background-color .4s; }
	.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--tab-idle); text-decoration: none; min-height: 44px; }
	.tabbar a.is-active { color: var(--link); }
	.toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
	.table .rank { font-size: 20px; }
	.table img { width: 80px; }
}
.page-title small { font-size: .45em; color: var(--sub); margin-left: .3em; }
.toile-bar small { font-family: "Open Sans", sans-serif; font-size: 13px; color: var(--sub); margin-left: 6px; }
.card-link[hidden] { display: none; }
.img-fluid { width: 100%; height: auto; display: block; }
.map-frame { position: relative; height: 650px; background: var(--card); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.table .rank { font-family: var(--font-title); font-size: 34px; color: var(--accent); }
.thumb-btn { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 120px; }
.thumb-btn img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .map-frame { height: 420px; } }
.album-grid-3 { grid-template-columns: repeat(3, 1fr); }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); text-decoration: none; }
@media (max-width: 900px) { .album-grid-3 { grid-template-columns: repeat(2, 1fr); } }
/* news : face 2 des tuiles live = extrait, au-dessus du titre */
.tile-excerpt .tile-face--2 { overflow: hidden; }
.tile-excerpt .tile-text { font-size: 17px; line-height: 1.45; align-self: flex-start; padding: 24px 24px 96px; }
.article-title { font-size: clamp(32px, 5vw, 52px); margin-top: 8px; }
.article-body video { width: 100%; background: #000; }
.article-body audio { width: 100%; }
.article-body .video-facade { max-width: 100%; }
/* selecteur de langue (pied de page) */
.lang-switch { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 600; }
.lang-switch a { color: var(--sub); text-decoration: none; }
.lang-switch a[aria-current] { color: var(--fg); }
.lang-switch a:hover { color: var(--accent); }
@media (max-width: 900px) { .tile-excerpt .tile-text { font-size: 14px; padding: 14px 14px 64px; } .lang-switch { justify-content: center; } }
.member img { border-radius: 0; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.ref-grid > * { background: #fff; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 12px; }
.ref-grid img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); transition: filter .3s; }
.ref-grid a:hover img { filter: none; }
.ref-logo { background: #fff; padding: 8px; height: auto; }
.contact-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.aside-title { font-size: 24px; margin-bottom: 14px; }
.btn-send { font-size: 16px; font-weight: 700; padding: 15px 38px; }
.btn-send.is-loading { display: inline-flex; align-items: center; gap: 10px; cursor: progress; opacity: .85; }
.btn-send.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: dz-spin .7s linear infinite; }
@keyframes dz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-send.is-loading::before { animation-duration: 2s; } }
.error-page { text-align: center; align-items: center; }

/* ---- langues ecrites de droite a gauche (arabe, ourdou) ---- */
[dir="rtl"] .header-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .breadcrumb li + li::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .prose ul, [dir="rtl"] .aside-card ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(0,0,0,.65), rgba(0,0,0,.1) 75%); }
[dir="rtl"] .tile-title { left: 12px; right: var(--tile-tx); }
[dir="rtl"] .tile-kicker { left: auto; right: var(--tile-tx); }
[dir="rtl"] .tile-ext, [dir="rtl"] .tile-play { right: auto; left: 12px; }
[dir="rtl"] .viewer-count { margin-left: 0; margin-right: auto; padding-right: 0; padding-left: 8px; }
[dir="rtl"] .viewer-arrow svg, [dir="rtl"] .back-btn svg { transform: scaleX(-1); }
[dir="rtl"] .video-facade, [dir="rtl"] .table th { text-align: right; }
[dir="rtl"] .modal-close { right: auto; left: 14px; }
[dir="rtl"] .fieldset legend { float: right; }
[dir="rtl"] .form-alert { border-left: 0; border-right: 4px solid var(--error); }
[dir="rtl"] .page-title small, [dir="rtl"] .toile-bar small { margin-left: 0; margin-right: .3em; }
[dir="rtl"] .skip-link { left: auto; right: 12px; }
@media (max-width: 900px) { [dir="rtl"] .back-btn { margin-left: 0; margin-right: -8px; } }
[dir="rtl"] .viewer-arrow.prev { left: auto; right: 10px; }
[dir="rtl"] .viewer-arrow.next { right: auto; left: 10px; }
