/* ═══════════════════════════════════════════════════════════
   CLARA VESPER — Feuille de style principale
   Mobile-first · Breakpoints : 768px (tablet) · 1024px (desktop)
═══════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #F4EFE6;
  --ink:     #1C1815;
  --terra:   #B84A2A;
  --sage:    #5E7055;
  --muted:   #8A8278;
  --border:  rgba(28, 24, 21, 0.12);
  --border-s:rgba(28, 24, 21, 0.25);

  --fd: 'Cormorant Garamond', Georgia, serif;
  --fb: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h:   64px;
  --pad-x:   1.25rem;    /* padding horizontal mobile */
  --pad-x-d: 3rem;       /* padding horizontal desktop */
}

@media (min-width: 768px) {
  :root { --nav-h: 72px; --pad-x: 2rem; }
}
/* ── Accueil mobile : colonnes empilées ── */
@media (max-width: 767px) {
  /* home-left absent — home-right seul, centré */
  .home-layout {
    justify-content: center;
    align-items: flex-start;
  }

  /* home-right et #composition-frame : voir règles de base ci-dessus */
}
@media (min-width: 1024px) {
  :root { --pad-x: var(--pad-x-d); }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  /* overflow-x: hidden; — désactivé : couperait l'iframe mobile agrandie */
}

img { display: block; max-width: 100%; }
a, button { color: inherit; }
button { font-family: inherit; }
fieldset { border: none; }

/* ── CURSEUR PERSONNALISÉ (desktop, pointeur uniquement) ── */
@media (pointer: fine) {
  html { cursor: none; }
  a, button { cursor: none; }
}

#cursor {
  display: none;
  position: fixed; pointer-events: none; z-index: 9999;
  width: 22px; height: 22px;
  border: 1.5px solid var(--terra); border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .2s;
  mix-blend-mode: multiply;
}
#cursor-dot {
  display: none;
  position: fixed; pointer-events: none; z-index: 9999;
  width: 4px; height: 4px;
  background: var(--terra); border-radius: 50%;
  transform: translate(-50%, -50%);
}
@media (pointer: fine) {
  #cursor, #cursor-dot { display: block; }
}
#cursor.expand { width: 44px; height: 44px; background: rgba(184,74,42,.07); }


/* ══════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════ */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--fd);
  font-size: 1.5rem;           /* ×1.5 */
  font-weight: 700;            /* gras */
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--terra);         /* rouge brique */
  white-space: nowrap;
}

/* ── Hamburger mobile ── */
.nav-burger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 6px; width: 32px; height: 32px;
  background: none; border: none; padding: 4px;
  z-index: 400;
}
.nav-burger span {
  display: block; width: 100%; height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
  transform-origin: center;
}
.nav-burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.open span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Menu desktop / mobile ── */
.nav-links {
  display: none; list-style: none;
  flex-direction: column; gap: 0;
  position: fixed; inset: var(--nav-h) 0 0;
  background: var(--bg);
  padding: 2.5rem var(--pad-x);
  border-top: 1px solid var(--border);
  z-index: 299;
}
.nav-links.open { display: flex; }

.nav-links li { border-bottom: 1px solid var(--border); }
.nav-link {
  display: block; padding: 1rem 0;
  font-size: 1.2rem;           /* .8rem × 1.5 */
  font-weight: 700;            /* gras */
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }

@media (min-width: 768px) {
  .nav-burger { display: none; }
  .nav-links {
    display: flex; flex-direction: row; gap: 2.5rem;
    position: static; background: none;
    padding: 0; border: none; inset: auto;
  }
  .nav-links li { border: none; }
  .nav-link {
    padding: 0;
    font-size: 1.08rem;          /* .72rem × 1.5 */
    font-weight: 700;            /* gras */
    position: relative;
  }
  .nav-link::after {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 0; height: 1px; background: var(--terra); transition: width .3s;
  }
  .nav-link:hover::after, .nav-link.active::after { width: 100%; }
}


/* ══════════════════════════════════════════════════════
   PAGE SYSTEM
══════════════════════════════════════════════════════ */
.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.page.active { display: block; }

