@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;700&display=swap");

/* Content font - Manrope */
body {
  font-family: Manrope, sans-serif;
  background-color: #f9f9f9;
}

/* Titles font - Noto Serif */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Serif", serif;
  font-weight: 400;
}

h2 {
  color: #2f3334;
  font-size: 30px;
}

/* Configuration de la grille Masonry sur le conteneur parent de la vue */
/* Note : Remplacez .view-content par la classe spécifique de votre ligne de vue si nécessaire */
.view-content {
  column-count: 3; /* Nombre de colonnes sur bureau */
  column-gap: 20px;
  padding: 20px 0;
}

/* Gestion des items de la grille */
.artwork-container {
  position: relative;
  margin-bottom: 20px; /* Espace vertical entre les images */
  break-inside: avoid; /* Empêche l'image de se couper entre deux colonnes */
  overflow: hidden;
  border-radius: 4px;
}

.artwork-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

/* Style de l'overlay (masqué par défaut) */
.artwork-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Fond noir transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  padding: 15px;
  box-sizing: border-box;
}

/* Affichage au survol */
.artwork-container:hover .artwork-overlay {
  opacity: 1;
}

.artwork-container:hover .artwork-image img {
  transform: scale(1.05); /* Léger zoom sur l'image */
}

/* Typographie de l'overlay */
.artwork-title {
  color: #ffffff;
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

.artwork-meta {
  color: #dddddd;
  font-size: 0.9rem;
  margin: 0;
}

.artwork-separator {
  margin: 0 5px;
}

/* Rend l'overlay cliquable sans style de lien classique */
a.artwork-overlay {
  text-decoration: none;
  cursor: pointer;
}

/* Indicateur visuel : Le cercle avec le "+" */
.artwork-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  color: #ffffff;
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.4s ease;
}

/* Ligne décorative sous le titre */
.artwork-line {
  width: 30px;
  height: 2px;
  background-color: #ffffff;
  margin: 15px auto 0 auto;
  transition: width 0.3s ease;
}

/* Animations au survol du conteneur */
.artwork-container:hover .artwork-icon {
  transform: rotate(90deg); /* Rotation de l'icône au survol */
}

.artwork-container:hover .artwork-line {
  width: 60px; /* La ligne s'allonge au survol */
}

/* Correction pour l'image (évite le décalage de 1px) */
.artwork-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Adaptabilité (Responsive) */
@media (max-width: 900px) {
  .view-content {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .view-content {
    column-count: 1;
  }
}

.oeuvre-detail {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 20px;
}

.oeuvre-detail__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.oeuvre-detail__media {
  min-height: 520px;
  background-color: #dfe3e4;
  padding: 32px;
}

.oeuvre-detail__media .field--name-field-photo-de-l-oeuvre,
.oeuvre-detail__media .field__item,
.oeuvre-detail__media .media,
.oeuvre-detail__media .media--type-image,
.oeuvre-detail__media .media__content {
  height: 100%;
}

.oeuvre-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oeuvre-detail__panel {
  background-color: #ffffff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 100px;
}

@media (max-width: 1024px) {
  .oeuvre-detail__panel {
    margin-top: 0;
  }
}

.oeuvre-detail__title {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  line-height: 1.2;
}

.oeuvre-detail__meta {
  margin: 0;
}

.oeuvre-detail__meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.oeuvre-detail__meta-row dt {
  font-weight: 600;
  color: #3a3a3a;
}

.oeuvre-detail__meta-row dd {
  margin: 0;
  color: #222;
}

.oeuvre-detail__description .field--name-field-content {
  margin: 0;
}

.oeuvre-detail__description .field__label {
  display: none;
}

.oeuvre-detail__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.oeuvre-detail__price-label {
  font-weight: 600;
  color: #3a3a3a;
}

.oeuvre-detail__price-value {
  font-size: 1.25rem;
  font-family: "Noto Serif", serif;
  color: #222;
}

.oeuvre-detail__availability {
  font-size: 0.95rem;
  color: #4f4f4f;
}

.oeuvre-detail__inquiry {
  border-top: 1px solid #ececec;
  padding-top: 18px;
}

.oeuvre-detail__inquiry-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.oeuvre-detail__inquiry .form-item {
  margin-bottom: 12px;
}

.oeuvre-detail__inquiry input,
.oeuvre-detail__inquiry select,
.oeuvre-detail__inquiry textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(119, 123, 124, 0.4);
  border-radius: 0;
  padding: 10px 12px;
  font: inherit;
  background: transparent;
  outline: none;
  transition: border-bottom-color 0.3s ease;
}

.oeuvre-detail__inquiry input:focus,
.oeuvre-detail__inquiry select:focus,
.oeuvre-detail__inquiry textarea:focus {
  border-bottom-color: #000000;
  box-shadow: none;
}

.oeuvre-detail__inquiry textarea {
  min-height: 120px;
  resize: vertical;
}

