@font-face {
  font-family: 'Bahnschrift';
  src: url('../fonts/bahnschrift.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-soft: #F4F3EE;
  --bg-card: #ffffff;
  --bg-hover: #f0efea;
  --text: #2c2c2a;
  --text-mid: #6b6965;
  --text-light: #9e9a94;
  --border: #e0ddd7;
  --border-light: #eceae5;
  --accent: #8c7e6a;
  --accent-hover: #6e6354;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --font: 'Bahnschrift', 'Segoe UI', system-ui, sans-serif;
  --transition: 0.25s ease;
  --max-w: 1100px;
  --nav-h: 52px;
}

[data-theme="dark"] {
  --bg: #121212;
  --bg-soft: #2c2c2c;
  --bg-card: #1e1e1c;
  --bg-hover: #2a2a27;
  --text: #e0ddd8;
  --text-mid: #9e9a94;
  --text-light: #6b6965;
  --border: #333330;
  --border-light: #2a2a27;
  --accent: #c4b59a;
  --accent-hover: #d6cbb5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
}

html { }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

[data-theme="dark"] .nav-logo img {
  filter: invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: all var(--transition);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dark mode toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1rem;
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-light);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* === HERO === */
.hero {
  background: var(--bg-soft);
  padding: 3.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background var(--transition);
  min-height: 180px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-btn {
  position: relative;
  width: 320px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-btn:active {
  transform: translateY(0);
}

.hero-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: filter 0.3s ease;
}

.hero-btn:hover img {
  filter: brightness(0.4);
}

.hero-btn span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.8);
}

.hero-btn.active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === BANNER === */
.page-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  max-height: 220px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.page-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

/* === ACCUEIL IMAGE === */
.accueil-image {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.accueil-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.accueil-image.hidden {
  display: none;
}

/* === CONTENT AREA === */
.content-area {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Breadcrumb / navigation trail */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1.2rem 0 0.8rem;
  font-size: 0.82rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

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

.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 600; font-size: 1.3rem; }

/* === SUBCATEGORY TABS === */
.subcategory-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.subcat-tab {
  background: none;
  border: 1.5px solid var(--text);
  color: var(--text);
  padding: 0.5rem 1.6rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.subcat-tab:hover {
  background: var(--bg-hover);
}

.subcat-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* === SERIES GRID === */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  padding-bottom: 3rem;
}

.series-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.series-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.series-card-img-wrap {
  overflow: hidden;
  background: var(--bg-soft);
}

.series-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.series-card-info {
  padding: 0.8rem 1rem;
}

.series-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.series-card-count {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* === IMAGE GALLERY (masonry-ish columns) === */
.gallery-header {
  padding: 1.5rem 0 1rem;
}

.gallery-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.gallery-desc {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 0.8rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: color var(--transition);
}

.gallery-back:hover { color: var(--text); }

.gallery-item-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.7rem 0.5rem;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}

/* === GALERIE JUSTIFIÉE (séries) === */
/* padding-bottom généreux : requis pour le margin-top négatif de .section-caption */
.gallery-justified {
  padding-bottom: 3rem;
}

.gj-row {
  display: flex;
  align-items: flex-start;
}

/* Rangée trop peu remplie pour être justifiée : centrée */
.gj-row-center {
  justify-content: center;
}

/* Colonne de détails dans une rangée composée (vedette + détails) */
.gj-stack {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.gj-item {
  position: relative;
  flex: 0 0 auto;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
}

.gj-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.gj-item:hover img {
  filter: brightness(0.85);
}

/* Image mise en avant : entière, pleine largeur, plafonnée à 70vh.
   Pattern inline-block (et non flex) : avec un conteneur flex rétréci
   sur son contenu, le max-width:100% de l'image devient circulaire et
   n'est plus appliqué → débordement horizontal sur mobile. */
.gj-featured {
  text-align: center;
}

.gj-featured-inner {
  display: inline-block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
  max-width: 100%;
}

.gj-featured-inner img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.gj-featured-inner:hover img {
  filter: brightness(0.85);
}

.gj-featured-inner .gallery-item-caption {
  text-align: left;
}

/* === LIGHTBOX === */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay.zoomed {
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  flex-shrink: 0;
}

.lightbox-img-wrap.loading::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.lightbox-overlay.zoomed .lightbox-img-wrap {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  margin: auto;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  transition: none;
}

.lightbox-overlay.zoomed .lightbox-img-wrap img {
  max-width: min(100vw, 1920px);
  max-height: none;
  width: auto;
  height: auto;
}

.lightbox-overlay.zoomed .lightbox-counter,
.lightbox-overlay.zoomed .lightbox-nav {
  display: none;
}

.lightbox-overlay.zoomed .lightbox-caption {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  z-index: 10;
}

.lightbox-caption {
  color: #ccc;
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font);
}

.lightbox-counter {
  color: #777;
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover { opacity: 1; background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  min-width: 60px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}

.lightbox-overlay:hover .lightbox-nav {
  opacity: 1;
}

.lightbox-nav span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}

.lightbox-nav:hover span {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

/* === NAVIGATION BAS DE SÉRIE (retour + série suivante) === */
.series-bottom-nav {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-light);
}

.series-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 1.1rem;
  color: var(--text-mid);
  font-family: var(--font);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.series-nav-back:hover { color: var(--text); border-color: var(--text-light); }
.series-nav-back svg { width: 16px; height: 16px; }

.series-nav-next {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  text-align: right;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: all var(--transition);
  min-width: 0;
}

.series-nav-next:hover { border-color: var(--accent); background: var(--bg-soft); }

.series-nav-next-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.series-nav-next-title {
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-nav-next svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Lien vers une page projet complète (rappel croisé) --- */
.series-project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg-soft);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}

