/* -------------------------------------------------------------
   style08.css — Swiss typographique
   Grille stricte, Helvetica, rouge signal, hiérarchie forte.
   ------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #eeeeee;
  --text: #111111;
  --muted: #555555;
  --line: #111111;
  --accent: #e63946;
  --accent-ink: #ffffff;
  --radius: 0;
  --header-h: 64px;
  --gap: clamp(14px, 1.8vw, 22px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  min-height: var(--header-h);
  padding: .6rem clamp(20px, 3vw, 48px);
  background: #fffffff5;
  border-bottom: 2px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--accent);
  opacity: .8;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

/* Barre de services */
.services-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 2px solid var(--line);
}

.services-nav a {
  padding: .45rem .8rem;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  border-right: 2px solid var(--line);
  background: var(--surface);
  transition: background .18s ease, color .18s ease;
}

.services-nav a:last-child {
  border-right: none;
}

.services-nav a:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Sélecteur de langue */
.lang-nav {
  display: flex;
  gap: .4rem;
}

.lang-nav button {
  padding: .44rem .65rem;
  border: 2px solid var(--line);
  color: var(--text);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .18s ease, color .18s ease;
}

.lang-nav button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* -------------------------------------------------------------
   Intro
   ------------------------------------------------------------- */
.intro {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 100px) clamp(20px, 3vw, 48px) clamp(24px, 3vw, 40px);
  border-bottom: 2px solid var(--line);
}

.intro h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: .88;
  letter-spacing: -.045em;
  font-weight: 900;
  text-transform: uppercase;
}

.intro p {
  margin: 24px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  font-weight: 600;
}

/* -------------------------------------------------------------
   Masonry
   ------------------------------------------------------------- */
.site-main {
  min-height: 60vh;
}

.masonry {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px) 72px;
  column-count: 2;
  column-gap: var(--gap);
}

@media (min-width: 700px) {
  .masonry {
    column-count: 3;
  }
}

@media (min-width: 1100px) {
  .masonry {
    column-count: 4;
  }
}

/* -------------------------------------------------------------
   Cartes
   ------------------------------------------------------------- */
.card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 var(--gap);
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: background .2s ease;
}

.card:hover {
  background: var(--surface-2);
}

.card-media {
  position: relative;
}

.card-media img {
  width: 100%;
  height: auto;
  min-height: 140px;
  object-fit: cover;
  background: var(--surface-2);
  filter: grayscale(100%);
  transition: filter .3s ease;
}

.card:hover .card-media img {
  filter: grayscale(0%);
}

.card-video {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
  background: var(--surface-2);
  filter: grayscale(100%);
  transition: filter .3s ease;
}

.card:hover .card-video {
  filter: grayscale(0%);
}

.card-caption {
  padding: 14px 16px 18px;
  border-top: 2px solid var(--line);
}

.card-caption h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.card-caption p {
  margin: 5px 0 0;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
}

/* Bouton play */
.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.card-play:hover {
  background: var(--text);
}

.card-play span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}

.card-play:hover span {
  border-left-color: #fff;
}

.card-play.is-hidden {
  display: none;
}

/* Flèche lightbox */
.card-open {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-left: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}

.card:hover .card-open,
.card:focus-within .card-open {
  opacity: 1;
}

.card-open:hover {
  background: var(--text);
}

@media (hover: none) {
  .card-open {
    opacity: 1;
  }
}

/* -------------------------------------------------------------
   États
   ------------------------------------------------------------- */
.status {
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status.error {
  color: var(--accent);
}

/* -------------------------------------------------------------
   Contenu éditorial
   ------------------------------------------------------------- */
.editorial {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px clamp(20px, 3vw, 48px) 80px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.editorial .summary {
  font-size: 1.1rem;
  color: var(--text);
  border-left: 6px solid var(--accent);
  padding-left: 1.2rem;
  margin: 0 0 34px;
  font-weight: 700;
}

.editorial .description h2,
.editorial .description h3 {
  line-height: 1.2;
  margin: 34px 0 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.editorial .description p {
  margin: 0 0 16px;
}

.editorial .description ul,
.editorial .description ol {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

.editorial .description a {
  color: var(--accent);
  text-decoration: underline;
}

/* -------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #111111f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lb-stage {
  margin: 0;
  width: min(92vw, 1200px);
  height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lb-media {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-media img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 2px solid #fff;
}

.lb-video {
  max-width: 100%;
  max-height: 70vh;
  background: #000;
  border: 2px solid #fff;
}

.lb-caption {
  margin-top: 16px;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.lb-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffffa0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.lb-close,
.lb-prev,
.lb-next,
.lb-pause {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover,
.lb-pause:hover {
  background: var(--text);
}

.lb-close {
  top: 16px;
  right: 16px;
  font-size: 1.8rem;
}

.lb-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-pause {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
  border-top: 2px solid var(--line);
  padding: 28px clamp(20px, 3vw, 48px) 44px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}

.site-footer .breadcrumb,
.site-footer .services-nav,
.site-footer .lang-nav {
  margin-bottom: 18px;
}

.site-footer > p {
  margin: 0;
}

/* -------------------------------------------------------------
   Mobile
   ------------------------------------------------------------- */
@media (max-width: 600px) {
  .lb-prev {
    left: 8px;
  }
  .lb-next {
    right: 8px;
  }
  .lb-close {
    top: 10px;
    right: 10px;
  }
  .lb-stage {
    width: 96vw;
    height: 86vh;
  }
  .card-play {
    width: 52px;
    height: 52px;
  }
}