/* ── Footer ── */
.site-footer {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.75rem var(--pad-x);
  border-top: 1px solid var(--border);
  font-size: .68rem; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}
@media (min-width: 640px) {
  .site-footer {
    flex-direction: row; justify-content: space-between;
    align-items: center;
  }
}


/* ══════════════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* @keyframes fragIn supprimé — fragments remplacés par iframe */


/* ══════════════════════════════════════════════════════
   PAGE : ACCUEIL
══════════════════════════════════════════════════════ */
/* ── Layout principal de l'accueil : 55% gauche / 45% droite ── */
.home-layout {
  display: flex;
  flex-direction: column;      /* empiler iframe + lien verticalement */
  align-items: center;         /* centrer dans l'axe horizontal */
  justify-content: flex-start;
  width: 100%;
  min-height: calc(100svh - var(--nav-h));
}

/* Réduire l'espace entre la nav et l'iframe sur desktop.
   Ajuster cette valeur : 0 = collé à la nav, var(--nav-h) = espace normal. */
@media (min-width: 768px) {
  #page-home { padding-top: calc(var(--nav-h) - 10.5rem); }
}

/* home-left supprimé */

/* ── Desktop uniquement : règles protégées pour ne pas écraser le mobile ── */
/* ── home-right et iframe : base mobile-first (hors media query) ─────────────
   Règles par défaut = mobile. Elles s'appliquent dès le premier render,
   avant que les media queries soient évaluées. Le desktop les écrase ensuite. */
.home-right {
  flex-shrink: 0;
  width: 90vw;
  height: 90vw;
  min-height: 90vw;
  position: relative;
  top: 0; left: 0;
  overflow: visible;
  background: transparent;
  border: none;
}

#composition-frame {
  position: absolute;
  top: 0; left: 0;
  width: 90vw;
  height: 90vw;
  transform: none;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
@media (min-width: 768px) {
  .home-right {
    width: 45vw;
    height: 45vw;
    min-height: unset;         /* écrase le défaut mobile */
    flex-shrink: 0;
    position: relative;
    top: 0;
    overflow: visible;
  }

  #composition-frame {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    height: 60.5vw;
    border: none;
    background: transparent;
    pointer-events: none;
    transition: top .15s ease;
  }
}

/* ── Contenu hero (colonne gauche) ── */
.home-hero {
  display: flex; align-items: center;
  padding: 3rem var(--pad-x) 2rem;
  flex: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: .65rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.2rem;
  animation: fadeIn .9s ease both;
}

.hero-name {
  font-family: var(--fd);
  font-size: clamp(4rem, 18vw, 11rem);
  font-weight: 300; line-height: .92; letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp .9s .15s ease both;
}
.hero-name em { font-style: italic; color: var(--terra); }

.hero-tagline {
  font-family: var(--fd);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-style: italic; font-weight: 300; color: var(--muted);
  max-width: 320px; margin-bottom: 2.5rem;
  animation: fadeUp .9s .3s ease both;
}

.btn-link {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: .2rem;
  transition: color .2s, border-color .2s;
  animation: fadeUp .9s .45s ease both;
}
.btn-link:hover { color: var(--terra); border-color: var(--terra); }
.btn-link .arr { transition: transform .25s; display: inline-block; }
.btn-link:hover .arr { transform: translateX(5px); }

/* ── Aperçu séries sur l'accueil ── */
.home-series { padding: 0 var(--pad-x) 5rem; }

.series-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .series-grid { grid-template-columns: 1fr 1fr; }
}

.series-card {
  cursor: pointer; display: flex; flex-direction: column; gap: 1rem;
}
.series-card:nth-child(even) { margin-top: 0; }
@media (min-width: 640px) {
  .series-card:nth-child(even) { margin-top: 3.5rem; }
}

/* series-cover : fonctionne en <div> (aplat) et en <img> (photo réelle) */
.series-cover {
  display: block;
  aspect-ratio: 4/3; width: 100%;
  object-fit: cover; object-position: center;
  transition: opacity .3s;
}
.series-card:hover .series-cover { opacity: .85; }

.series-badge {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra); margin-bottom: .25rem;
}
.series-name {
  font-family: var(--fd); font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-style: italic; font-weight: 300;
}
.series-meta { font-size: .78rem; color: var(--muted); margin-top: .3rem; }


