:root {
  --off-white: #f4f1e8;
  --paper: #ece7da;
  --deep-black: #0a0a0a;
  --editorial-red: #c5312e;
  --font-title: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-article: "EB Garamond", Georgia, "Times New Roman", serif;
  --border-thin: 1px solid #fff;
  --border-frame: 2px solid var(--deep-black);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--deep-black);
  color: var(--off-white);
  font-family: var(--font-article);
  line-height: 1.8;
  overflow-x: hidden;
}

.site-main { min-height: 100svh; padding-bottom: 7rem; }
.layout { width: min(1100px, 100% - 2rem); margin-inline: auto; }

/* Hero - style magazine : grande image + bande noire en bas */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
}
.hero__bg-wrap {
  position: absolute;
  inset: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(20%) contrast(1.08) saturate(0.95);
  transition: opacity 1.5s ease;
}
.hero__bg--slide { opacity: 0; }
.hero__bg--slide:first-child { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.6) 85%, var(--deep-black) 100%);
}
.hero__content {
  position: relative;
  z-index: 5;
  padding: 0 0 3rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero__title {
  margin: 0;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .92;
  font-weight: 400;
  letter-spacing: .04em;
}
.hero__subtitle {
  margin-top: .6rem;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .88;
}
.hero--oeuvre .hero__title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}
.hero__quote {
  position: absolute;
  inset-inline: 1rem;
  bottom: 2.2rem;
  z-index: 6;
  text-align: center;
  font-family: var(--font-article);
  font-style: italic;
  font-size: clamp(1rem, 2.3vw, 1.4rem);
  transition: opacity .45s ease, transform .45s ease;
}
.hero__quote.is-hidden { opacity: 0; transform: translateY(-8px); }

.logo-badge {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 15;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  background: var(--editorial-red);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: .9rem 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}
@media (max-width: 899px) {
  /* Mobile/Tablet : menu fixe toujours visible (évite le "saut" au scroll) */
  .bottom-menu {
    transform: translateY(0);
    opacity: 1;
  }
  /* Réserver l'espace pour le menu fixe en bas */
  .site-main {
    padding-bottom: 9rem;
  }

  .logo-badge {
    display: flex;
  }
  /* Mobile : le logo peut se masquer au scroll ; le bouton retour reste au-dessus (z-index) */
  body.mobile-scrolled .logo-badge {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }
  body.mobile-scrolled .logo-back-btn {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  /* Fiche œuvre : bouton sous le logo au repos ; au scroll le logo disparaît et le bouton remonte en haut */
  body.has-oeuvre-back .logo-back-btn,
  body.has-oeuvre-back #oeuvres-back-fixed {
    top: 10.25rem;
    left: 1rem;
    right: auto;
    z-index: 14;
    transition: top 0.3s ease, opacity 0.25s ease;
  }
  body.has-oeuvre-back.mobile-scrolled .logo-back-btn,
  body.has-oeuvre-back.mobile-scrolled #oeuvres-back-fixed {
    top: max(0.65rem, env(safe-area-inset-top, 0px));
    left: 1rem;
    z-index: 110;
  }
}
.logo-badge__line {
  margin: 0;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: .94;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.logo-badge__suffix {
  font-size: .45em;
  vertical-align: super;
  letter-spacing: .02em;
  opacity: .9;
}
.logo-badge__rule {
  margin: .5rem 0 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.4);
}
.logo-badge__sub {
  margin: .5rem 0 0;
  padding-top: .5rem;
  line-height: 1.15;
  font-size: .5rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .9;
}
.logo-back-btn {
  position: fixed;
  top: 10.9rem;
  left: 1rem;
  z-index: 100;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff !important;
  background: var(--editorial-red);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px;
  padding: .45rem .75rem;
  font-family: var(--font-title);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-tap-highlight-color: transparent;
}
.logo-back-btn:hover {
  background: #a92826;
}
@media (min-width: 900px) {
  .logo-back-btn,
  #oeuvres-back-fixed {
    top: 12.5rem;
    left: 2rem;
  }
}

.lang-float {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 70;
  display: inline-flex;
  gap: 0;
  padding: .2rem;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.5);
  border-radius: 999px;
}
.lang-float a {
  text-decoration: none;
  color: rgba(255,255,255,.9);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .35rem .65rem;
  transition: background .2s, color .2s;
}
.lang-float a.is-active {
  background: #fff;
  color: #000;
}
.lang-float a:not(.is-active):hover {
  color: #fff;
}

