/* BHS Team — feuille de style du site public */
:root {
  --acc: #FF3C00;
  --ink: #141414;
  --paper: #F3EBEB;
  --slate: #242B2F;
  --pad: clamp(20px, 5vw, 72px);
  --clip: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: 'Chakra Petch', sans-serif; font-weight: 300; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
img { max-width: 100%; }
::selection { background: var(--acc); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: var(--ink); display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding: 14px var(--pad); border-bottom: 1px solid rgba(243,235,235,.12); text-transform: uppercase; letter-spacing: .04em; }
.nav__brand { font-weight: 700; font-size: 20px; letter-spacing: .06em; margin-right: auto; }
.nav__brand span { font-weight: 300; opacity: .55; }
.nav__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 500; }

/* Boutons */
.btn { display: inline-block; background: var(--acc); color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; padding: 14px 28px; clip-path: var(--clip); }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--sm { font-size: 14px; padding: 10px 22px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.btn--ghost { background: transparent; color: var(--paper); border: 1px solid rgba(243,235,235,.35); font-weight: 500; padding: 13px 28px; clip-path: none; }
.btn--ghost:hover { background: transparent; border-color: var(--acc); color: var(--acc); }
.btn--dark { background: var(--ink); color: var(--paper); font-size: 16px; padding: 16px 32px; margin-top: 32px; }
.btn--dark:hover { background: var(--paper); color: var(--ink); }

/* Sections */
.sec { position: relative; padding: 0 var(--pad) 120px; }
.sec--dark { background-color: var(--ink); color: var(--paper); }
.sec--paper { background-color: var(--paper); color: var(--ink); }
.sec--accent { background: var(--acc); color: var(--ink); padding-bottom: 96px; }
.sec--hero { padding-bottom: 96px; overflow: hidden; }
.sec--brief { overflow: hidden; }
.sec--flush { padding: 0; }
body[data-topo="1"] .sec--dark { background-image: var(--topo-dark, none); background-size: 450px; }
body[data-topo="1"] .sec--squad { background-image: var(--topo-light, none); background-size: 450px; }

/* Bandeau de section */
.bar { display: flex; align-items: center; gap: 14px; padding: 28px 0; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.sec--flush .bar { padding: 28px var(--pad); }
.bar__sq { flex: none; width: 5px; height: 5px; border: 1px solid currentColor; opacity: .45; }
.bar__dim { opacity: .5; font-weight: 300; }
.bar__line { flex: 1; height: 1px; background: currentColor; opacity: .2; }
.sec--accent .bar__sq { opacity: 1; }
.sec--accent .bar__line { opacity: .35; }

/* Titres */
.h2 { display: flex; align-items: center; gap: 16px; font-weight: 500; text-transform: uppercase; font-size: 30px; letter-spacing: .02em; }
.h2--bold { font-weight: 700; }
.h2__x { flex: none; width: 14px; height: 14px; border: 1px solid currentColor; opacity: .6; display: grid; place-items: center; font-size: 10px; line-height: 1; }
.h2--gal { margin: 72px 0 40px; }

/* Accueil */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: end; padding-top: 64px; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,235,235,.6); margin-bottom: 28px; }
.hero__x { width: 12px; height: 12px; border: 1px solid var(--acc); display: grid; place-items: center; font-size: 9px; line-height: 1; color: var(--acc); }
.hero__title { font-weight: 700; text-transform: uppercase; font-size: clamp(72px, 13vw, 210px); line-height: .86; letter-spacing: -.02em; }
.hero__title span { display: block; }
.hero__title .acc, .strip .acc { color: var(--acc); }
.hero__title .ital { font-style: italic; }
.hero__side { display: flex; flex-direction: column; gap: 32px; max-width: 460px; }
.hero__logo { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.hero__lead { font-size: 19px; line-height: 1.5; color: rgba(243,235,235,.82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.strip { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 88px; padding-top: 18px; border-top: 1px solid rgba(243,235,235,.18); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,235,235,.65); }

/* Briefing */
.brief { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; padding-top: 72px; }
.brief__text { max-width: 520px; }
.brief__body { padding-left: 30px; display: flex; flex-direction: column; gap: 22px; margin-top: 24px; font-size: 18px; line-height: 1.55; color: rgba(243,235,235,.78); }
.brief__big { font-weight: 700; font-size: clamp(160px, 26vw, 420px); line-height: .8; letter-spacing: -.04em; color: var(--slate); text-align: right; user-select: none; }

/* Jeux */
.games { display: block; }
.games__intro { background: var(--acc); color: var(--ink); padding: clamp(32px, 5vw, 56px) var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; }
.games__intro > div:first-child { max-width: 620px; }
.games__lead { margin: 24px 0 0 30px; font-size: 18px; line-height: 1.55; font-weight: 400; }
.games__main { font-size: 14px; line-height: 1.5; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.games__main-label { font-weight: 700; font-size: 16px; }
.games__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(300px, 1fr); }
.game { position: relative; overflow: hidden; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; justify-content: flex-end; }
.game::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--tab); z-index: 2; }
.game { grid-column: span var(--span, 1); }
.game > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .4s ease; }
.game--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,20,20,.94) 0%, rgba(20,20,20,.7) 32%, rgba(20,20,20,0) 68%); }
.game:hover > img { transform: scale(1.04); }
.game__txt { position: relative; z-index: 1; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.game__txt h3 { margin: 0 0 4px; font-weight: 700; text-transform: uppercase; font-size: 17px; letter-spacing: .04em; }
.game__txt span { font-size: 14px; font-weight: 400; letter-spacing: .02em; }
@media (max-width: 640px) { .games__grid { grid-template-columns: minmax(0, 1fr); } .game { grid-column: span 1; } }

/* Escouade */
.squad__head { padding-top: 72px; max-width: 440px; }
.squad__head p { margin: 24px 0 0 30px; font-size: 18px; line-height: 1.55; color: rgba(20,20,20,.75); }
.squad__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 48px; }
.member { background: rgba(243,235,235,.7); border: 1px solid rgba(20,20,20,.18); padding: 22px; display: flex; flex-direction: column; gap: 18px; transition: background .15s, color .15s; }
.member:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.member__top { display: flex; justify-content: space-between; align-items: flex-start; }
.member__num { font-size: 13px; font-weight: 500; letter-spacing: .08em; opacity: .65; }
.member__img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--slate); }
.member__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.member__role { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C42E00; }
.member:hover .member__role { color: var(--acc); }
.member h3 { margin: 6px 0 0; font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.member p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; opacity: .75; }