/* ══════════════════════════════════════════════════════
   PAGE : PORTFOLIO
══════════════════════════════════════════════════════ */
.portfolio-header {
  padding: 2.5rem var(--pad-x) 1rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
@media (min-width: 768px) {
  .portfolio-header {
    flex-direction: row; align-items: flex-end;
    justify-content: space-between; padding-bottom: 1.5rem;
  }
}

.portfolio-title-wrap {
  position: relative;          /* ancre le popup */
  display: flex; align-items: flex-end; gap: .75rem;
}

.section-ghost {
  font-family: var(--fd);
  font-size: clamp(2.5rem, 10vw, 7rem);
  font-weight: 300; line-height: 1; letter-spacing: -.02em;
  color: rgba(28,24,21,.06); user-select: none;
  transition: color .35s var(--ease);
}
/* Quand une série est active : titre légèrement plus visible */
.section-ghost.is-series {
  color: rgba(28,24,21,.12);
}

/* ── Bouton (+)/(×) ── */
.series-info-btn {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: none; border: none;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .4rem;        /* aligner visuellement avec la baseline du titre */
  transition: color .2s, transform .25s var(--ease);
}
.series-info-btn[hidden] { display: none; }
.series-info-btn svg { width: 20px; height: 20px; }

/* Afficher + ou × selon l'état */
.series-info-btn .icon-plus  { display: block; }
.series-info-btn .icon-close { display: none;  }
.series-info-btn[aria-expanded="true"] .icon-plus  { display: none;  }
.series-info-btn[aria-expanded="true"] .icon-close { display: block; }

.series-info-btn:hover { color: var(--ink); }
.series-info-btn[aria-expanded="true"] { color: var(--terra); }
.series-info-btn[aria-expanded="true"]:hover { transform: rotate(90deg); }

/* ── Popup description ── */
.series-popup {
  position: absolute;
  top: calc(100% + .75rem); left: 0;
  width: min(420px, 90vw);
  background: var(--bg);
  border: 1px solid var(--border-s);
  padding: 1.1rem 1.35rem;
  z-index: 100;
  /* Animation */
  animation: popupIn .2s var(--ease) both;
}
.series-popup[hidden] { display: none; }

.series-popup-text {
  font-size: .85rem; line-height: 1.85; color: var(--muted);
}

@keyframes popupIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.filter-tabs { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.filter-tab {
  font-size: .67rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; padding: .2rem 0;
  transition: color .2s; white-space: nowrap;
}
.filter-tab.active, .filter-tab:hover { color: var(--ink); }
.filter-tab.active { border-bottom: 1px solid var(--ink); }

/* ── Grille portfolio ────────────────────────────────────────────────────
   Mobile (<768px)  : 2 colonnes égales, ratio 3/4 uniforme
   Desktop (≥768px) : 3 colonnes asymétriques, ratio dicté par aspectRatio du JSON
   Algorithme de placement : JS remplit toujours la colonne au plus bas contenu.
   Largeurs : col-1 = 43%, col-2 = 23%, col-3 = 34% (flex proportionnel).
   Espaces  : --grid-gap (≈4% du conteneur).
── */

/* Conteneur commun */
/* ══════════════════════════════════════════════════════
   GALERIE — GRILLE FIXE (axes en vw)
   Constantes :
     THUMB_H  = 11.80vw  (hauteur de toutes les vignettes)
     ROW_STEP = 30.90vw  (distance top→top entre deux lignes)
     COL_1    = 19.10vw  (axe gauche de la 1re colonne)
     COL_2    = 50.00vw  (axe gauche de la 2e colonne)
     COL_3    = 80.90vw  (axe gauche de la 3e colonne)
   La largeur de chaque vignette = aspectRatio × THUMB_H,
   calculée et injectée inline par JS.
══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   GALERIE — POSITIONNEMENT PAR AXES FIXES
══════════════════════════════════════════════════════ */

/* Conteneur : hauteur calculée par JS */
.portfolio-grid {
  position: relative;
  width: 100%;
}

/* ── Desktop : vignette positionnée en absolu ── */
@media (min-width: 768px) {
  .work-item {
    position: absolute;     /* left + top injectés par JS */
    cursor: pointer;
    /* Pas de overflow:hidden ici → la caption sort librement sous l'image */
  }
}

/* Partie image : overflow:hidden + scale au survol */
.work-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* height injectée inline par JS en desktop ; auto en mobile */
  transition: transform .35s var(--ease);
}
.work-item:hover .work-img { transform: scale(1.04); }

/* Image de fond */
.work-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}

