/* ═══════════════════════════════════════════════════════════════════════
   CA Photographies — « Papier de tirage »
   Fond papier clair · encre · rouge accent · grain léger · Didone géante
   Convention historique des variables : --black = fond, --cream = texte.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --black: #f7f3ec;            /* fond papier */
  --ink: #efe9df;              /* bandeau ticker */
  --surface: #ede7dd;          /* cartes, panneaux */
  --surface-2: #e4dccf;
  --line: rgba(20, 16, 14, .12);
  --line-strong: rgba(20, 16, 14, .32);
  --cream: #16120f;            /* texte principal */
  --cream-soft: #5c554d;       /* texte secondaire */
  --cream-faint: #9c948a;      /* texte discret */
  --red: #e5311a;
  --red-deep: #8f1a0b;
  --ok: #2f9a5a;
  --paper-rgb: 247, 243, 236;
  --photo-text: #f4efe8;       /* texte posé sur une photo (voiles sombres) */

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-wide: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;

  --gutter: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--black); color: var(--cream);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  min-height: 100vh; overflow-x: hidden;
}
body.no-cursor, body.no-cursor a, body.no-cursor button { cursor: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--black); }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* grain argentique animé */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); }
  60% { transform: translate(-1%,4%); } 80% { transform: translate(4%,-1%); } 100% { transform: translate(0,0); }
}
/* vignette / halo rouge */
.vignette { position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, rgba(229,49,26,.07), transparent 60%), radial-gradient(ellipse at center, transparent 60%, rgba(120,90,60,.10) 100%); }

/* ─── Typo utilitaire ──────────────────────────────────────────────── */
.wide { font-family: var(--font-wide); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-soft); font-weight: 400; }
.display { font-family: var(--font-display); font-weight: 400; line-height: .92; letter-spacing: -.02em; }
.display em, .display i { font-style: italic; color: var(--red); }
.outline { -webkit-text-stroke: 1px var(--line-strong); color: transparent; }
.wrap { padding-inline: var(--gutter); }

/* ─── Curseur ──────────────────────────────────────────────────────── */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; mix-blend-mode: difference; will-change: transform; }
.cursor .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; position: absolute; transform: translate(-50%,-50%); }
.cursor .ring { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff; position: absolute; transform: translate(-50%,-50%) scale(1); transition: transform .4s var(--ease), background .3s, border-color .3s; display: grid; place-items: center; font-family: var(--font-wide); font-size: 8px; letter-spacing: .2em; color: #000; }
.cursor.hover .ring { transform: translate(-50%,-50%) scale(1.6); background: #fff; }
.cursor.hover .dot { opacity: 0; }
.cursor.view .ring { transform: translate(-50%,-50%) scale(2.4); background: #fff; }
.cursor.view .ring::after { content: "Voir"; }
.cursor.view .dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ─── Preloader ────────────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--black); display: flex; align-items: flex-end; justify-content: space-between; padding: var(--gutter); }
.loader .num { font-family: var(--font-display); font-size: clamp(90px, 18vw, 240px); line-height: .8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader .num i { font-style: italic; color: var(--red); }
.loader .lbl { padding-bottom: 12px; }
.loader .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--red); width: 0; }

