/* -------------------------------------------------------------
   style02.css — Éditorial zen
   Typographie serif, grille asymétrique douce, grande respiration.
   ------------------------------------------------------------- */

:root {
  --bg: #f6f3ed;
  --surface: #fbf9f5;
  --surface-2: #eae4d9;
  --text: #2a2620;
  --muted: #6b6255;
  --line: #d8d0c2;
  --accent: #8a4e2f;
  --accent-ink: #fdfbf7;
  --radius: 3px;
  --header-h: 80px;
  --gap: clamp(16px, 2.2vw, 30px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 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: .6rem 1.2rem;
  min-height: var(--header-h);
  padding: .9rem clamp(20px, 4vw, 60px);
  background: #f6f3edf0;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  font-style: italic;
}

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

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

.breadcrumb a:hover {
  text-decoration: underline;
}

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

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

/* Barre de services */
.services-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.services-nav a {
  padding: .35rem .1rem;
  font-size: .82rem;
  font-style: italic;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.services-nav a::after {
  content: " ,";
  color: var(--muted);
  margin-right: .4rem;
}

.services-nav a:last-child::after {
  content: "";
  margin-right: 0;
}

.services-nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

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

.lang-nav button {
  padding: .4rem .6rem;
  color: var(--muted);
  font-size: .72rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid transparent;
}

.lang-nav button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

/* -------------------------------------------------------------
   Intro
   ------------------------------------------------------------- */
.intro {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 110px) clamp(20px, 4vw, 60px) clamp(24px, 4vw, 48px);
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  font-weight: 400;
  font-style: italic;
  max-width: 75%;
}

.intro p {
  margin: 24px 0 0 auto;
  max-width: 440px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  padding-left: 20%;
}

/* -------------------------------------------------------------
   Masonry : léger décalage éditorial
   ------------------------------------------------------------- */
.site-main {
  min-height: 60vh;
}

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

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

@media (min-width: 1080px) {
  .masonry {
    column-count: 3;
  }
  .masonry .card:nth-child(3n + 2) {
    margin-top: 40px;
  }
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px #00000038;
}

.card-media {
  position: relative;
}

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

.card:hover .card-media img {
  filter: saturate(1.05);
}

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

.card-caption {
  padding: 16px 20px 22px;
}

.card-caption h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  text-transform: none;
  letter-spacing: .01em;
}

.card-caption p {
  margin: 5px 0 0;
  font-size: .82rem;
  font-style: italic;
  color: var(--muted);
}

/* Bouton play */
.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid #ffffffc0;
  background: #0000004d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, border-color .25s 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: 13px solid #fff;
}

.card-play:hover span {
  border-left-color: var(--accent-ink);
}

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

/* Flèche lightbox */
.card-open {
  position: absolute;
  bottom: 62px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
  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;
  }
  .masonry .card:nth-child(3n + 2) {
    margin-top: 0;
  }
}

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

.status.error {
  color: #a13a2e;
}

/* -------------------------------------------------------------
   Contenu éditorial
   ------------------------------------------------------------- */
.editorial {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 60px) 88px;
  color: var(--text);
  font-size: 1.12rem;
}

.editorial .summary {
  font-size: 1.3rem;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 1.4rem;
  margin: 0 0 40px;
}

.editorial .description h2,
.editorial .description h3 {
  line-height: 1.3;
  margin: 40px 0 16px;
  font-weight: 600;
  font-style: italic;
}

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

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

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

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

.lightbox[hidden] {
  display: none;
}

.lb-stage {
  margin: 0;
  width: min(94vw, 1300px);
  height: 84vh;
  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: 72vh;
  object-fit: contain;
  border-radius: 3px;
}

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

.lb-caption {
  margin-top: 16px;
  color: #f0e8da;
  font-size: .95rem;
  font-style: italic;
  text-align: center;
}

.lb-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #f0e8da99;
  font-size: .82rem;
  font-style: italic;
  letter-spacing: .15em;
}

.lb-close,
.lb-prev,
.lb-next,
.lb-pause {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #f0e8da80;
  background: #00000045;
  color: #f0e8da;
  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: 1px solid var(--line);
  padding: 32px clamp(20px, 4vw, 60px) 44px;
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
}

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

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

/* -------------------------------------------------------------
   Mobile
   ------------------------------------------------------------- */
@media (max-width: 600px) {
  .intro h1 {
    max-width: 100%;
  }
  .intro p {
    padding-left: 0;
  }
  .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;
  }
}