.series-project-link:hover { background: var(--accent); color: #fff; }
.series-project-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.series-project-link-section {
  margin-top: -2.2rem;
  margin-bottom: 1.4rem;
}

/* La légende (ou l'espaceur) qui suit un lien de section n'a plus besoin de
   remonter dans le padding de la galerie : c'est désormais le lien qui le fait. */
.series-project-link-section + .section-caption {
  margin-top: 0;
}

.series-project-link-section + .section-gap {
  display: none;
}

@media (max-width: 640px) {
  .series-bottom-nav { flex-direction: column; }
  .series-nav-next { justify-content: space-between; text-align: left; }
}

/* === PAGE PROJET (réalisation à la une détaillée) === */
.projet-header { position: relative; }

.projet-cover {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  max-height: 480px;
  overflow: hidden;
  background: var(--bg-soft);
}

.projet-cover img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.projet-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 0.4rem;
}

.projet-page-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.4rem;
}

.projet-body-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem 0;
}

.projet-body-wide {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.8rem 1.5rem 0;
}

.projet-block-gallery {
  padding-bottom: 0;
  margin: 0.2rem 0 1rem;
}

.projet-block-text {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 1.8rem;
}

.projet-block-text p { margin-bottom: 1rem; }
.projet-block-text p:last-child { margin-bottom: 0; }

.projet-block-image {
  margin: 0 0 1.8rem;
}

.projet-block-image img {
  width: 100%;
  border-radius: 4px;
}

.projet-block-image figcaption {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.projet-footer-cta {
  max-width: 720px;
  margin: 1rem auto 4rem;
  padding: 0 1.5rem;
  text-align: center;
}

.projet-missing {
  max-width: 500px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--text-mid);
}

.projet-missing a { display: inline-block; margin-top: 1rem; }

@media (max-width: 640px) {
  .projet-cover, .projet-cover img { max-height: 280px; height: 280px; }
  .projet-page-title { font-size: 1.5rem; }
}

/* === BIO PAGE === */
.bio-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.bio-portrait {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  object-fit: cover;
  justify-self: center;
}

.bio-text h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.bio-text p {
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.8;
}

.bio-signature {
  display: block;
  width: 120px;
  margin: 1.5rem auto 0;
}

[data-theme="dark"] .bio-signature {
  filter: invert(1);
}

/* === CONTACT PAGE === */
.contact-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-content {
  text-align: left;
}

.contact-content h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-intro {
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.contact-illustration {
  width: 100%;
  max-width: 400px;
  justify-self: center;
  align-self: center;
  border-radius: 4px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: all var(--transition);
}

.contact-email-link:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
}

.contact-email-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

/* === SECTION SEPARATORS === */
.section-caption {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-mid);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 500;
  margin-top: -2.2rem;
  padding: 0;
  margin-bottom: 3.5rem;
}

.section-caption::before,
.section-caption::after {
  content: '';
  flex: 1;
  min-width: 1.5rem; /* les lignes restent visibles même avec un texte long */
  height: 1px;
  background: var(--border);
}

.section-caption span {
  text-align: center; /* le texte long passe à la ligne au lieu de déborder */
}

.section-gap {
  height: 1.5rem;
}

/* === ATELIERS PAGE === */

