/* Gilbert Boulay — site statique
   Identité visuelle inspirée du site Divi original, réorganisée et responsive. */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7f7;
  --color-text: #666666;
  --color-text-dark: #333333;
  --color-heading: #2c2c2c;
  --color-muted: #939393;
  --color-accent: #2ea3f2;
  --color-logo: #c4a574;
  --color-footer: #222222;
  --color-footer-bottom: #1f1f1f;
  --color-border: #e2e2e2;
  --font-sans: "Open Sans", "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --header-h: 72px;
  --max: 1080px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  opacity: 0.8;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.1em;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  height: var(--header-h);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  width: min(92%, 1200px);
  margin: 0 auto;
}

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

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-accent);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Navigation overlay —— */
.nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-overlay__inner {
  width: min(92%, 640px);
  margin: 2rem auto 4rem;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  border-bottom: 1px solid var(--color-border);
}

.nav-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--color-text-dark);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--color-accent);
  opacity: 1;
}

.nav-menu .submenu {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0 0 0 1rem;
}

.nav-menu .submenu a {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* Desktop: show inline menu on wide screens */
@media (min-width: 981px) {
  .menu-toggle {
    display: none;
  }

  .nav-overlay {
    position: static;
    inset: auto;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .nav-overlay__inner {
    width: auto;
    margin: 0;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-menu > li {
    border: 0;
    position: relative;
  }

  .nav-menu > li > a {
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
  }

  .nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 0.75rem 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--color-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav-menu > li:hover > .submenu,
  .nav-menu > li:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu .submenu a {
    padding: 0.45rem 1.25rem;
    color: var(--color-text);
  }

}

/* —— Hero —— */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Un peu plus d’air en haut pour centrer optiquement le titre dans la zone */
  padding: clamp(4.5rem, 8vw, 7rem) 1.5rem clamp(2.5rem, 4vw, 3.5rem);
  background-color: #fff;
  background-image:
    linear-gradient(188deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.43) 100%),
    url("../assets/images/hero-bg.jpg");
  /* Couche 1 = dégradé plein cadre ; couche 2 = texture entière en largeur (pas de cover) */
  background-size: 100% 100%, 100% auto;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
  animation: heroFade 1.1s var(--ease) both;
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__inner {
  width: 100%;
  max-width: 1080px;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.28);
  line-height: 2em;
  margin: 0 0 0.5rem;
  animation: rise 0.9s 0.15s var(--ease) both;
}

.hero__title-block {
  display: inline-block;
  max-width: 100%;
  margin: 0 auto 2.75rem;
  animation: rise 0.9s 0.28s var(--ease) both;
  text-align: center;
}

.hero__title {
  font-family: "Prata", Georgia, "Times New Roman", serif;
  font-size: clamp(3.125rem, 12vw, 9.375rem); /* 50px → 150px comme l’original */
  font-weight: 400;
  color: #333;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero__dates {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: #939393;
  margin: 1.15rem 0 0;
  padding: 0;
  text-align: right;
  line-height: 1.3;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section--soft {
  background: var(--color-bg-soft);
}

.section__title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2.5rem;
}

.page-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-text-dark);
}

.prose {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* —— Feature rows (home sculptures) —— */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .feature--reverse .feature__media {
    order: 2;
  }

  .feature--reverse .feature__body {
    order: 1;
  }
}

.feature__media img {
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.feature:hover .feature__media img {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.feature__body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature__body p {
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--color-heading);
  color: var(--color-heading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  background: var(--color-heading);
  color: #fff;
  opacity: 1;
}

.btn--accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent);
  color: #fff;
}

/* —— Category grids —— */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.series-card {
  text-align: center;
}

.series-card a {
  color: var(--color-text);
  display: block;
}

.series-card a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.series-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.65rem;
  border: 1px solid var(--color-border);
  transition: transform 0.35s var(--ease);
}

.series-card a:hover img {
  transform: scale(1.03);
}

.series-card span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.35;
}

/* —— Video (instruments) —— */
.video-block {
  max-width: 720px;
  margin: 3rem auto 0;
}

.video-block h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.video-player {
  width: 100%;
  background: #111;
  aspect-ratio: 720 / 480;
}

.video-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.video-note a {
  color: var(--color-accent);
}

/* —— Bio —— */
.bio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 720px;
  margin: 2.5rem auto 0;
}

@media (min-width: 768px) {
  .bio-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bio-gallery a {
  display: block;
  overflow: hidden;
}

.bio-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.bio-gallery a:hover img {
  transform: scale(1.05);
}

/* —— Gallery —— */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

.gallery-item {
  cursor: pointer;
  text-align: center;
}

.gallery-item__thumb {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-soft);
  aspect-ratio: 1;
}

.gallery-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.3;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.gallery-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 20, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox__caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  max-width: 90%;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  line-height: 1;
  opacity: 0.85;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
  font-size: 2.2rem;
}

.lightbox__prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* —— Footer —— */
.site-footer {
  background: var(--color-footer);
  color: #aaa;
  margin-top: 3rem;
}

.site-footer__bottom {
  background: var(--color-footer-bottom);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__email {
  margin: 0;
}

.site-footer__email a,
.site-footer a {
  color: #ccc;
}

.site-footer__email a:hover {
  color: #fff;
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 981px) {
  body.nav-open {
    overflow: auto;
  }
}
