:root {
  --slide-dur: 800ms;
  /* durée un peu plus longue */
  --slide-ease: cubic-bezier(0.85, 0, 0.15, 1);
  --ease: cubic-bezier(0.85, 0, 0.15, 1);
  /* doux → rapide → doux */
  --kick-dur: 1050ms;
  /* kicker plus rapide   */
  --lead-dur: 1250ms;
  /* lead plus lent       */
  --lead-delay: 200ms;
  /* lead commence après  */
  --offset-kick: 170px;
  /* distance kicker      */
  --offset-lead: 200px;
  /* distance lead        */
  --page-bg: #fffbf2;
  /* ton beige très clair */
  --text: #1a1a1a;
  --muted: #6f6f6f;
  --line: #D3B380;
  --from: 15vh;
  --from2: 10vh;
  --to: 0vh;
  --topbar-offset: 2rem;
}

html {
  height: 100dvh;
}

body {
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { transform: none !important; opacity: 1 !important; animation: none !important; }
}

[data-animate] {
  transform: translate3d(0, 3rem, 0);
  opacity: 0;
}

.animated {
  animation: animate 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: var(--stagger, 0ms); /* deterministic stagger */
}

@keyframes animate {
  to { transform: none; opacity: 1; }
}


/* --- TOP BAR --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  margin: 0;

  /* espace pour le notch / iOS */
  padding-top: calc(env(safe-area-inset-top) + 2rem); /* valeur par défaut */
  padding-left: 6rem;
  padding-right: 6rem;

  /* transition fluide du padding */
  transition: padding-top 0.2s ease, box-shadow 0.2s ease;

  pointer-events: auto;
}

/* Quand on scrolle */
body.scrolled .topbar {
  background: var(--page-bg);
  padding-top: calc(env(safe-area-inset-top) + 0rem); /* réduit le padding */
  box-shadow: 0 15px 24px rgba(0, 0, 0, 0.04);
}


.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* collé sous la topbar */
  height: 1px;
  background: rgba(255, 255, 255, .5);
  transform: scaleX(0);
  /* largeur 0% */
  transform-origin: left center;
  /* part de la gauche */
  opacity: 0;
  transition: transform 2s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
  pointer-events: none;
}

body.int .topbar::after {
  background: rgba(0, 0, 0, .5);
}

body.int.modal-open .topbar::after {
  background: rgba(255, 255, 255, .5);
}

a.lang-link:hover, a.lang-link.active:hover {
  color: #D3B380;
}

/* Quand une modale Bootstrap est ouverte */
.modal-open .topbar::after {
  transform: scaleX(1);
  /* largeur 100% */
  opacity: 1;
}

.topbar .brand img {
  width: 54px;
  transition: width .15s ease;
}
body.scrolled .topbar .brand img {
  width: 44px;
}

body.int.modal-open .topbar .brand,
body.int.modal-open .social img {
  filter: invert(1);
}

.topbar .right {
  pointer-events: auto;
}

a.social:hover,
.lang-switch a:hover {
  opacity: .6;
}

.lang-switch a {
  text-decoration: none;
  color: #fff;
  opacity: .85;
  margin-left: .6rem;
}

.lang-switch a.active {
  opacity: 1;
  font-weight: 700;
}

body.int .lang-switch a {
  color: #000;
}

body.int.modal-open .lang-switch a {
  color: #fff;
}

/* conteneur du menu plein écran */
.menu-overlay .nav {
  /* on force l'horizontal + retour à la ligne */
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 28px) clamp(28px, 4vw, 56px);
  margin-top: clamp(24px, 5vh, 48px);
  margin-left: 6rem;
  margin-right: 6rem;
  position: relative;
}

/* liens */
.menu-link-xl {
  display: inline-block;
  white-space: nowrap;
  /* évite que le "/" parte à la ligne */
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5.2rem);
  /* très grand, responsive */
  letter-spacing: .01em;
  text-decoration: none;
  color: rgba(255, 255, 255, .4);
  /* liens “gris/blanc” comme la maquette */
  line-height: 1.05;
  transition: color .2s ease;
}