.oeuvre-detail__inquiry .button,
.oeuvre-detail__inquiry button,
.oeuvre-detail__inquiry input[type="submit"] {
  background: linear-gradient(to bottom, #4e6172 0%, #425566 100%);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  text-transform: uppercase;
}

.oeuvre-detail__inquiry-fallback {
  margin: 0;
}

.biographie-detail {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 20px;
}

.biographie-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.biographie-detail__media img {
  width: 100%;
  height: auto;
  display: block;
}

.biographie-detail__panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.biographie-detail__title {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  line-height: 1.2;
}

.biographie-detail__content .field--name-field-content {
  margin: 0;
}

.biographie-detail__content .field__label {
  display: none;
}

.contact-detail {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 20px;
}

.contact-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-detail__content-column {
  background: transparent;
}

.contact-detail__title {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  line-height: 1.2;
}

.contact-detail__content .field--name-field-content {
  margin: 0;
}

.contact-detail__content .field__label {
  display: none;
}

.contact-detail__form-panel {
  background: #fff;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.contact-detail__form-panel .form-item {
  margin-bottom: 12px;
}

.contact-detail__form-panel input,
.contact-detail__form-panel select,
.contact-detail__form-panel textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(119, 123, 124, 0.4);
  border-radius: 0;
  padding: 10px 12px;
  font: inherit;
  background: transparent;
  outline: none;
  transition: border-bottom-color 0.3s ease;
}

.contact-detail__form-panel input:focus,
.contact-detail__form-panel select:focus,
.contact-detail__form-panel textarea:focus {
  border-bottom-color: #000000;
  box-shadow: none;
}

.contact-detail__form-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-detail__form-panel .button,
.contact-detail__form-panel button,
.contact-detail__form-panel input[type="submit"] {
  background: linear-gradient(to bottom, #4e6172 0%, #425566 100%);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  text-transform: uppercase;
}

.contact-detail__fallback {
  margin: 0;
}

.homepage-detail {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 20px;
}

.homepage-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.homepage-detail__content-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.homepage-detail__title {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
  line-height: 1.2;
}

.homepage-detail__content .field--name-field-content {
  margin: 0;
}

.homepage-detail__content,
.homepage-detail__content p,
.homepage-detail__content li {
  font-size: 20px;
  color: #5b6061;
}

.homepage-detail__content h2 {
  font-size: 96px;
  color: #2f3334;
  margin-bottom: 0;
}

.homepage-detail__content h3 {
  font-size: 90px;
  color: #4e6172;
  margin-bottom: 40px;
}

.homepage-detail__content .field__label {
  display: none;
}

.homepage-detail__cta {
  margin-top: 8px;
}

.homepage-detail__cta .field__label {
  display: none;
}

.homepage-detail__cta .field__item {
  margin: 0;
}

.homepage-detail__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: linear-gradient(90deg, #4e6161 0%, #425566 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #fff;
  text-decoration: none;
  border: 1px solid #425566;
  text-transform: uppercase;
  transition:
    background-position 0.35s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.homepage-detail__cta a:hover,
.homepage-detail__cta a:focus-visible {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(66, 85, 102, 0.28);
  color: #fff;
}

.homepage-detail__media {
  min-height: 520px;
  background-color: #dfe3e4;
}

.homepage-detail__media .field--name-field-image-principale,
.homepage-detail__media .field__item,
.homepage-detail__media .media,
.homepage-detail__media .media--type-image,
.homepage-detail__media .media__content {
  height: 100%;
}

.homepage-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.homepage-detail__separator {
  position: relative;
  left: 50%;
  width: 100vw;
  height: clamp(220px, 34vw, 420px);
  margin-top: 72px;
  margin-left: -50vw;
  overflow: hidden;
  background-color: #1f2426;
  background-image: var(--homepage-separator-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.homepage-detail__separator::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 28, 0.4);
}

.homepage-detail__separator--fallback {
  background-image: none;
}

.homepage-detail__separator--fallback .field__label {
  display: none;
}

.homepage-detail__separator--fallback
  .field--name-field-image-de-fond-separation,
.homepage-detail__separator--fallback .field__item,
.homepage-detail__separator--fallback .media,
.homepage-detail__separator--fallback .media--type-image,
.homepage-detail__separator--fallback .media__content {
  height: 100%;
}

.homepage-detail__separator--fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.region-content {
  padding-bottom: 100px;
}

.views-element-container h2 {
  margin-bottom: 50px;
}

.layout-content {
  margin-top: 30px;
}

@media (max-width: 1024px) {
  .oeuvre-detail__layout {
    grid-template-columns: 1fr;
  }

  .oeuvre-detail__media {
    min-height: 420px;
  }

  .contact-detail__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .homepage-detail__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .homepage-detail__media {
    min-height: 420px;
  }

  .homepage-detail__separator {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .oeuvre-detail {
    padding: 20px 14px;
  }

  .oeuvre-detail__media {
    min-height: 320px;
  }

  .oeuvre-detail__panel {
    padding: 20px;
  }

  .biographie-detail__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .homepage-detail {
    padding: 20px 14px;
  }

  .homepage-detail__media {
    min-height: 320px;
  }

  .homepage-detail__separator {
    height: 240px;
    margin-top: 40px;
  }
}

/* Portfolio View - Year Grouping Titles */
.view-id-portfolio_homepage h3 {
  column-span: all;
  width: 100%;
  margin: 60px 0 30px 0;
  padding: 30px 0;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  font-weight: 400;
  color: #2f3334;
  border-top: 3px solid #2f3334;
  border-bottom: 1px solid #e0e0e0;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  position: relative;
}

/* Underline accent for h3 */
.view-id-portfolio_homepage h3::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #2f3334, rgba(47, 51, 52, 0.3));
}

/* Contact Page - Content Field */
.contact-detail__content {
  color: #5b6061;
  font-size: 18px;
  line-height: 1.6;
}