/* --- Bandeau d'accueil (même esprit que les sections de la home) --- */
.atelier-hero {
  background: var(--bg-soft);
  transition: background var(--transition);
}

.atelier-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.4rem 1.5rem 3rem;
}

.atelier-hero-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.3rem 0 1.2rem;
}

.atelier-hero-intro {
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.8;
}

.atelier-hero-intro p {
  margin-bottom: 0.9rem;
}

.atelier-hero-intro p:last-child {
  margin-bottom: 0;
}

.atelier-hero-intro p:first-of-type {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
}

.atelier-hero-cta {
  margin-top: 1.6rem;
}

/* --- Liste des ateliers --- */
.atelier-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.2rem 1.5rem 4rem;
}

.workshop-card {
  padding: 2.6rem 0;
  border-top: 1px solid var(--border-light);
}

.workshop-card:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* --- Teaser : photo à la une + résumé --- */
.workshop-teaser {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.8rem;
  align-items: center;
}

.workshop-cover {
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}

.workshop-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.workshop-card:hover .workshop-cover img {
  transform: scale(1.03);
}

.workshop-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.workshop-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}

.workshop-summary {
  color: var(--text-mid);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 1.1rem;
}

.workshop-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-hover);
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
}

.workshop-more-btn:hover { color: var(--text); }

.workshop-more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.workshop-card.open .workshop-more-btn svg {
  transform: rotate(180deg);
}

/* --- Accordéon : texte intégral + galerie complète --- */
.workshop-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.workshop-card.open .workshop-details {
  opacity: 1;
  padding-top: 1.8rem;
}

.workshop-context {
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--border);
}