/* état actif (ajoute .is-current sur la page courante) */
.menu-link-xl.is-current {
  color: #fff;
}

.menu-link-xl:hover {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
}

/* séparateur "/" après chaque lien sauf le dernier */
.menu-link-xl::after {
  content: " /";
  margin-left: clamp(10px, 1.6vw, 22px);
  margin-right: clamp(5px, 1vw, 14px);
  color: rgba(255, 255, 255, .1);
  font-weight: 100;
}

.menu-link-xl:last-child::after {
  content: "";
  margin: 0;
}

/* petits réglages pour les très petits écrans */
@media (max-width: 380px) {
  .menu-link-xl {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }
}


/* --- SLIDER --- */
.viewport,
.slider-container {
  position: relative;
  height: 100dvh;
  width: 100%;
}

.slider-container {
  left: 0px;
  top: 0px;
  user-select: none;
  overflow: hidden;
  background-color: #202020;
  z-index: 2;
  transition: width .5s ease, height .5s ease, left .5s ease, top .5s ease;
  backface-visibility: hidden;
  perspective: 1000;
}

#slider {
  position: relative;
  height: 100%;
  backface-visibility: hidden;
}

#slider.animating {
  transition-property: transform;
  transition-duration: var(--slide-dur);
  transition-timing-function: var(--slide-ease);
  will-change: transform;
}

/* Backgrounds parallaxe */
#slider.animating .slide__bg {
  transition-property: transform;
  transition-duration: var(--slide-dur);
  transition-timing-function: var(--slide-ease);
  will-change: transform;
}

.slide {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden;
}

.slide__bg {
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  will-change: transform;
  cursor: grab;
}

.slide__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* couvre tout le bloc */
  background: rgba(0, 0, 0, 0.05);
  /* noir à 5% d’opacité */
  pointer-events: none;
  /* ne gêne pas les clics */
}

.slide__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.slide__content {
  z-index: 3;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding-left: 7em;
  padding-right: 7rem;
}

.slide__text {
  max-width: 980px;
  position: relative;
}

.slide__text::before {
  content: "";
  display: inline-block;
  width: 80px;
  height: 80px;
  background: url("img/picto-guillemet.svg") no-repeat center;
  background-size: contain;
  position: absolute;
  opacity: .2;
  top: -56px;
  left: -52px;
}

.slide__content .expo {
  margin-left: auto;
  white-space: nowrap;
}

.slide__content .expo a {
  font-family: "Raleway";
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.slide__content .expo img {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.slide__content .expo a:hover img {
  transform: translateX(6px);
  /* décale vers la droite au survol */
}

@media (max-width: 1023px) {
  .slide__content {
    flex-direction: column;
    /* pile les éléments */
    justify-content: center;
    /* garde le centrage vertical */
    align-items: flex-start;
    /* aligne le contenu à gauche */
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .slide__content .expo {
    margin-left: 0;
    /* réinitialise pour mobile */
    margin-top: 1.5em;
    /* espace au-dessus du bouton */
  }

  .slide__text::before {
    top: -87px;
    left: 0;
  }

  .slider-controls {
    right: auto !important;
    /* on annule le right */
    left: 50%;
    /* positionne au centre */
    transform: translateX(-50%);
    /* décale pour vraiment centrer */
    bottom: 2rem;
    /* un peu plus proche du bas si tu veux */
  }

  .topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

body.nav-right .slide__kicker {
  transform: translateX(var(--offset-kick));
}

body.nav-right .slide__lead {
  transform: translateX(var(--offset-lead));
}

/* slide actif (entrée) */
body.nav-right .slide.active .slide__kicker {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--kick-dur) var(--ease) var(--lead-delay),
    transform var(--kick-dur) var(--ease) var(--lead-delay);
}

body.nav-right .slide.active .slide__lead {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--lead-dur) var(--ease) var(--lead-delay),
    transform var(--lead-dur) var(--ease) var(--lead-delay);
}

/* slide sortant (leaving) */
body.nav-right .slide.leaving .slide__kicker {
  opacity: 0;
  transform: translateX(-var(--offset-kick));
  transition: opacity var(--kick-dur) var(--ease),
    transform var(--kick-dur) var(--ease);
}

body.nav-right .slide.leaving .slide__lead {
  opacity: 0;
  transform: translateX(-var(--offset-lead));
  transition: opacity var(--lead-dur) var(--ease),
    transform var(--lead-dur) var(--ease);
}

/* ===== Direction → GAUCHE (prev) ===== */
body.nav-left .slide__kicker {
  transform: translateX(calc(-1 * var(--offset-kick)));
}

body.nav-left .slide__lead {
  transform: translateX(calc(-1 * var(--offset-lead)));
}

body.nav-left .slide.active .slide__kicker {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--kick-dur) var(--ease) var(--lead-delay),
    transform var(--kick-dur) var(--ease) var(--lead-delay);
}

body.nav-left .slide.active .slide__lead {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--lead-dur) var(--ease) var(--lead-delay),
    transform var(--lead-dur) var(--ease) var(--lead-delay);
}

