/* StreloxShots — design « Portfolio photographe »
   Les 3 couleurs principales sont réglables dans l'admin (Réglages > Couleurs). */
:root {
  --bg: #0B0B0B;
  --fg: #F2F0EC;
  --accent: #D8913A;
  --soft: #C9C5BD;      /* texte courant */
  --muted: #A8A49C;     /* texte secondaire */
  --faint: #8C887F;
  --line: #2A2A2A;
  --line-2: #3A3A3A;
  --card: #141414;
  --card-2: #161616;
  --card-line: #242424;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--fg);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--fg); }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--accent); color: var(--bg); padding: 8px 12px; }
.loading { padding: 80px var(--pad); color: var(--muted); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.display { font-family: var(--display); font-weight: 500; text-transform: uppercase; }
.eyebrow { margin: 0 0 12px; font-family: var(--display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.fade { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-height: 44px; }
.brand svg { flex: none; }
.brand img { height: 40px; width: auto; }
.wordmark { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .16em; color: var(--fg); white-space: nowrap; }
.wordmark b { font-weight: 500; color: var(--accent); }

/* ---------- En-tête accueil ---------- */
.top-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.social-handle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; letter-spacing: .04em; text-decoration: none; }
.social-handle svg, .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; background: var(--accent); color: var(--bg); cursor: pointer; text-decoration: none;
  font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  transition: filter .2s, background .2s, color .2s;
}
.btn:hover { color: var(--bg); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); filter: none; }
.btn-outline { min-height: 44px; padding: 0 20px; font-size: 14px; background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--bg); filter: none; }

/* ---------- Bannière ---------- */
.banner img { width: 100%; height: clamp(160px, 30vw, 470px); object-fit: cover; object-position: center; }

.intro-row { padding: 28px 0; }
.intro-row p { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--soft); }

