/* -------------------------------------------------------------
   style01.css — Minimal accessible
   Fond clair, contrastes élevés, focus visibles, grands espacements.
   ------------------------------------------------------------- */

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --text: #141412;
  --muted: #4a4a44;
  --line: #d8d8d2;
  --accent: #0055cc;
  --accent-ink: #ffffff;
  --radius: 8px;
  --header-h: 72px;
  --gap: clamp(12px, 1.8vw, 24px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

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: .75rem 1.25rem;
  min-height: var(--header-h);
  padding: .75rem clamp(20px, 4vw, 56px);
  background: #fafaf8ee;
  border-bottom: 2px solid var(--text);
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
}

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

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  color: var(--muted);
}

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

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

.breadcrumb .sep {
  color: var(--muted);
  opacity: .7;
}

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

/* Barre de services (header et footer) */
.services-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.services-nav a {
  border: 2px solid var(--text);
  background: var(--surface);
  color: var(--text);
  padding: .45rem .85rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.services-nav a:hover {
  background: var(--text);
  color: var(--bg);
}

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

.lang-nav button {
  padding: .5rem .85rem;
  border: 2px solid var(--text);
  border-radius: 6px;
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

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

/* -------------------------------------------------------------
   Intro
   ------------------------------------------------------------- */
.intro {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 88px) clamp(20px, 4vw, 56px) clamp(20px, 4vw, 40px);
}

.intro h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 800;
}

.intro p {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

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

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

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

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

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--text);
}

.card-media {
  position: relative;
}

.card-media img {
  width: 100%;
  height: auto;
  min-height: 120px;
  object-fit: cover;
  background: var(--surface-2);
}

.card-video {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  background: var(--surface-2);
}

.card-caption {
  padding: 14px 16px 18px;
}

.card-caption h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}

.card-caption p {
  margin: 4px 0 0;
  font-size: .85rem;
  color: var(--muted);
}

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

.card-play:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.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: var(--accent-ink);
}

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

/* Flèche droite vers la lightbox */
.card-open {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: var(--surface);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}

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

.card-open:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

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

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

.status.error {
  color: #b3261e;
  font-weight: 600;
}

/* -------------------------------------------------------------
   Contenu éditorial
   ------------------------------------------------------------- */
.editorial {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 56px) 72px;
  color: var(--text);
  font-size: 1.05rem;
}

.editorial .summary {
  font-size: 1.15rem;
  color: var(--muted);
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 0 0 32px;
}

.editorial .description h2,
.editorial .description h3 {
  line-height: 1.3;
  margin: 32px 0 12px;
}

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

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

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

/* -------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0c0c0cf2;
  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-radius: 8px;
}

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

.lb-caption {
  margin-top: 14px;
  color: #fff;
  font-size: .95rem;
  text-align: center;
}

.lb-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff99;
  font-size: .85rem;
  letter-spacing: .1em;
}

.lb-close,
.lb-prev,
.lb-next,
.lb-pause {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ffffffcc;
  background: #00000080;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover,
.lb-pause:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.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(--text);
  padding: 28px clamp(20px, 4vw, 56px) 40px;
  color: var(--muted);
  font-size: .9rem;
}

.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;
  }
}