/* ── Caption (titre + metas) sous la vignette ── */
.work-caption {
  padding-top: .5vw;
  /* Largeur libre : le titre peut dépasser la largeur de l'image */
  width: max-content;
  overflow: visible;
}

.work-ttl {
  font-family: var(--fd); font-style: italic; font-weight: 300;
  font-size: clamp(1.875rem, 2.25vw, 2.75rem);
  color: var(--ink); line-height: 1.25;
  white-space: nowrap;
  /* Suppression du clip : le titre s'affiche en entier */
}

.work-meta {
  font-size: clamp(1.08rem, 1.3vw, 1.53rem);  /* .72vw × 1.8 */
  letter-spacing: .08em; color: var(--muted);
  margin-top: .25vw;
  opacity: 0; transform: translateY(-3px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.work-item:hover .work-meta { opacity: 1; transform: none; }

/* ── Mobile : 2 colonnes sur axes absolus (24vw / 76vw) ── */
@media (max-width: 767px) {

  /* Conteneur : position:relative indispensable pour ancrer les absolus.
     La hauteur est calculée et injectée par JS.                          */
  .portfolio-grid {
    position: relative !important;  /* priorité sur tout autre règle */
    padding: 0;
  }

  /* Chaque vignette mobile : absolue, left/top/width injectés par JS */
  .work-item-mobile {
    position: absolute;
    cursor: pointer;
  }
  .work-item-mobile:hover .work-img-mobile { transform: scale(1.03); }

  /* Zone image : width héritée du parent (100%), height injectée inline */
  .work-img-mobile {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* NE PAS définir de height ici — c'est l'inline style qui fait foi */
    transition: transform .35s var(--ease);
  }

  /* Légende : même largeur que l'image (héritée du work-item-mobile) */
  .work-caption-mobile {
    padding-top: 1.5vw;
    width: max-content;   /* titre libre, non contraint par la largeur de l'image */
    overflow: visible;
  }
  .work-ttl-mobile {
    font-family: var(--fd); font-style: italic; font-weight: 300;
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    color: var(--ink); line-height: 1.2;
    white-space: nowrap;
    /* Pas de troncature */
  }
  .work-meta-mobile {
    font-size: clamp(.6rem, 2.5vw, .85rem);
    letter-spacing: .08em; color: var(--muted);
    margin-top: 1vw;
    white-space: nowrap;
  }
}

/* ── Tactile : metas toujours visibles ── */
@media (pointer: coarse) {
  .work-meta { opacity: 1; transform: none; }
}

@media (min-width: 768px) {
  #page-portfolio { padding-bottom: 6rem; }
}





/* ══════════════════════════════════════════════════════
   PAGE : FICHE ŒUVRE
══════════════════════════════════════════════════════ */
.back-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1.5rem var(--pad-x) 0;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); background: none; border: none;
  transition: color .2s;
}
.back-btn:hover { color: var(--ink); }

/* Mobile : colonne unique */
.artwork-layout {
  display: flex; flex-direction: column;
  padding: 1.5rem 0 5rem;
}

/* Desktop : deux colonnes côte à côte */
@media (min-width: 1024px) {
  .artwork-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; padding: 2rem 0 0;
  }
}

.artwork-visual { padding: 0 var(--pad-x) 2rem; }

@media (min-width: 1024px) {
  .artwork-visual {
    padding: 0 2rem 0 var(--pad-x);
    position: sticky; top: calc(var(--nav-h) + 1.5rem);
    height: fit-content;
  }
}

.artwork-main {
  width: 100%;
  /* Pas de ratio fixe : la hauteur s'adapte à l'image affichée */
  display: block;
}