/* sortant vers la GAUCHE → part à DROITE */
body.nav-left .slide.leaving .slide__kicker {
  opacity: 0;
  transform: translateX(var(--offset-kick));
  transition: opacity var(--kick-dur) var(--ease),
    transform var(--kick-dur) var(--ease);
}

body.nav-left .slide.leaving .slide__lead {
  opacity: 0;
  transform: translateX(var(--offset-lead));
  transition: opacity var(--lead-dur) var(--ease),
    transform var(--lead-dur) var(--ease);
}

.slide.active .expo {
  opacity: 1;
}

.slide.leaving .expo {
  opacity: 0;
}

.expo {
  opacity: 0;
  transition: opacity var(--lead-dur) var(--ease) var(--lead-delay);
}

.slide__kicker,
.slide__lead {
  opacity: 0;
  will-change: opacity, transform;
}

.slide__kicker {
  font-weight: 700;
  font-size: clamp(1.2rem, 3.2vw, 2.6rem);
  line-height: 1.3;
}

.slide__kicker.weight2 {
  font-weight: 500;
}

.slide__lead span {
  font-family: "Raleway";
  font-size: clamp(1.2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  font-style: normal;
  margin-top: 2rem;
  display: block;
}

.slide__lead {
  font-family: "Source Serif 4", serif;
  font-style: italic;
  font-size: clamp(2rem, 7vw, 5rem);
  line-height: 1.2;
  margin-top: -0.5rem;
}

.slide__lead.size2 {
  font-size: clamp(1.4rem, 3.5vw, 3rem);
}

/* --- Controls --- */
.slider-controls {
  position: absolute;
  right: 6rem;
  bottom: 3rem;
  z-index: 5;
  display: flex;
  gap: .75rem;
  align-items: center;
}

.ctrl {
  height: 54px;
  width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  opacity: 0.9;
  background: transparent;
}

.ctrl:hover {
  transform: scale(1.02);
}

.ctrl:active {
  transform: scale(.98);
}

.ctrl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Fond sombre flouté qui NE capte PAS les clics */
.menu-overlay .menu-overlay-bg {
  pointer-events: auto;
  z-index: 0;
}

/* Bouton fermer toujours cliquable, au top de la pile */
.menu-overlay {
  position: fixed;
  /* hors du flux, au-dessus de tout */
  top: 0;
  right: 0;
  height: 100svh;
  z-index: 1500;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100% !important;
}


body.int {
  background: var(--page-bg);
  color: var(--text);
}

body.int.modal-open {
  background-image: url(img/fond-homepage-01.webp);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-title {
  position: relative;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: .5px;
  margin: 8.2rem 0 1.6rem;
}

/* Barre de recherche avec icône */
.search-wrap {
  position: relative;
  max-width: 520px;
  margin-bottom: 2.2rem;
}

.form-control {
  background: var(--page-bg);
  border: 1px solid #c9c8c3;
  font-family: "Source Serif 4", serif;
  font-style: italic;
  padding: 1rem;
  padding-left: 2rem;
  padding-right: 2.8rem;
}

.search-wrap input {
  margin-bottom: 4rem;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: #000;
  background-color: #fff;
  outline: 0;
  box-shadow: none;
}

.search-wrap .icon {
  position: absolute;
  right: .9rem;
  top: 50%;
  translate: 0 -50%;
  width: 22px;
  height: 22px;
  opacity: 1;
  pointer-events: none;
}

/* Grille des œuvres */
.works {
  --bs-gutter-y: 5.8rem;
}

/* Colonnes de même hauteur */
.works .col {
  display: flex;
  padding-left: 2rem;
  padding-right: 2rem;
}

.works a {
  display: block;
  text-decoration: none;
  color: #000;
}

.works .img-wrap {
  overflow: hidden;
  display: flex;
  align-items: center;
  /* centre verticalement */
  justify-content: center;
  height:auto;
}

.oeuvre-center {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works a:hover img {
  transform: scale(1.05);
  /* zoom */
}

/* Figure prend toute la hauteur */
.works figure {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* image + caption */
  width: 100%;
  margin: 0;
  overflow: hidden;
}

/* Image pleine largeur et centrée verticalement */
.works img {
  width: 100%;
  height: auto;
  max-height: 493px;
  /* empêche le débordement vertical */
  object-fit: contain;
  /* conserve les proportions */
  flex-grow: 1;
  /* occupe l'espace dispo */
  transition: transform 0.4s ease;
  /* animation fluide */
}

figure {
  margin: 0;
}

figcaption {
  margin-top: .75rem;
  line-height: 1.35;
}

.year {
  font-size: 1.2rem;
  font-family: "Source Serif 4", serif;
  font-style: italic;
  color: #000;
  margin-bottom: .2rem;
  line-height: 3px;
  font-weight: 200;
  margin-top: 15px;
}

.work-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.medium {
  font-family: "Source Serif 4", serif;
  font-style: italic;
  color: #000;
  font-size: 1.1rem;
  font-weight: 300;
}

.oeuvre {
  margin-top: 8rem;
  background: #f7f4ed;
  height: calc(100dvh - 8rem);
}

.font2 {
  font-family: "Source Serif 4", serif;
  font-style: italic;
}

a.back,
a .presse,
.next {
  text-decoration: none;
  font-weight: bold;
  color: #000;
  border: 0;
  background: transparent;
}

a .presse img,
.next img {
  width: 30px;
}

a.back:hover img {
  transform: translateX(-6px);
}

.next:hover,
.back:hover,
a.contact-link:hover,
a:hover .presse {
  color: #D3B380;
}

a:hover .presse img,
.next:hover img {
  transform: translateX(6px);
}

a.back img,
a .presse img,
.next img {
  transition: transform 0.3s ease;
}

.oeuvre h1 {
  font-size: 3rem;
  line-height: 2.8rem;
}

h1.trait {
  position: relative;
  margin-bottom: 3rem;
}

.materiaux {
  position: relative;
  margin-top: -10px;
  font-weight: 300;
}

.materiaux:before,
h1.trait:before {
  position: absolute;
  content: "";
  display: block;
  width: 80px;
  height: 0.5px;
  left: -80px;
  bottom: -26px;
  background-color: #D3B380;
}

h1.page-title.souligne:before {
  position: absolute;
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  left: 50%;
  bottom: -30px;
  /* espace sous le texte, ajuste à ton goût */
  transform: translateX(-50%);
  background-color: #D3B380;
}

h1.page-title.souligne {
  margin-bottom: 5rem;
}

.ouvrages {
  background: #f7f4ed;
}

.oeuvre-max {
    display: block; 
    height: calc(100dvh - 8rem);
    object-fit: contain;   /* ou "cover" selon l’effet souhaité */
    margin-left: auto;
  }

@media (max-width: 992px) {
  .oeuvre-max {
    width: 100%;
    height:auto;
    margin-right: auto;
  }
}

.card-img-top {
  width: fit-content;
  height: 400px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

@media (min-width: 992px) {
  .ps-lg-6 {
    padding-left: 4.5rem !important;
  }

  .pe-lg-6 {
    padding-right: 4.5rem !important;
  }

  .ps-lg-8 {
    padding-left: 8rem !important;
  }

  .pe-lg-8 {
    padding-right: 8rem !important;
  }
}

.lineheight1-6 {
  line-height: 1.9rem;
  font-size: 1.2rem;
}

.lineheight1-7 {
  line-height: 2rem;
  font-size: 1.2rem;
}

.contact-block {
  background: #f7f4ed;
  padding: 2rem;
  border-radius: 0.375rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-block strong {
  font-weight: 600;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* espace entre l’icône et le texte */
  color: inherit;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-link img {
  display: inline-block;
}

.contact-link[href^="mailto"] {
  font-weight: 600;
  text-decoration: underline;
}

/* Liens téléphone (tel:) → gras uniquement */
.contact-link[href^="tel"] {
  font-weight: 600;
  text-decoration: none;
}

.form-result {
  color: #D3B380;
  font-weight: bold;
  font-size: 1.7rem;
}

@media (min-width: 992px) {
  .ps-lg-6 {
    /* Bootstrap utilise ps-* pour padding-left */
    padding-left: 6rem !important;
  }
}

/* Trait vertical continu au centre */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0.5px;
  background: var(--line);
}

a.exposition {
  text-decoration: none;
  color: #000;
}

/* Finitions d’alignements sur desktop */
@media (min-width: 992px) {
  .exposition:not(:first-child) {
    margin-top: -4rem;
  }

  .meta {
    max-width: 500px;
    padding: 1rem;
  }

  .metaright {
    margin-left: -9.5rem;
  }

  .metaleft {
    margin-left: -2.5rem;
  }

  .texte-exposition {
    margin-right: 5rem;
  }
}

@media (min-width: 1400px) {
  .texte-exposition {
    margin-right: 15rem;
  }
}

/* Mobile : on peut cacher le trait pour aérer */
@media (max-width: 991.98px) {
  .timeline::before {
    display: none;
  }

  .meta {
    margin-top: 1rem;
  }
}

.meta {
  position: relative;
  background: var(--page-bg);
  line-height: 1rem;
}

.mt-6 {
  margin-top: 6rem;
}

.fw-200 {
  font-weight: 200;
}

.meta h3 {
  font-size: 2.5rem;
}

.texte-exposition {
  line-height: 1.8rem;
}

.date-actu {
  line-height: 30px;
}

.form-contact .form-control {
  font-size: 1.3rem;
}

.rgpd {
  font-style: italic;
}

@media (min-width: 992px) {
  .meta {
    animation: parallax 1s linear both;
    animation-timeline: view(block);
  }

  .photo-expo-wrap {
    position: relative;
    overflow: hidden;
    animation: parallax2 1s linear both;
    animation-timeline: view(block);
    view-timeline-name: --clip;
    view-timeline-axis: block;
  }

  .photo-expo {
    display: block;
    width: 100%;
    max-width: none;
  }

  .meta,
  .photo-expo-wrap {
    animation-range: entry 0% exit 100%;
    will-change: transform;
  }

  @keyframes parallax {
    from {
      transform: translate3d(0, var(--from), 0);
    }

    to {
      transform: translate3d(0, var(--to), 0);
    }
  }

  @keyframes parallax2 {
    from {
      transform: translate3d(0, var(--to), 0);
    }

    to {
      transform: translate3d(0, var(--from2), 0);
    }
  }

  /* Accessibilité */
  @media (prefers-reduced-motion: reduce) {

    .meta,
    .photo-expo-wrap {
      animation: none;
      transform: none;
    }
  }
}