/* ─── Transition de page ───────────────────────────────────────────── */
.wipe { position: fixed; inset: 0; z-index: 998; background: var(--red); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.wipe.in { animation: wipeIn .7s var(--ease-io) forwards; }
.wipe.out { transform: scaleY(1); transform-origin: top; animation: wipeOut .8s var(--ease-io) forwards; }
@keyframes wipeIn { to { transform: scaleY(1); } }
@keyframes wipeOut { to { transform: scaleY(0); } }

/* ─── Topbar ───────────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter) 30px; color: var(--cream); background: linear-gradient(rgba(var(--paper-rgb),.9), rgba(var(--paper-rgb),.6) 60%, rgba(var(--paper-rgb),0));
}
.brand { font-family: var(--font-display); font-size: 24px; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
.brand::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px var(--red); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.7); opacity: .6; } }
.brand em { font-style: italic; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { font-family: var(--font-wide); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; position: relative; padding: 4px 0; overflow: hidden; }
.topbar nav a span { display: block; transition: transform .5s var(--ease); }
.topbar nav a span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--red); }
.topbar nav a:hover span { transform: translateY(-100%); }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.7) contrast(1.1); will-change: transform, opacity; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--paper-rgb),.35) 0%, rgba(var(--paper-rgb),.05) 35%, rgba(var(--paper-rgb),.96) 100%); }
.hero-content { position: relative; z-index: 1; }
.hero-kicker { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.hero-kicker .line { flex: 0 0 60px; height: 1px; background: var(--red); }
.hero h1 { font-family: var(--font-display); font-size: clamp(76px, 17vw, 300px); line-height: .82; letter-spacing: -.035em; }
.hero h1 .l { display: block; overflow: hidden; }
.hero h1 .l span { display: block; transform: translateY(110%); }
.hero h1 .l:nth-child(2) { padding-left: clamp(40px, 12vw, 260px); }
.hero h1 em { font-style: italic; color: var(--red); }
.hero-foot { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding: 34px 0 28px; border-top: 1px solid var(--line); margin-top: 40px; }
.hero-foot p { margin: 0; color: var(--cream-soft); max-width: 34ch; font-size: 15px; }
.hero-foot .count { text-align: center; }
.hero-foot .count b { display: block; font-family: var(--font-wide); font-weight: 700; font-size: clamp(30px, 4vw, 56px); line-height: 1; letter-spacing: -.02em; color: var(--cream); }
.hero-foot .scroll { justify-self: end; display: flex; align-items: center; gap: 12px; }
.hero-foot .scroll i { width: 1px; height: 46px; background: linear-gradient(var(--red), transparent); display: block; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ─── Ticker ───────────────────────────────────────────────────────── */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 14px 0; background: var(--ink); }
.ticker .track { display: inline-flex; gap: 48px; padding-right: 48px; animation: ticker 40s linear infinite; will-change: transform; }
.ticker span { font-family: var(--font-display); font-size: 28px; font-style: italic; color: var(--cream-soft); }
.ticker span::after { content: "✦"; color: var(--red); margin-left: 48px; font-style: normal; font-size: 16px; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ─── Index des albums ─────────────────────────────────────────────── */
.index { padding: clamp(80px, 12vw, 180px) var(--gutter) 60px; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 96px); letter-spacing: -.03em; line-height: .9; }
.index-tools { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.search { display: grid; gap: 8px; flex: 1 1 320px; max-width: 520px; }
.search input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; font-family: var(--font-display); font-size: 28px; font-style: italic; color: var(--cream); outline: none; border-radius: 0; transition: border-color .3s; }
.search input:focus { border-bottom-color: var(--red); }
.search input::placeholder { color: var(--cream-faint); }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.more-wrap { display: flex; justify-content: center; padding: 40px 0 0; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.row::before { content: ""; position: absolute; inset: 0; background: var(--cream); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-io); z-index: 0; }
.row:hover::before { transform: scaleY(1); transform-origin: top; }
.row > * { position: relative; z-index: 1; transition: color .4s; }
.row:hover > * { color: var(--black); }
.row .n { font-family: var(--font-wide); font-size: 12px; letter-spacing: .2em; color: var(--red); }
.row .t { font-family: var(--font-display); font-size: clamp(36px, 6.4vw, 104px); line-height: .9; letter-spacing: -.03em; display: block; }
.row .t em { font-style: italic; color: var(--red); }
.row .t .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.row .t .w span { display: inline-block; transform: translateY(105%); }
.row .m { text-align: right; display: grid; gap: 4px; }
.row .m .d { font-family: var(--font-wide); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-soft); }
.row:hover .m .d { color: var(--red-deep); }
.row .m .c { font-size: 13px; color: var(--cream-soft); }
.row .thumb { display: none; }

/* image flottante qui suit le curseur */
.float-img { position: fixed; top: 0; left: 0; z-index: 50; width: min(34vw, 460px); aspect-ratio: 4/5; pointer-events: none; overflow: hidden; opacity: 0; transform: translate(-50%,-50%); will-change: transform; }
.float-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity .5s var(--ease), transform .8s var(--ease); }
.float-img img.on { opacity: 1; transform: scale(1); }