/* L'image occupe toute la largeur, hauteur auto = image entière visible */
.artwork-main img {
  display: block;
  width: 100%; height: auto;
  object-fit: contain;
}

/* Placeholder aplat couleur (avant chargement ou sans image) */
.artwork-main-placeholder {
  width: 100%; aspect-ratio: 3/4;
}

.artwork-strip {
  display: flex; gap: .65rem;
  overflow-x: auto; padding: .75rem 0 .4rem;
  scrollbar-width: thin; scrollbar-color: var(--muted) var(--border);
}
.artwork-strip::-webkit-scrollbar       { height: 2px; }
.artwork-strip::-webkit-scrollbar-track { background: var(--border); }
.artwork-strip::-webkit-scrollbar-thumb { background: var(--muted); }

/* Vignettes de détail : 256×256px source, affichées en 80/96px carrés */
.detail-thumb {
  flex: 0 0 80px; height: 80px;
  overflow: hidden;
  position: relative;
  /* image background injectée inline par JS */
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity .2s, transform .2s var(--ease);
  outline: none;
}
@media (min-width: 768px) {
  .detail-thumb { flex: 0 0 96px; height: 96px; }
}
.detail-thumb:hover  { opacity: .78; }
.detail-thumb:active { transform: scale(.95); }
/* Anneau de focus accessible */
.detail-thumb:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--terra);
}

.artwork-info {
  padding: 0 var(--pad-x) 2rem;
}
@media (min-width: 1024px) {
  .artwork-info { padding: 0 var(--pad-x) 5rem 2rem; }
}

.aw-series {
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra); margin-bottom: .85rem;
}
.aw-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300; font-style: italic; line-height: 1.1;
  margin-bottom: 1.75rem;
}
.aw-desc {
  font-size: .9rem; line-height: 1.95;
  max-width: 480px; margin-bottom: 2.25rem;
}

.aw-meta { border-top: 1px solid var(--border); padding-top: 1.5rem; }

.meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
  font-size: .85rem; gap: 1rem;
}
.meta-lbl {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); flex-shrink: 0;
}

.aw-nav {
  display: flex; justify-content: space-between; margin-top: 2.25rem;
}
.aw-nav-btn {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); background: none; border: none;
  transition: color .2s; display: flex; align-items: center; gap: .5rem;
}
.aw-nav-btn:hover { color: var(--ink); }


/* ══════════════════════════════════════════════════════
   PAGE : À PROPOS
══════════════════════════════════════════════════════ */
.about-layout {
  display: flex; flex-direction: column;
  gap: 2.5rem; padding: 2.5rem var(--pad-x) 5rem;
}
@media (min-width: 1024px) {
  .about-layout {
    display: grid; grid-template-columns: 1fr 1.6fr;
    gap: 5rem; max-width: 1200px;
  }
}

.about-sticky {
  display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start;
}
@media (min-width: 1024px) {
  .about-sticky {
    position: sticky; top: calc(var(--nav-h) + 2rem);
    height: fit-content;
  }
}

/* Fonctionne en <div> (aplat placeholder) et en <img> (photo réelle) */
.about-photo {
  display: block;
  width: 100%; max-width: 340px;
  aspect-ratio: 3/4;
  background: #8B7355;
  object-fit: cover;
  object-position: center top;
}
@media (min-width: 1024px) { .about-photo { max-width: 100%; } }

.cv-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--ink); padding: .8rem 1.4rem;
  transition: background .2s, color .2s;
}
.cv-btn:hover { background: var(--ink); color: var(--bg); }

.about-name {
  font-family: var(--fd);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 300; line-height: 1.05; margin-bottom: 2rem;
}
.about-name em { font-style: italic; color: var(--terra); display: block; }

.sec-label {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra); margin-bottom: .75rem; margin-top: 2.25rem;
  display: block;
}

.about-p { font-size: .9rem; line-height: 1.95; max-width: 540px; margin-top: .75rem; }

.about-quote {
  font-family: var(--fd); font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-style: italic; font-weight: 300; line-height: 1.6;
  border-left: 2px solid var(--terra); padding-left: 1.25rem;
  margin: 2.25rem 0; max-width: 480px;
}