/* Mobile : éviter que le titre d'article blog passe sous le logo fixe */
@media (max-width: 899px) {
  .blog-article-page {
    padding-top: 12rem !important;
  }
}

/* Intro accueil : texte + première œuvre côte à côte */
.intro-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 700px) {
  .intro-grid { grid-template-columns: 1fr; }
}
.panel--intro {
  border: 8px solid var(--paper);
  border-radius: 10px;
  padding: 2rem;
}
.panel--intro .panel__body {
  margin: 0;
}
.panel--intro .panel__body + .panel__body {
  margin-top: .8rem;
}
.panel--intro .panel__body em {
  display: block;
}
.intro-grid:has(.work-card:only-child) .panel--intro,
.intro-grid .panel--intro:only-child {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 auto;
}

.four-grid {
  margin: 3rem auto;
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .four-grid { grid-template-columns: 1fr 1fr; }
}

/* Style magazine : grille, bordures blanches */
.panel {
  border: 8px solid var(--paper);
  border-radius: 8px;
  background: var(--paper);
  color: #111;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 10px 22px rgba(0,0,0,.22);
  overflow: visible;
}
.panel--small {
  aspect-ratio: var(--art-ratio, 21 / 29.7);
  height: auto;
  min-height: 0;
}
.panel--large { min-height: 34rem; }
.panel--text { overflow: visible; }

/* Les boxes texte doivent épouser leur contenu (sans vide forcé). */
.panel--text.panel--small {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
}
.panel--text.panel--large {
  min-height: 0;
  height: auto;
}
.panel--image { position: relative; overflow: hidden; }
.panel__img-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: .5rem;
  border: 1px solid #fff;
  border-radius: 6px;
  overflow: hidden;
  height: calc(100% - 1rem);
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.panel__ribbon {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 3;
  min-width: 0;
  text-align: center;
  background: color-mix(in srgb, var(--editorial-red) 88%, black);
  color: #fff;
  font-family: var(--font-title);
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .26rem .52rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: .42rem;
  transform: none;
  box-shadow: 0 5px 16px rgba(0,0,0,.3);
}
.panel__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .4s ease;
  display: block;
}
.panel--image:hover .panel__img-wrap img {
  transform: scale(1.04);
}
.panel__index {
  position: absolute; left: .7rem; top: .7rem;
  width: 1.8rem; height: 1.8rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.75); color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: .9rem;
  line-height: 1;
  letter-spacing: .03em;
  font-weight: 400;
}
.panel__hover {
  position: absolute; left: .8rem; right: .8rem; bottom: .8rem;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: .55rem .72rem; border-radius: .5rem;
  display: flex;
  flex-direction: column;
  opacity: 0; transform: translateY(6px); transition: .28s ease;
}
.panel--image:hover .panel__hover { opacity: 1; transform: translateY(0); }
.panel__hover-title { font-family: var(--font-title); font-size: 1rem; text-transform: uppercase; margin: 0; letter-spacing: .06em; }
.panel__hover-desc { margin: .25rem 0 0; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.panel__hover-row {
  margin-top: .35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
}
.panel__hover-row .panel__hover-desc {
  margin: 0;
}
.panel__hover-link {
  display: inline-flex;
  margin-top: 0;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: .32rem .6rem;
  font-size: .6rem;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}
.panel__hover-link:hover {
  background: #fff;
  color: #000;
}

.panel--text { padding: 1.3rem; display: flex; flex-direction: column; }
.panel__kicker { margin: 0 0 .6rem; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: #2d2d2d; }
.panel__title {
  margin: 0 0 .8rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.05;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 400;
  color: var(--editorial-red);
}
.panel__title.is-red { color: var(--editorial-red); }
.panel__body { margin: 0; font-family: var(--font-article); font-size: 1.1rem; line-height: 1.75; color: #222; font-weight: 400; text-align: justify; }
.panel--intro .panel__body { font-size: 1.16rem; }
.panel__list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: .45rem;
}
.panel__list li {
  margin: 0;
}
.panel__legend {
  display: block;
  margin-top: .7rem;
  font-family: var(--font-article);
  font-style: italic;
  font-weight: 400;
  font-size: .9em;
  line-height: 1.45;
  color: rgba(17, 17, 17, .78);
}
.panel__cta {
  margin-top: 1rem;
  text-decoration: none;
  align-self: start;
  border: 1px solid #111;
  border-radius: 999px;
  padding: .75rem 1.3rem;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #111;
}
.panel__cta:hover { background: #111; color: var(--off-white); }
.panel--intro .panel__cta { margin-top: 1.2rem; }
.contact-form-wrap {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, .2);
}
.contact-form__title {
  margin: 0 0 .55rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.45rem;
  line-height: 1;
}
.contact-form__notice {
  margin: 0 0 .7rem;
  border-radius: .5rem;
  padding: .45rem .6rem;
  font-size: .95rem;
  line-height: 1.4;
}
.contact-form__notice.is-success {
  background: rgba(21, 110, 55, .12);
  border: 1px solid rgba(21, 110, 55, .35);
  color: #0f5e33;
}
.contact-form__notice.is-error {
  background: rgba(197, 49, 46, .1);
  border: 1px solid rgba(197, 49, 46, .38);
  color: #8e1b1a;
}
.contact-form {
  display: grid;
  gap: .45rem;
}
.contact-form__label {
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(17, 17, 17, .8);
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, .35);
  border-radius: .55rem;
  background: #f8f4ea;
  color: #111;
  padding: .58rem .65rem;
  font-family: var(--font-article);
  font-size: 1rem;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: 2px solid rgba(197, 49, 46, .42);
  outline-offset: 0;
}
.contact-form__textarea {
  min-height: 9rem;
  resize: vertical;
}
.contact-form__checkbox {
  margin-top: .35rem;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .95rem;
  line-height: 1.4;
}
.contact-form__checkbox input {
  margin-top: .22rem;
}
.contact-form__submit {
  margin-top: .5rem;
}
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.social-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}
.social-item { margin: 0; }
.social-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.social-link:hover { text-decoration: underline; }
.social-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: var(--editorial-red);
}
.social-handle {
  font-size: .95rem;
  letter-spacing: .02em;
}
.social-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--editorial-red);
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(17,17,17,.25) inset;
}
.works-intro { display: grid; gap: 1rem; margin: 3rem auto; }
@media (min-width: 900px) { .works-intro { grid-template-columns: 1.2fr .8fr; } }