/* ─── Bande horizontale (pinned) ───────────────────────────────────── */
.strip { position: relative; overflow: hidden; padding-block: 60px 80px; }
.strip .section-head { padding-inline: var(--gutter); }
.strip-track { display: flex; gap: clamp(20px, 3vw, 48px); padding-inline: var(--gutter); width: max-content; }
.card { position: relative; flex: 0 0 auto; width: clamp(280px, 38vw, 620px); aspect-ratio: 4/5; overflow: hidden; background: var(--surface); }
.card:nth-child(even) { width: clamp(280px, 30vw, 480px); margin-top: 60px; }
.card img { width: 110%; height: 110%; object-fit: cover; filter: saturate(.8); transition: filter .6s, transform 1s var(--ease); will-change: transform; }
.card:hover img { filter: saturate(1.1); }
.card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: var(--photo-text); background: linear-gradient(transparent, rgba(7,6,6,.85)); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.card .cap h3 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 40px); line-height: 1; letter-spacing: -.02em; }
.card .cap h3 em { font-style: italic; color: var(--red); }
.card .idx { position: absolute; top: 16px; left: 18px; font-family: var(--font-wide); font-size: 10px; letter-spacing: .2em; color: var(--cream); }
.card .empty { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--cream-faint); }
.strip-end { flex: 0 0 auto; width: 40vw; display: flex; align-items: center; justify-content: center; }
.strip-end a { font-family: var(--font-display); font-size: clamp(28px, 4vw, 64px); font-style: italic; }

/* ─── Footer ───────────────────────────────────────────────────────── */
.foot { padding: 80px var(--gutter) 30px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.foot .big { font-family: var(--font-display); font-size: clamp(60px, 14vw, 240px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); transition: color .6s, -webkit-text-stroke-color .6s; }
.foot .big:hover { color: var(--cream); -webkit-text-stroke-color: var(--cream); }
.foot .meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ─── Boutons ──────────────────────────────────────────────────────── */
.btn {
  --bg: var(--cream); --fg: var(--black);
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px;
  border: 1px solid var(--bg); background: transparent; color: var(--cream); cursor: pointer; overflow: hidden; isolation: isolate;
  font-family: var(--font-wide); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: color .4s var(--ease), border-color .3s, transform .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--bg); z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease-io); border-radius: inherit; }
.btn:hover { color: var(--fg); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.red { --bg: var(--red); --fg: var(--black); border-color: var(--red); color: var(--red); }
.btn.red:hover { color: var(--black); }
.btn.solid { background: var(--cream); color: var(--black); }
.btn.solid.red { background: var(--red); color: var(--black); --bg: var(--cream); }
.btn.small { padding: 10px 16px; font-size: 9px; }
.btn svg { width: 14px; height: 14px; }

/* ─── Page album ───────────────────────────────────────────────────── */
.a-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.a-hero .bg { position: absolute; inset: 0; }
.a-hero .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); filter: saturate(.75) contrast(1.05); will-change: transform; }
.a-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--paper-rgb),.3), rgba(var(--paper-rgb),.05) 40%, rgba(var(--paper-rgb),.97) 100%); }
.a-hero .in { position: relative; z-index: 1; width: 100%; padding: 0 var(--gutter) 40px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.a-hero .back { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 26px; }
.a-hero .back::before { content: "←"; color: var(--red); transition: transform .3s; }
.a-hero .back:hover::before { transform: translateX(-6px); }
.a-hero h1 { font-family: var(--font-display); font-size: clamp(56px, 11vw, 190px); line-height: .85; letter-spacing: -.035em; }
.a-hero h1 .l { display: block; overflow: hidden; }
.a-hero h1 .l span { display: block; transform: translateY(110%); }
.a-hero h1 em { font-style: italic; color: var(--red); }
.a-hero .lede { color: var(--cream-soft); max-width: 52ch; margin: 24px 0 0; font-size: 16px; white-space: pre-line; }
.a-hero .side { display: grid; gap: 14px; justify-items: start; min-width: 280px; }
.a-hero .facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0 0 12px; font-size: 14px; }
.a-hero .facts dt { margin: 0; align-self: baseline; }
.a-hero .facts dd { margin: 0; }
.dl-progress { font-family: var(--font-wide); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-soft); min-height: 14px; }