/* Galerie */
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.gal__item { margin: 0; position: relative; background: var(--slate); aspect-ratio: 16 / 9; overflow: hidden; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__item--feature { grid-column: 1 / -1; aspect-ratio: auto; background: #fff; }
.gal__item--feature img { height: auto; }
.gal__item figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--paper); padding: 8px 16px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; max-width: 100%; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: end; padding-top: 72px; }
.contact__title { font-weight: 700; text-transform: uppercase; font-size: clamp(48px, 7vw, 112px); line-height: .9; letter-spacing: -.01em; }
.contact__text { margin: 28px 0 0; font-size: 19px; line-height: 1.5; font-weight: 400; max-width: 44ch; }
.contact__follow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.contact__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.contact__links a { padding: 18px 0; border-bottom: 1px solid var(--ink); font-weight: 500; text-transform: uppercase; font-size: 17px; letter-spacing: .04em; }
.contact__links a:hover { color: var(--paper); }

/* Pied de page */
.foot { background: var(--ink); padding: 28px var(--pad) 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(243,235,235,.65); }
.foot__x { width: 12px; height: 12px; border: 1px solid rgba(243,235,235,.4); display: grid; place-items: center; font-size: 9px; line-height: 1; }
.foot__line { flex: 1; min-width: 40px; height: 1px; background: rgba(243,235,235,.18); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game > img { transition: none; }
}

/* Galerie : image cliquable + visionneuse */
.gal__zoom { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.gal__zoom:focus-visible { outline: 3px solid var(--acc); outline-offset: -3px; }
.gal__item--feature .gal__zoom { height: auto; }
.gal__zoom img { transition: transform .3s ease; }
@media (hover: hover) { .gal__zoom:hover img { transform: scale(1.03); } }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.94); display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 24px 0; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: grid; gap: 12px; justify-items: center; min-width: 0; max-height: calc(100vh - 48px); }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; display: block; }
.lb__fig figcaption { color: var(--paper); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 16px; align-items: baseline; text-align: center; }
.lb__count { opacity: .6; font-variant-numeric: tabular-nums; }
.lb__btn { background: transparent; color: var(--paper); border: 1px solid rgba(243,235,235,.35); width: 48px; height: 48px; font: 400 30px/1 sans-serif; cursor: pointer; justify-self: center; }
.lb__btn:hover, .lb__btn:focus-visible { border-color: var(--acc); color: var(--acc); outline: none; }
.lb__close { position: absolute; top: 16px; right: 16px; }
.lb--single .lb__prev, .lb--single .lb__next { visibility: hidden; }
html.lb-open { overflow: hidden; }
@media (max-width: 640px) { .lb { grid-template-columns: 48px minmax(0, 1fr) 48px; } .lb__btn { width: 40px; height: 40px; } }