/* Grille alternance : texte / image, jamais deux textes côte à côte */
.alternate-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .alternate-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  /* Éviter deux panels texte côte à côte : forcer pleine largeur si adjacent */
  .alternate-grid .panel--text + .panel--text {
    grid-column: 1 / -1;
  }
}
.alternate-grid__full {
  grid-column: 1 / -1;
}

.work-extra-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .work-extra-grid {
    grid-template-columns: 1fr 1fr;
  }
  .work-extra-grid > article.panel--small { min-height: 0; }
}

/* Grille des œuvres - boxes côte à côte, proportion du cadre */
.works-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  align-items: start;
}
/* Grille : 2 boxes côte à côte, proportion du cadre */
.works-grid--index,
.works-grid--oeuvres {
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 899px) {
  /* Blog : 1 colonne plus tôt pour éviter les cartes trop étroites */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .blog-intro-card { margin-bottom: 1.4rem !important; }
}
@media (max-width: 700px) {
  .works-grid--index,
  .works-grid--oeuvres { grid-template-columns: 1fr; }
}

/* Blog : cartes dimensionnées selon le contenu texte */
.blog-grid .blog-card {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
}
.blog-intro-card {
  min-height: 0;
  height: auto;
}
.blog-article-grid .blog-card {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
}
@media (max-width: 700px) {
  .blog-grid,
  .blog-article-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .blog-intro-card {
    padding: 1.5rem;
  }
  .blog-article-grid .blog-card {
    padding: 1.2rem;
  }
  .blog-article-grid .panel__body {
    font-size: 1.02rem;
    line-height: 1.7;
  }
}

/* Accueil : section SEO en boxes qui épousent le contenu */
.home-seo-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
.home-seo-main,
.home-seo-card {
  min-height: 0;
  height: auto;
}
.home-seo-subgrid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .home-seo-grid {
    grid-template-columns: 1.2fr .8fr;
    align-items: start;
  }
}

.work-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s ease;
}

/* Box comme référence : bordure blanche, gap sombre, proportions respectées */
.work-card__frame {
  aspect-ratio: var(--art-ratio, 21 / 29.7);
  background: var(--deep-black);
  border: 8px solid var(--paper);
  border-radius: 10px;
  padding: 6px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.work-card:hover .work-card__frame {
  border-color: var(--paper);
}

.work-image {
  position: absolute;
  inset: 6px;
  overflow: hidden;
  border-radius: 4px;
}
/* Badge numéro : cercle blanc semi-transparent, texte sombre */
.work-image__index {
  position: absolute;
  left: .6rem;
  top: .6rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  color: var(--deep-black);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: .8rem;
  letter-spacing: .02em;
  z-index: 2;
}
/* Barre bas : fond sombre, titre à gauche, bouton à droite */
.work-image__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.7);
  padding: .9rem 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 2;
  border-radius: 0 0 4px 4px;
}
.work-card--oeuvres:hover .work-image__overlay {
  opacity: 1;
  transform: translateY(0);
}
.work-image__overlay-text {
  min-width: 0;
}
.work-image__overlay-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 .15rem;
}
.work-image__overlay-desc {
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin: 0;
}
.work-image__overlay-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.work-image__ribbon {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 3;
  background: var(--editorial-red);
  color: #fff;
  font-family: var(--font-title);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .45rem;
  border-radius: 4px;
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease;
  display: block;
}
.work-card:hover .work-image img {
  transform: scale(1.04);
}