.workshop-text {
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.workshop-text p {
  margin-bottom: 1rem;
}

/* La galerie justifiée n'a pas besoin de son propre padding-bottom :
   l'espacement entre ateliers est déjà géré par .workshop-card */
.workshop-card .gallery-justified {
  padding-bottom: 0;
}

@media (max-width: 640px) {
  .workshop-teaser {
    grid-template-columns: 1fr;
  }
  .workshop-cover {
    aspect-ratio: 16 / 9;
  }
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.75rem;
  transition: border-color var(--transition);
}

/* === TRANSITIONS === */
.fade-enter {
  opacity: 0;
  transform: translateY(12px);
}

.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: 0.8rem;
    gap: 0.2rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero {
    padding: 2rem 1rem;
    gap: 1rem;
  }

  .hero-btn {
    width: 100%;
    max-width: 300px;
    height: 50px;
  }

  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
  }

  .bio-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1.5rem;
  }

  .bio-portrait {
    max-width: 200px;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-content { text-align: center; }

  .contact-illustration {
    max-width: 250px;
  }

  .subcategory-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lightbox-nav span {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .atelier-hero-inner { padding: 2.4rem 1.2rem 2.2rem; }
  .atelier-hero-title { font-size: 1.55rem; }
}

@media (max-width: 480px) {
  .hero-btn { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   ACCUEIL — hero immersif & sections
   (le bloc "home" de site.json pilote tout ; sans lui, le site
   retombe sur l'ancien hero à 3 boutons ci-dessus)
   ============================================================ */

.hero.hidden { display: none; }
.home-sections.hidden { display: none; }

/* --- Hero immersif : fondu lent de fresques --- */
.hero.hero-immersive {
  position: relative;
  padding: 0;
  min-height: 480px;
  height: 78vh;
  max-height: 860px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: #23221f;
}

.hero.hero-immersive.hero-noimg {
  background: linear-gradient(160deg, #2e2c29, #201f1d);
  min-height: 340px;
  height: 46vh;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: opacity;
}

.hero-slide.active { opacity: 1; }

/* Zoom avant progressif, relancé à chaque image (voir restartZoom en JS) — pas de dézoom, pas de saut */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.hero-zoom { animation: hero-ken 8.5s ease-out forwards; }
  @keyframes hero-ken {
    from { transform: scale(1); }
    to   { transform: scale(1.11); }
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(18, 17, 15, 0.66) 0%,
    rgba(18, 17, 15, 0.28) 42%,
    rgba(18, 17, 15, 0.10) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.hero-title { margin: 0 0 0.8rem; line-height: 1; }

.hero-signature {
  height: 88px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.hero-name {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-tagline {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.35rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  margin-bottom: 1.6rem;
}

.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.68rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-cta-primary {
  background: rgba(255, 255, 255, 0.96);
  color: #2c2c2a;
  border: 1px solid rgba(255, 255, 255, 0.96);
}

.hero-cta-primary:hover { background: #fff; color: #111; transform: translateY(-1px); }

.hero-cta-secondary {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
}

.hero-cta-secondary:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; color: #fff; }

/* --- En-têtes de sections d'accueil --- */
.hsec-head { margin-bottom: 1.6rem; }

.hsec-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.hsec-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
}

/* --- Les trois univers --- */
.home-univers {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}

.home-univers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.univers-card {
  position: relative;
  height: 340px;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #333;
  text-align: left;
  display: block;
  width: 100%;
  font-family: var(--font);
}

.univers-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform 0.55s ease, filter 0.4s ease;
}

.univers-card:hover img { transform: scale(1.045); filter: brightness(0.62); }

.univers-card-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 13, 0.62), rgba(15, 14, 13, 0.04) 55%);
}

.univers-card-txt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.15rem 1.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.univers-card-label {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.univers-card-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- Réalisations à la une --- */
.home-featured {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.4rem 1.5rem 0.6rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 1.4rem;
}

.featured-item { display: block; cursor: pointer; color: inherit; }

.featured-img {
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 3 / 2;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.featured-item:hover .featured-img img { transform: scale(1.03); filter: brightness(0.9); }

.featured-caption {
  padding: 0.65rem 0.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.featured-title { font-weight: 600; font-size: 0.95rem; color: var(--text); }

.featured-item:hover .featured-title { color: var(--accent-hover); }

.featured-context { font-size: 0.8rem; color: var(--text-mid); }

/* --- Votre projet de fresque --- */
.home-projet {
  background: var(--bg-soft);
  margin-top: 3.4rem;
  transition: background var(--transition);
}

.home-projet-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.4rem 1.5rem 3.6rem;
}

.projet-intro {
  color: var(--text-mid);
  font-size: 0.96rem;
  line-height: 1.75;
  max-width: 660px;
  margin-bottom: 2.2rem;
}

.projet-steps {
  display: flex;
  align-items: stretch;
  margin-bottom: 2.2rem;
}

.projet-step {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.3rem;
}

.projet-step-arrow {
  flex: 0 0 auto;
  width: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
}

.projet-step-arrow svg { width: 20px; height: 20px; stroke-width: 2; }

.projet-step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.projet-step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.projet-step p {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.projet-note {
  font-size: 0.87rem;
  color: var(--text-mid);
  max-width: 660px;
  margin-bottom: 1.8rem;
}

.note-link {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.note-link:hover { color: var(--text); }

.projet-cta-row { text-align: center; }

.projet-cta {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 1.7rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
}

.projet-cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

/* --- Lieux d'intervention --- */
.home-refs {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 0.4rem;
  text-align: center;
}

.refs-places {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 2.1;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

.refs-sep { color: var(--border); margin: 0 0.6rem; }

/* --- Bandeau contact final --- */
.home-cta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4.4rem;
  text-align: center;
}

.home-cta-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.4rem; }

.home-cta-text { color: var(--text-mid); margin-bottom: 1.6rem; }

.home-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.home-insta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 0.7rem 0.4rem;
  transition: color var(--transition);
}

.home-insta:hover { color: var(--text); }

.home-insta svg { width: 18px; height: 18px; }

/* --- Apparition douce au défilement --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view { opacity: 1; transform: none; }

/* --- Responsive accueil --- */
@media (max-width: 900px) {
  .univers-card { height: 260px; }
}

@media (max-width: 768px) {
  .hero.hero-immersive {
    height: 66vh;
    min-height: 420px;
    padding: 0;
  }

  .hero-content { padding: 0 1.2rem 2rem; }
  .hero-signature { height: 62px; }
  .hero-name { font-size: 1.7rem; }
  .hero-tagline { font-size: 0.82rem; letter-spacing: 0.1em; }
  .hero-subtitle { font-size: 0.88rem; margin-bottom: 1.2rem; }
  .hero-cta { padding: 0.6rem 1.15rem; font-size: 0.8rem; }

  .home-univers-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .univers-card { height: 180px; }

  .featured-grid { grid-template-columns: 1fr; gap: 1.6rem; }

  .projet-steps { flex-direction: column; }
  .projet-step-arrow { width: auto; height: 1.8rem; }
  .projet-step-arrow svg { transform: rotate(90deg); }

  .refs-sep { margin: 0 0.4rem; }
}

@media (max-width: 480px) {
  .hsec-title { font-size: 1.25rem; }
  .home-cta-title { font-size: 1.25rem; }
}