/* Liste expositions */
.expo-list { list-style: none; max-width: 520px; }
.expo-item {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: baseline;
  padding: .65rem 0; border-bottom: 1px solid var(--border);
  font-size: .85rem; gap: .5rem;
}
.expo-title { font-family: var(--fd); font-style: italic; }
.expo-venue { color: var(--muted); font-size: .82rem; }
.expo-year  { color: var(--muted); white-space: nowrap; }


/* ══════════════════════════════════════════════════════
   PAGE : CONTACT
══════════════════════════════════════════════════════ */
.contact-layout {
  display: flex; flex-direction: column; gap: 3rem;
  padding: 2.5rem var(--pad-x) 5rem;
}
@media (min-width: 1024px) {
  .contact-layout {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 6rem; max-width: 1050px;
  }
}

.contact-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 300; font-style: italic; line-height: 1.15;
  margin-bottom: 1.5rem;
}
.contact-note { font-size: .87rem; color: var(--muted); line-height: 1.85; margin-bottom: 2.25rem; }

.social-links { display: flex; flex-direction: column; gap: .5rem; }
.social-link {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.0rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.social-link:hover { color: var(--ink); }
.social-link::before {
  content: ''; width: 22px; height: 1px;
  background: currentColor; flex-shrink: 0;
}

/* Formulaire */
.form-grp { margin-bottom: 1.65rem; }
.form-lbl {
  display: block; font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.form-input, .form-ta {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--border);
  padding: .5rem 0;
  font-family: var(--fb); font-size: .9rem;
  color: var(--ink); outline: none; transition: border-color .2s;
  -webkit-appearance: none; border-radius: 0;
}
.form-input:focus, .form-ta:focus { border-bottom-color: var(--ink); }
.form-ta { resize: vertical; line-height: 1.8; }

.type-group { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .25rem; }
.type-opt { display: flex; align-items: center; gap: .4rem; }
.type-opt input[type="radio"] { accent-color: var(--terra); width: 14px; height: 14px; }
.type-opt span { font-size: .8rem; color: var(--muted); }

.form-feedback {
  min-height: 1.4rem; font-size: .82rem; color: var(--terra);
  margin-bottom: .5rem;
}

.btn-send {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--fb); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bg); background: var(--ink);
  border: 1px solid var(--ink); padding: .9rem 1.8rem;
  transition: background .2s, border-color .2s;
  margin-top: .5rem;
}
.btn-send:hover { background: var(--terra); border-color: var(--terra); }


/* ══════════════════════════════════════════════════════
   UTILITAIRES & ANIMATIONS D'ENTRÉE
══════════════════════════════════════════════════════ */
.anim-up {
  opacity: 0;
  animation: fadeUp .55s var(--ease) forwards;
}


/* ══════════════════════════════════════════════════════
   BOUTON ZOOM (sur la vignette principale de la fiche)
══════════════════════════════════════════════════════ */
.artwork-main-wrap {
  position: relative;          /* ancre le bouton zoom */
}

.artwork-zoom-btn {
  /* Caché par défaut, révélé au survol du visuel */
  position: absolute; bottom: .85rem; right: .85rem;
  width: 40px; height: 40px;
  background: var(--bg); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  opacity: 0; transform: scale(.85);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 10;
}
.artwork-zoom-btn svg { width: 40px; height: 40px; }

.artwork-main-wrap:hover .artwork-zoom-btn,
.artwork-main-wrap:focus-within .artwork-zoom-btn {
  opacity: 1; transform: scale(1);
}
/* Toujours visible sur tactile */
@media (pointer: coarse) {
  .artwork-zoom-btn { opacity: 1; transform: scale(1); }
}
.artwork-zoom-btn:hover { color: var(--terra); }


/* ══════════════════════════════════════════════════════
   LIGHTBOX PLEIN ÉCRAN
══════════════════════════════════════════════════════ */
/* ── Masquer la nav quand le lightbox est ouvert ── */
body.lightbox-open #main-nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