.work-meta {
  flex: 1;
  padding: 1rem;
  color: #111;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.work-meta--index {
  padding: .8rem 0 0;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: .8rem;
  color: var(--off-white);
}
.work-meta--index .work-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--off-white);
}
.work-meta--index .work-info {
  font-size: .7rem;
  color: rgba(244,241,232,.7);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.work-meta--oeuvres {
  padding: .8rem 0 0;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: .8rem;
  color: var(--off-white);
}
.work-meta__left {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.work-meta--oeuvres .work-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--off-white);
}
.work-meta--oeuvres .work-info {
  font-size: .7rem;
  color: rgba(244,241,232,.7);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.work-meta__link {
  white-space: nowrap;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.work-detail__desc {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.work-detail__desc-text {
  margin: 0;
  font-family: var(--font-article);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--off-white);
  text-align: justify;
}
.work-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.badge {
  border-radius: 999px; padding: .2rem .55rem; font-size: .58rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700;
}
.badge.is-available { background: var(--editorial-red); color: #fff; }
.badge.is-sold { background: rgba(0,0,0,.15); color: rgba(0,0,0,.65); }
.work-title { margin: 0; font-family: var(--font-title); text-transform: uppercase; font-size: 1.8rem; letter-spacing: .05em; line-height: .95; color: var(--editorial-red); }
.work-year { margin: .2rem 0 0; font-size: .88rem; color: rgba(0,0,0,.65); }
.work-info { margin: .35rem 0 0; font-size: .68rem; text-transform: uppercase; letter-spacing: .11em; color: rgba(0,0,0,.6); }
.work-linkline { margin-top: auto; padding-top: .75rem; border-top: 1px solid rgba(0,0,0,.15); display: flex; justify-content: space-between; align-items: center; }
.work-linkline span { font-size: .66rem; text-transform: uppercase; letter-spacing: .11em; }
.arrow {
  width: 1.6rem; height: 1.6rem; border-radius: 999px;
  background: var(--editorial-red); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

.legal-footer {
  border-top: 1px solid rgba(255,255,255,.15);
  background: var(--deep-black);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, .6);
}

.bottom-menu {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  transform: translateY(48px);
  opacity: 0;
  transition: .28s ease;
}
.bottom-menu.is-visible { transform: translateY(0); opacity: 1; }
.bottom-menu__inner {
  width: 100%;
  margin-inline: 0;
  border-top: 2px solid var(--editorial-red);
  background: color-mix(in srgb, var(--editorial-red) 92%, black);
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.bottom-menu__copyright { margin: 0; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.bottom-menu__baseline { margin: .2rem 0 0; font-size: .56rem; letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.7); white-space: nowrap; }
.bottom-menu__admin {
  font-size: .5rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s ease;
}
.bottom-menu__admin:hover { color: rgba(255,255,255,.6); }
.bottom-menu__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.bottom-menu__links { order: 1; }
.bottom-menu__meta { order: 2; text-align: center; }
.bottom-menu__baseline { display: none; }
.menu-link {
  text-decoration: none;
  text-align: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  background: transparent;
  color: rgba(255,255,255,.9);
  font-family: var(--font-title);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
  padding: .34rem .24rem;
}
.menu-link:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.menu-link.is-active { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

/* Mobile : menu sur une seule ligne + Accueil en icône */
@media (max-width: 759px) {
  .bottom-menu__links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    gap: .35rem;
    width: 100%;
    justify-content: space-between;
  }
  .menu-link {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: .36rem .4rem;
    font-size: clamp(.86rem, 3.2vw, .98rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
  }
  .menu-link--home {
    flex: 0 0 2.45rem;
    padding-inline: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .menu-link--home .menu-link__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .menu-link--home::before {
    content: "⌂";
    font-size: 1.15rem;
    line-height: 1;
  }
}

/* Page détail œuvre - hero + layout alterné [oeuvre|gp], [texte|gp], [gp|gp]... */
.work-detail-page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.work-detail-row {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .work-detail-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.work-detail__box {
  background: var(--deep-black);
  border: 8px solid var(--paper);
  border-radius: 10px;
  padding: 6px;
  position: relative;
  overflow: hidden;
}
.work-detail__box--oeuvre {
  aspect-ratio: var(--art-ratio, 21 / 29.7);
}
.work-detail__box--zoom {
  display: block;
  aspect-ratio: var(--art-ratio, 21 / 29.7);
}
.work-detail__zoom-col {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  align-self: start;
}
.work-detail__box--zoom > .work-zoom__img {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  border-radius: 4px;
}
.work-detail__box--zoom > .work-zoom__img > img {
  position: absolute !important;
  inset: auto !important;
  width: 200% !important;
  height: 200% !important;
  left: calc((100% - 200%) * var(--fx, 0.5)) !important;
  top: calc((100% - 200%) * var(--fy, 0.5)) !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .35s ease;
}
.work-detail__box--zoom:hover > .work-zoom__img > img {
  transform: scale(1.04);
}
.work-detail__box--text {
  background: var(--paper);
  padding: 1.3rem;
  padding-right: 7.2rem;
  aspect-ratio: var(--art-ratio, 21 / 29.7);
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}
.work-detail__box--text .panel__title {
  margin-top: 0;
}
.work-detail__box--text .panel__body {
  margin: 0 0 .9rem;
}
.work-detail__box--text .panel__body:last-of-type {
  margin-bottom: 0;
}
@media (max-width: 759px) {
  /* Mobile : titre puis actions (Retour / Contact), puis corps — plus en bas de carte */
  .work-detail__box--text {
    display: flex;
    flex-direction: column;
    /* Mobile : pas de scroll interne, hauteur auto (la page scrolle) */
    aspect-ratio: auto;
    overflow: visible;
    min-height: unset;
    height: auto;
    padding-right: 1.3rem;
  }
  .work-detail__box--text > .panel__title {
    order: 1;
  }
  .work-detail__box--text > .panel__body {
    order: 3;
  }
  .work-detail__box--text > .work-detail__text-footer {
    order: 2;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-top: 0;
    border-top: none;
    border-bottom: 1px solid rgba(0,0,0,.12);
    padding-bottom: 1rem;
    align-self: stretch;
  }
}
.work-detail__text-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.15);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .8rem;
}
.work-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.1rem;
}
.work-detail__actions .panel__cta {
  margin-top: 0;
}
.work-detail__status {
  margin-left: auto;
  align-self: flex-end;
  white-space: nowrap;
}
.work-detail__status--top {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  margin-left: 0;
  align-self: auto;
}
.work-detail__image {
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  overflow: hidden;
}
.work-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .35s ease;
}
.work-detail__box--oeuvre:hover .work-detail__image img {
  transform: scale(1.03);
}
/* Gros plans - chaque image dans une box, zoom selon critère (haut, bas, etc.) */
.work-zooms {
  padding: 0;
}
.work-zooms__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-title);
  font-size: 1.2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--editorial-red);
}
.work-zooms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
}
.work-zoom__item {
  background: var(--deep-black);
  border: 8px solid var(--paper);
  border-radius: 10px;
  padding: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-zooms .work-zoom__img {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  width: 100%;
  flex-shrink: 0;
}
.work-zooms .work-zoom__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .35s ease;
}
.work-zoom__item:hover .work-zoom__img img {
  transform: scale(1.06);
}
.work-zoom__label {
  display: block;
  padding: 0 .2rem;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: center;
  background: transparent;
  color: rgba(255,255,255,.7);
}




@media (min-width: 900px) {
  .four-grid--statement > article.panel--small { min-height: 0; }
  .four-grid--statement > article.panel--large {
    aspect-ratio: 1 / 1.6;
    height: auto;
    min-height: 0;
  }
  .logo-badge { top: 2rem; left: 2rem; }
  .lang-float { top: 1.1rem; right: 1.2rem; }
  .bottom-menu__inner { padding: 1rem 2rem; flex-direction: row; align-items: center; justify-content: space-between; gap: .8rem; }
  .bottom-menu__links { display: flex; width: auto; gap: .45rem; }
  .bottom-menu__links { order: 2; }
  .bottom-menu__meta { order: 1; text-align: left; }
  .bottom-menu__baseline { display: block; }
  .menu-link { font-size: .95rem; line-height: 1; padding: .38rem .56rem; }
}