/* ---------- Onglets ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; min-height: 56px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; text-decoration: none; color: var(--muted);
  font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .16em; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--fg); }
.tab[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }

.section { padding: 40px 0 clamp(80px, 10vw, 128px); }

/* ---------- Photographie : catégories ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.cat {
  min-height: 44px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer;
  font-family: var(--display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; transition: border-color .2s, background .2s, color .2s;
}
.cat:hover { border-color: var(--accent); }
.cat[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.cat-head .eyebrow { margin-bottom: 8px; }
.cat-head h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.cat-head > p { margin: 0; max-width: 44ch; font-size: 16px; line-height: 1.6; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 20px; }
.tile { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--fg); }
.tile-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--card-2); border: 1px solid var(--card-line); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile-meta span:first-child { font-family: var(--display); font-size: 18px; letter-spacing: .1em; text-transform: uppercase; }
.tile-meta span:last-child { font-size: 13px; color: var(--muted); text-align: right; }
.tile:hover .tile-meta span:first-child { color: var(--accent); }
.empty { padding: 48px; border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.more-btn { margin-top: 48px; }

/* ---------- Présentation ---------- */
.pres { display: flex; flex-wrap: wrap; align-items: center; gap: 48px clamp(32px, 6vw, 96px); padding-top: 56px; }
.pres-photo { flex: 1 1 340px; min-width: 0; max-width: 520px; }
.pres-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pres-text { flex: 1.3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pres-text .eyebrow { margin: 0; }
.pres-text h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 5.5vw, 76px); line-height: 1.02; letter-spacing: .04em; text-transform: uppercase; }
.prose { display: flex; flex-direction: column; gap: 1em; max-width: 58ch; font-size: 18px; line-height: 1.7; color: var(--soft); }
.prose p, .prose ul { margin: 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.facts { margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px; }
.facts dt { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pres-text .actions { margin-top: 8px; }

/* ---------- Collaborations ---------- */
.wide-img { width: 100%; height: clamp(180px, 24vw, 380px); object-fit: cover; object-position: center; }
.collab-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin: 56px 0 40px; }
.collab-head h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.collab-head p { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--soft); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.service { background: var(--card); border: 1px solid var(--card-line); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.service .num { font-family: var(--display); font-size: 14px; letter-spacing: .16em; color: var(--accent); }
.service h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: .08em; text-transform: uppercase; }
.service p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 28px; }
.stat p { margin: 0; }
.stat .v { font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1.2; }
.stat .v.accent { color: var(--accent); }
.stat .t { margin-top: 6px; font-size: 15px; color: var(--muted); }
.refs-title { margin: 48px 0 16px; font-family: var(--display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.ref { min-height: 88px; padding: 16px; border: 1px solid var(--card-line); display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.ref img { max-height: 56px; width: auto; object-fit: contain; }
.collab-cta { margin-top: 48px; }

/* ---------- Contact ---------- */
.contact { padding-top: 56px; }
.contact h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(52px, 8vw, 120px); line-height: .95; letter-spacing: .04em; text-transform: uppercase; }
.contact h2 span { color: var(--accent); }
.contact-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px clamp(32px, 6vw, 96px); margin-top: 56px; }
.contact-info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-info > p { margin: 0; max-width: 38ch; font-size: 17px; line-height: 1.6; color: var(--soft); }
.contact-mail { font-family: var(--display); font-size: 24px; letter-spacing: .04em; overflow-wrap: anywhere; }
.contact-links { display: flex; flex-direction: column; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.form { flex: 1.4 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--card); color: var(--fg); color-scheme: dark; width: 100%;
}
.field textarea { padding: 14px; min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-status { margin: 12px 0 0; font-size: 15px; color: var(--soft); }
.form-status.ok { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* ---------- Page galerie ---------- */
.g-header { border-bottom: 1px solid var(--line); }
.g-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.g-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 3vw, 40px); }
.g-nav a { display: inline-flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; text-decoration: none; color: var(--muted); font-family: var(--display); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.g-nav a:hover { color: var(--fg); }
.g-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; font-size: 14px; color: var(--muted); text-decoration: none; }
.g-hero { padding: clamp(32px, 6vw, 72px) 0 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.g-hero h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(56px, 11vw, 168px); line-height: .9; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.g-hero > p { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.65; color: var(--soft); }
.names { margin: 0 0 40px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 14px; line-height: 2; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.g-section + .g-section { margin-top: 56px; }
.g-section h2 { margin: 0 0 24px; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3vw, 36px); letter-spacing: .08em; text-transform: uppercase; }
/* Mosaïque : les photos sont réparties dans les colonnes ligne par ligne (gauche → droite) par app.js */
.masonry { display: flex; align-items: flex-start; gap: 20px; }
.masonry-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.shot { break-inside: avoid; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.shot button { display: block; width: 100%; padding: 0; border: 1px solid var(--card-line); background: var(--card-2); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform .6s ease; }
.shot button:hover img { transform: scale(1.025); }
.shot figcaption { font-family: var(--display); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.aussi { padding: clamp(80px, 10vw, 128px) 0; }
.aussi h2 { margin: 0 0 28px; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4vw, 48px); letter-spacing: .06em; text-transform: uppercase; }
.aussi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.aussi-card { position: relative; display: flex; align-items: flex-end; justify-content: space-between; min-height: 220px; padding: 24px; overflow: hidden; background: var(--card-2); border: 1px solid var(--card-line); text-decoration: none; color: var(--fg); }
.aussi-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; transition: opacity .4s, transform .7s; }
.aussi-card:hover img { opacity: .5; transform: scale(1.04); }
.aussi-card span { position: relative; }
.aussi-card .n { font-family: var(--display); font-size: 28px; letter-spacing: .08em; text-transform: uppercase; }
.aussi-card .a { font-size: 24px; color: var(--accent); }
.aussi-card:hover { color: var(--fg); }

.cta-band { border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-band p { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: .04em; text-transform: uppercase; }
.cta-band p span { color: var(--accent); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.footer .wordmark { font-size: 16px; }
.footer .copy { font-family: var(--body); letter-spacing: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(5, 5, 5, .96); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 24px 0; min-width: 0; }
.lightbox img { max-height: 84vh; max-width: 100%; object-fit: contain; }
.lightbox figcaption { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.lightbox button { height: 100%; border: 0; background: none; color: #fff; font-size: 44px; opacity: .7; cursor: pointer; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { position: absolute; top: 8px; right: 12px; width: 52px; height: 52px; font-size: 40px; }

@media (max-width: 600px) {
  .tab { font-size: 15px; letter-spacing: .12em; min-height: 48px; }
  .tabs { gap: 0 18px; }
  .wordmark { font-size: 19px; }
  .lightbox { grid-template-columns: 36px 1fr 36px; }
  .lightbox button { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