/* Curseur renforcé en mode zoom (fond noir bleuté + cercle blanc plus large) */
body.lightbox-open #cursor {
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(10, 14, 22, .35);
  mix-blend-mode: normal;
  transition: width .2s var(--ease), height .2s var(--ease),
              border .2s, background .2s;
}
body.lightbox-open #cursor.expand {
  width: 52px; height: 52px;
}
body.lightbox-open #cursor-dot {
  background: var(--terra);
  width: 5px; height: 5px;
}

.lightbox {
  /* z-index > nav (300) et curseur (9999 : seulement pointeurs, pas bloquant) */
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  /* Marge intérieure uniforme sur les 4 côtés */
  padding: clamp(2.5rem, 6vw, 5rem);
}
.lightbox[hidden] { display: none; }

/* Fond noir plein — couvre toute la fenêtre nav comprise */
.lightbox-bg {
  position: absolute; inset: 0;
  background: #0D0B09;
  animation: fadeIn .25s ease both;
}

/* Figure : prend tout l'espace disponible après padding */
.lightbox-figure {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}

/* Wrap image : se réduit à la taille réelle de l'image */
.lightbox-img-wrap {
  position: relative;      /* ancre le bouton fermer sur l'image */
  display: inline-block;
  max-width: 100%; max-height: 100%;
  line-height: 0;          /* supprimer l'espace sous l'img (inline-block) */
}

/* Image : occupe tout l'espace disponible, proportions intactes */
.lightbox-img-wrap img {
  display: block;
  max-width:  calc(100vw - clamp(5rem, 12vw, 10rem));
  max-height: calc(100vh - clamp(5rem, 12vw, 10rem));
  width: auto; height: auto;
  object-fit: contain;
  animation: lbIn .35s var(--ease) both;
}

/* Aplat placeholder dans le lightbox */
.lightbox-img-wrap .artwork-main-placeholder {
  width: min(70vw, 500px);
  aspect-ratio: 3/4;
}

/* Bouton fermer : coin supérieur droit de l'image, dépassant légèrement */
.lightbox-close {
  position: absolute;
  top:   -.75rem;
  right: -.75rem;
  width: 44px; height: 44px;
  background: #0D0B09;
  border: none; border-radius: 50%;
  color: rgba(244, 239, 230, .75);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, transform .3s var(--ease);
}
.lightbox-close svg { width: 44px; height: 44px; }
.lightbox-close:hover {
  color: #F4EFE6;
  transform: rotate(90deg);
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}
/* ── Lien "Voir les œuvres" centré sous l'iframe ── */
.home-cta {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-top: 2rem;
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: .2rem;
  transition: color .2s, border-color .2s;
}
.home-cta:hover { color: var(--terra); border-color: var(--terra); }
.home-cta .arr { display: inline-block; transition: transform .25s; }
.home-cta:hover .arr { transform: translateX(5px); }

/* Desktop : décaler sous la composition (l'iframe dépasse de son conteneur) */
@media (min-width: 768px) {
  .home-cta { margin-top: 6rem; }
}

@media (max-width: 767px) {
  .home-cta { margin-top: 1.5rem; font-size: .7rem; }
}

/* ══════════════════════════════════════════════════════
   TITRE "SECRET D'ATELIER" — accueil
══════════════════════════════════════════════════════ */
.atelier-title {
  /* Positionnement : bas-gauche de .home-right, déborde vers le bas */
  position: absolute;
  bottom: 5%;             /* déborde dans la composition */
  left: -10%;
  z-index: 10;

  /* Typographie */
  font-family: var(--fd);
  font-size: clamp(3.9rem, 7vw, 7rem);  /* +140% */
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;

  /* Fondu subtil sur la composition */
  mix-blend-mode: multiply;
  opacity: .82;

  user-select: none;
  pointer-events: none;
}

/* Mobile : titre plus petit */
@media (max-width: 767px) {
  .atelier-title {
    font-size: clamp(2.5rem, 11vw, 4.2rem);
    bottom: 4.5rem;
    left: 0%;
  }
}

/* S'assurer que home-right est bien en position relative
   pour ancrer le titre en absolu */
.home-right { position: relative; }



/* ══════════════════════════════════════════════════════
   BOUTON (?) ET POPUP "SECRET D'ATELIER"
══════════════════════════════════════════════════════ */