.gallery { padding: clamp(60px, 8vw, 120px) var(--gutter) 40px; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.g-head h2 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 72px); letter-spacing: -.03em; line-height: .9; }
.g-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 30px); align-items: start; }
.g-col { display: grid; gap: clamp(14px, 2vw, 30px); will-change: transform; }
.g-col:nth-child(2) { margin-top: 12vh; }
.g-col:nth-child(3) { margin-top: 5vh; }
.g-item { position: relative; overflow: hidden; background: var(--surface); cursor: zoom-in; clip-path: inset(100% 0 0 0); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85); }
.g-item:hover img { transform: scale(1.05); filter: saturate(1.1); }
.g-item .cap { position: absolute; left: 12px; bottom: 10px; font-family: var(--font-wide); font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--photo-text); text-shadow: 0 1px 8px rgba(0,0,0,.6); opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.g-item:hover .cap { opacity: 1; transform: none; }
.g-item .num { position: absolute; top: 10px; right: 12px; font-family: var(--font-display); font-style: italic; font-size: 22px; color: #fff; mix-blend-mode: difference; opacity: .7; }

.next-album { position: relative; margin-top: 80px; min-height: clamp(380px, 60vh, 720px); overflow: hidden; display: grid; place-items: center; text-align: center; }
.next-album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.5) contrast(.9); transition: transform 1.4s var(--ease), opacity .6s; }
.next-album:hover img { transform: scale(1.06); opacity: .55; }
.next-album .in { position: relative; z-index: 1; padding: 60px var(--gutter); }
.next-album h3 { font-family: var(--font-display); font-size: clamp(48px, 9vw, 160px); line-height: .9; letter-spacing: -.035em; margin-top: 12px; }
.next-album h3 em { font-style: italic; color: var(--red); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(12,10,9,.97); display: none; color: var(--photo-text); }
.lightbox.open { display: block; }
.lightbox .blur { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(60px) saturate(.6); opacity: .35; }
.lightbox .stage { position: absolute; inset: 60px 0 110px; display: grid; place-items: center; }
.lightbox .stage img { max-width: min(92vw, 1600px); max-height: 100%; object-fit: contain; box-shadow: 0 40px 120px rgba(0,0,0,.7); animation: lbin .5s var(--ease); }
@keyframes lbin { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.lightbox .strip { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px var(--gutter) 18px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lightbox .strip::-webkit-scrollbar { display: none; }
.lightbox .strip img { height: 60px; width: 60px; object-fit: cover; opacity: .4; cursor: pointer; transition: opacity .3s, transform .3s; flex: 0 0 auto; border: 1px solid transparent; }
.lightbox .strip img:hover { opacity: .8; }
.lightbox .strip img.cur { opacity: 1; border-color: var(--red); transform: scale(1.06); }
.lightbox .ui { position: absolute; top: 0; left: 0; right: 0; padding: 20px var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.lightbox button, .lightbox .ui a { background: none; border: 0; color: var(--photo-text); cursor: pointer; font-family: var(--font-wide); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; padding: 10px 0; opacity: .75; transition: opacity .2s, color .2s; }
.lightbox button:hover, .lightbox .ui a:hover { opacity: 1; color: var(--red); }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); padding: 30px 20px; font-size: 22px; font-family: var(--font-display); font-style: italic; }
.lightbox .nav.prev { left: 6px; } .lightbox .nav.next { right: 6px; }
.lightbox .count { font-family: var(--font-display); font-style: italic; font-size: 22px; }

/* ─── Admin ────────────────────────────────────────────────────────── */
.admin-page { padding-top: 90px; }
.admin-shell { display: grid; grid-template-columns: 300px 1fr; min-height: calc(100vh - 90px); }
.admin-side { border-right: 1px solid var(--line); padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.admin-side .who { font-size: 13px; color: var(--cream-soft); display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.admin-side .who button { background: none; border: 0; cursor: pointer; font-family: var(--font-wide); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); padding: 0; }
.album-list { list-style: none; margin: 14px 0 0; padding: 0; }
.album-list li { border-top: 1px solid var(--line); }
.album-list li:last-child { border-bottom: 1px solid var(--line); }
.album-list button { width: 100%; text-align: left; background: none; border: 0; padding: 14px 12px; cursor: pointer; display: grid; gap: 3px; border-left: 2px solid transparent; transition: background .2s; }
.album-list button:hover { background: var(--surface); }
.album-list button.active { border-left-color: var(--red); background: var(--surface); }
.album-list .t { font-family: var(--font-display); font-size: 22px; line-height: 1.05; }
.album-list .s { font-family: var(--font-wide); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-faint); }

.admin-main { padding: 28px 0 100px 40px; min-width: 0; }
.editor-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.editor-head h2 { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 64px); letter-spacing: -.03em; line-height: .95; }
.editor-head h2 em { font-style: italic; color: var(--red); }
.editor-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; max-width: 1000px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-wide); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-soft); }
.field .hint { font-size: 12px; color: var(--cream-faint); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; border-radius: 0; outline: none; transition: border-color .2s; color: var(--cream); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--red); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:disabled { color: var(--cream-faint); border-bottom-style: dashed; }
.field input::placeholder, .field textarea::placeholder { color: var(--cream-faint); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 56px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.section-title h3 { font-family: var(--font-display); font-size: 32px; letter-spacing: -.02em; }
.dropzone { border: 1px dashed var(--line-strong); padding: 40px 20px; text-align: center; cursor: pointer; font-family: var(--font-display); font-size: 26px; font-style: italic; color: var(--cream-soft); transition: .25s; margin-bottom: 22px; }
.dropzone.over, .dropzone:hover { background: var(--surface); border-color: var(--red); color: var(--cream); }
.dropzone small { display: block; font-family: var(--font-wide); font-style: normal; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; margin-top: 10px; color: var(--cream-faint); }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.admin-photos .ph { position: relative; aspect-ratio: 1; background: var(--surface); overflow: hidden; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.admin-photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.admin-photos .ph.cover { outline-color: var(--red); }
.admin-photos .ph.new::after { content: "nouveau"; position: absolute; top: 6px; left: 6px; background: var(--ok); color: var(--black); font-family: var(--font-wide); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 7px; }
.admin-photos .ph .tools { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .2s; }
.admin-photos .ph:hover .tools { opacity: 1; }
.admin-photos .ph .tools button { background: var(--cream); color: var(--black); border: 0; border-radius: 999px; padding: 5px 10px; font-family: var(--font-wide); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.admin-photos .ph .tools button.del { background: var(--red); }
.log { margin-top: 28px; font-family: var(--font-wide); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-soft); display: none; }
.log.show { display: block; }
.bar { height: 2px; background: var(--line); margin-bottom: 12px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s var(--ease); box-shadow: 0 0 12px var(--red); }
.log ul { list-style: none; margin: 0; padding: 0; max-height: 200px; overflow: auto; display: grid; gap: 4px; }
.log li.err { color: var(--red); } .log li.ok { color: var(--ok); }
.login { max-width: 560px; margin: clamp(30px, 8vh, 100px) auto 0; display: grid; gap: 24px; }
.login h1 { font-family: var(--font-display); font-size: clamp(56px, 8vw, 110px); letter-spacing: -.035em; line-height: .85; }
.login h1 em { font-style: italic; color: var(--red); }
.login p { color: var(--cream-soft); margin: 0; }
.login .steps { font-size: 14px; color: var(--cream-soft); padding-left: 18px; margin: 0; display: grid; gap: 8px; }
.login .steps code { font-family: var(--font-wide); font-size: 10px; background: var(--surface-2); padding: 2px 6px; color: var(--cream); }
.msg { font-family: var(--font-wide); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); min-height: 14px; }
.msg.ok { color: var(--ok); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--cream); color: var(--black); padding: 14px 22px; border-radius: 999px; font-family: var(--font-wide); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; opacity: 0; transition: .4s var(--ease); z-index: 900; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }
.empty-state { padding: 100px 0; text-align: center; color: var(--cream-soft); font-family: var(--font-display); font-style: italic; font-size: 34px; }
.hidden { display: none !important; }

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .g-cols { gap: 14px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .admin-main { padding-left: 0; }
}
@media (max-width: 720px) {
  .hero h1 .l:nth-child(2) { padding-left: 8vw; }
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .hero-foot .scroll { display: none; }
  .row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .row .m { text-align: left; grid-auto-flow: column; justify-content: start; gap: 14px; }
  .row .thumb { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
  .float-img { display: none; }
  .strip-track { width: auto; flex-direction: column; }
  .card, .card:nth-child(even) { width: 100%; margin-top: 0; aspect-ratio: 4/5; }
  .strip-end { width: auto; padding: 30px 0; }
  .a-hero .in { grid-template-columns: 1fr; }
  .g-cols { grid-template-columns: 1fr; }
  .g-col:nth-child(2), .g-col:nth-child(3) { margin-top: 0; }
  .g-col:empty { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-nav { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar { padding: 14px var(--gutter); }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: 8px; letter-spacing: .16em; }
  .brand { font-size: 19px; gap: 8px; }
  .brand::before { width: 7px; height: 7px; }
  .lightbox .stage { inset: 56px 0 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .ticker .track, .brand::before, .hero-foot .scroll i { animation: none !important; }
}

/* ─── Ajouts : site (filtres, à propos) ─────────────────────────────── */
.search select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; font-family: var(--font-display); font-size: 24px; font-style: italic; color: var(--cream); outline: none; border-radius: 0; cursor: pointer; }
.search select option { background: var(--surface); color: var(--cream); font-style: normal; }
.index-tools .search { flex: 1 1 220px; }
.about { padding: 60px 0 100px; min-height: 60vh; }
.about-body { max-width: 720px; font-size: 20px; line-height: 1.6; color: var(--cream-soft); display: grid; gap: 28px; }
.about-body p { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; color: var(--cream); }
.about-body .facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; }
.about-body .facts dt { color: var(--cream-faint); } .about-body .facts dd { margin: 0; }
.about-body a { color: var(--red); }
.about-body .btn { justify-self: start; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
#g-more .wide { margin-left: 12px; opacity: .6; }

/* ─── Ajouts : administration ────────────────────────────────────────── */
[hidden] { display: none !important; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav .btn.active { border-color: var(--red); color: var(--red); }
.side-search { margin-top: 10px; } .side-search input { font-size: 20px; }
.badge { display: inline-block; font-style: normal; font-family: var(--font-wide); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 999px; vertical-align: middle; color: var(--cream-soft); }
.badge.ok { border-color: var(--ok); color: var(--ok); } .badge.red { border-color: var(--red); color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--surface); padding: 22px; display: grid; gap: 6px; }
.stat b { font-family: var(--font-display); font-size: 44px; line-height: 1; font-weight: 400; }
.stat .wide { color: var(--red); } .stat small { color: var(--cream-faint); font-size: 12px; }
.hint { color: var(--cream-faint); font-size: 12px; }
.hint code, .msg code { font-family: ui-monospace, monospace; color: var(--cream); background: var(--surface-2); padding: 1px 6px; }
.msg.err { color: var(--cream); background: var(--surface-2); border-left: 2px solid var(--red); padding: 14px 16px; font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; margin: 14px 0; }
#login .msg.err { background: none; border: 0; padding: 0; margin: 0 0 12px; color: var(--red); }
.msg#pending-box { color: var(--cream); background: var(--surface-2); border-left: 2px solid var(--ok); padding: 14px 16px; font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; margin: 14px 0; }
.album-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.acard { position: relative; aspect-ratio: 4/3; background: var(--surface); border: 0; padding: 0; cursor: pointer; overflow: hidden; text-align: left; color: var(--photo-text); }
.acard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); } .acard:hover img { transform: scale(1.05); }
.acard .empty { display: grid; place-items: center; height: 100%; color: var(--cream-faint); font-family: var(--font-display); font-style: italic; }
.acard .cap { position: absolute; inset: auto 0 0 0; padding: 14px; color: var(--photo-text); background: linear-gradient(transparent, rgba(0,0,0,.85)); display: grid; gap: 4px; }
.acard .cap b { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.05; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--font-wide); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-faint); padding: 10px 8px; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td img { width: 64px; height: 44px; object-fit: cover; display: block; }
.table tr.trashed { opacity: .55; }
.table td b { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 24px 0; }
.linkbtn { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0; }
.admin-photos .ph .meta { position: absolute; top: 0; left: 0; right: 0; padding: 6px 8px; color: var(--photo-text); background: linear-gradient(rgba(0,0,0,.8), transparent); font-size: 7px; line-height: 1.5; opacity: 0; transition: opacity .2s; pointer-events: none; text-transform: none; letter-spacing: .05em; }
.admin-photos .ph:hover .meta { opacity: 1; }
.admin-photos .ph.warn { outline-color: #e0a020; } .admin-photos .ph.warn::before { content: "web ?"; position: absolute; top: 6px; right: 6px; background: #e0a020; color: var(--black); font-family: var(--font-wide); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; padding: 3px 6px; z-index: 1; }
.admin-photos .ph.trashed { opacity: .6; }
.admin-photos .ph.dragging { opacity: .35; outline-color: var(--cream); }
.admin-photos .ph[draggable="true"] { cursor: grab; }
.upload-panel { margin: 18px 0; background: var(--surface); padding: 18px; display: grid; gap: 12px; }
.upload-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-head b { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.upload-panel .bar { height: 6px; margin: 0; }
.upload-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--cream-soft); }
.upload-log { list-style: none; margin: 0; padding: 0; max-height: 160px; overflow: auto; font-size: 12px; color: var(--cream-soft); display: grid; gap: 3px; }
.upload-log li.err { color: var(--red); } .upload-log li.warn { color: #e0a020; }
.admin-main .form-grid { margin-bottom: 8px; }
.side-search { flex: 0 0 auto; }
.field select { width: 100%; background: var(--surface); border: 0; border-bottom: 1px solid var(--line-strong); padding: 12px 8px; font-family: var(--font-body); font-size: 16px; color: var(--cream); outline: none; border-radius: 0; cursor: pointer; }
.field select:focus { border-bottom-color: var(--red); }
.field select option { background: var(--surface); color: var(--cream); }
.about { padding-inline: var(--gutter); }
/* Thème clair : textes secondaires posés sur les voiles sombres des photos */
.card .cap .wide, .acard .cap .wide, .next-album .in .wide, .lightbox .wide { color: rgba(244, 239, 232, .78); }
.next-album .in { color: var(--cream); }
body:has(.lightbox.open) .topbar { opacity: 0; pointer-events: none; }

/* ─── Améliorations : pied de page, accessibilité, retours visuels ─────── */
.skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--cream); color: var(--black); padding: 10px 16px; font-family: var(--font-wide); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-col .wide { margin-bottom: 4px; color: var(--red); }
.foot-col a { position: relative; width: fit-content; }
.foot-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--cream); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.foot-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.foot-col p { margin: 0; max-width: 40ch; line-height: 1.5; }
.muted { color: var(--cream-soft); }
.foot .meta .credit { color: var(--cream); border-bottom: 1px solid var(--line-strong); }
.foot .meta .credit:hover { color: var(--red); border-color: var(--red); }
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 300; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--black); color: var(--cream); font-family: var(--font-display); font-size: 20px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.12); transition: transform .3s var(--ease), background .3s, color .3s; }
.totop:hover { background: var(--cream); color: var(--black); transform: translateY(-3px); }
.a-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.g-item { background: var(--surface-2); }
.g-item img { transition: opacity .6s ease, transform .9s var(--ease); }
.row .thumb, .card img, .acard img, .next-album img { background: var(--surface-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.about-figure { margin: 0; display: grid; gap: 10px; }
.about-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-foot p { font-size: 16px; }
.index-tools .search input { font-size: 24px; }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .totop { right: 14px; bottom: 14px; }
  .a-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.about { padding-top: 130px; }
.foot { padding-bottom: 90px; }
/* Lightbox : hauteur de piste définie pour que max-height:100% s'applique (photos portrait) */
.lightbox .stage { grid-template-rows: 100%; grid-template-columns: 100%; }
.lightbox .stage img { max-height: 100%; max-width: min(92vw, 1600px); width: auto; height: auto; }
.lightbox { background: #0c0a09; }
.latest { padding: 80px var(--gutter) 40px; }
.latest .section-head a.wide { color: var(--red); }
.index { padding-top: 130px; }

/* ─── Téléchargement : icône sur chaque photo, bouton net dans la lightbox ── */
.g-item .dl { position: absolute; top: 10px; left: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(247,243,236,.92); color: var(--cream); opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--ease), background .2s, color .2s; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 2; }
.g-item .dl svg { width: 18px; height: 18px; }
.g-item:hover .dl, .g-item .dl:focus-visible { opacity: 1; transform: none; }
.g-item .dl:hover { background: var(--red); color: #fff; }
@media (hover: none) { .g-item .dl { opacity: 1; transform: none; width: 34px; height: 34px; } }
.lightbox .ui { align-items: center; gap: 16px; padding: 16px var(--gutter); background: linear-gradient(rgba(12,10,9,.85), rgba(12,10,9,0)); z-index: 3; }
.lb-info { display: grid; gap: 4px; min-width: 0; }
.lb-name { color: rgba(244,239,232,.6) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.lb-actions { display: flex; align-items: center; gap: 12px; }
.lightbox .lb-dl { opacity: 1; letter-spacing: .16em; padding: 12px 18px; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; border-color: var(--red); }
.lightbox .lb-dl svg { width: 16px; height: 16px; }
.lightbox .lb-dl:hover { background: #fff; color: var(--red); }
.lightbox .lb-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(244,239,232,.35); display: grid; place-items: center; padding: 0; opacity: 1; }
.lightbox .lb-close svg { width: 18px; height: 18px; }
.lightbox .lb-close:hover { background: rgba(244,239,232,.15); color: #fff; }
.lightbox .nav { width: 54px; height: 54px; border-radius: 50%; padding: 0; display: grid; place-items: center; background: rgba(12,10,9,.55); border: 1px solid rgba(244,239,232,.25); opacity: .85; }
.lightbox .nav svg { width: 22px; height: 22px; }
.lightbox .nav:hover { opacity: 1; background: var(--red); border-color: var(--red); color: #fff; }
.lightbox .nav.prev { left: 16px; } .lightbox .nav.next { right: 16px; }
.lightbox .stage { inset: 76px 0 110px; }
@media (max-width: 720px) {
  .lightbox .ui { padding: 12px 14px; }
  .lb-name { display: none; }
  .lightbox .lb-dl { padding: 12px 14px; font-size: 8px; }
  .lightbox .nav { width: 42px; height: 42px; top: auto; bottom: 100px; transform: none; background: rgba(12,10,9,.7); }
  .lightbox .stage { inset: 66px 0 96px; }
}

/* ─── Titres plus gras (demande des photographes) ───────────────────── */
.hero h1, .a-hero h1, .section-head h2, .row .t, .card .cap h3, .next-album h3, .editor-head h2, .login h1, .stat b, .g-head h2 { font-weight: 700; }
.hero h1 em, .a-hero h1 em, .section-head h2 em, .row .t em, .card .cap h3 em, .next-album h3 em, .editor-head h2 em, .login h1 em, .g-head h2 em { font-weight: 600; }
.brand { font-weight: 600; }

/* ─── Page contact ─────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.contact-form { display: grid; gap: 22px; }
.contact-form .field input, .contact-form .field textarea { font-size: 18px; padding: 12px 0; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-form .msg { min-height: 20px; }
.contact-form .msg.ok { color: var(--ok); font-family: var(--font-body); font-size: 15px; text-transform: none; letter-spacing: 0; }
.contact-form .msg.err { margin: 0; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