/* Bouton ? : cercle fin, haut-droite de .home-right */
/* Bouton ? en position fixed : indépendant de tout contexte de stacking.
   Positionné dynamiquement par JS au coin haut-droit de l'iframe.         */
.atelier-info-btn {
  position: fixed;
  z-index: 400;                  /* sous la nav (300) non, AU-DESSUS */
  width: 43px; height: 43px;
  background: rgba(244,239,230,.9);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background .2s, color .2s;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(28,24,21,.18);
  /* La position top/right est calculée par JS selon la position de home-right */
}
.atelier-info-btn svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.atelier-info-q {
  position: relative; z-index: 1;
  font-family: var(--fd); font-style: italic; font-weight: 300;
  font-size: 2.1rem; line-height: 1;
  color: inherit; user-select: none;
}
.atelier-info-btn:hover                { background: var(--bg); }
.atelier-info-btn[aria-expanded="true"] { color: var(--terra); background: var(--bg); }

/* Popup : sobre, fond crème, bord fin */
.atelier-popup {
  position: absolute;
  top:   3rem;
  right: .85rem;
  z-index: 21;
  width: min(440px, 80vw);
  background: var(--bg);
  border: 1px solid var(--border-s);
  padding: 1.6rem 1.75rem 1.5rem;
  animation: popupIn .2s var(--ease) both;

  /* Ascenseur : hauteur max adaptative, scroll si contenu dépasse */
  max-height: min(420px, 60vh);
  overflow-y: auto;

  /* Scrollbar minimaliste — Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--border-s) transparent;
}

/* Scrollbar minimaliste — Chrome / Safari */
.atelier-popup::-webkit-scrollbar       { width: 2px; }
.atelier-popup::-webkit-scrollbar-track { background: transparent; }
.atelier-popup::-webkit-scrollbar-thumb {
  background: rgba(28, 24, 21, .2);
  border-radius: 1px;
}
.atelier-popup::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 24, 21, .4);
}
.atelier-popup[hidden] { display: none; }

.atelier-popup-title {
  font-family: var(--fd);
  font-size: 2rem; font-style: italic; font-weight: 300;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .65rem;
}

.atelier-popup-body p {
  font-size: .8rem; line-height: 1.9;
  color: var(--muted);
  margin-top: .75rem;
}
.atelier-popup-body p:first-child { margin-top: 0; }

.atelier-popup-italic {
  font-family: var(--fd); font-style: italic;
  color: var(--ink) !important;
  margin-top: 1.1rem !important;
}

/* Mobile : popup prend plus de largeur */
@media (max-width: 767px) {
  .atelier-info-btn { top: .6rem; right: .6rem; }
  .atelier-popup    { right: .6rem; width: min(300px, 88vw); }
}


/* ══════════════════════════════════════════════════════
   PAGE LÉGAL — MENTIONS LÉGALES
══════════════════════════════════════════════════════ */
.legal-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem var(--pad-x) 6rem;
}

.legal-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; font-style: italic;
  line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: 3rem;
  color: var(--ink);
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-of-type { border-bottom: none; }

.legal-h2 {
  font-family: var(--fb);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

.legal-h3 {
  font-family: var(--fb);
  font-size: .8rem; font-weight: 500;
  color: var(--ink);
  margin-top: 1.5rem; margin-bottom: .5rem;
}

.legal-layout p {
  font-size: .88rem; line-height: 1.9;
  color: var(--muted); margin-top: .75rem;
}
.legal-layout p:first-of-type { margin-top: 0; }
.legal-layout a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-layout a:hover { color: var(--terra); }
.legal-layout strong { color: var(--ink); font-weight: 500; }

.legal-list {
  margin: .75rem 0 .75rem 1.25rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.legal-list li {
  font-size: .88rem; line-height: 1.75; color: var(--muted);
}

.legal-update {
  font-size: .72rem !important;
  color: rgba(138,130,120,.6) !important;
  font-style: italic;
  margin-top: 2rem !important;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* Lien "Mentions légales" dans le footer */
.footer-legal-link {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.footer-legal-link:hover { color: var(--ink); }


/* Grain fin sur body pour donner de la texture */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
