/* ═══════════════════════════════════════════
   SECTEURS D'ACTIVITÉS — Style Patek Collection
   Full-screen stacked sections
   ═══════════════════════════════════════════ */

/* ── PAGE BODY ── */
.page-secteurs {
  background: var(--cream);
}

/* ── NAVBAR toujours sombre sur page secteurs ── */
.page-secteurs .navbar {
  background: rgba(7,30,45,0.45);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-bottom: 1px solid rgba(168,216,234,0.08);
  padding: 0.6rem 0;
}

.page-secteurs .navbar .nav-logo {
  height: 70px;
}

/* ── PAGE HERO (fond clair) ── */
.page-hero {
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12rem 2.5rem 5rem;
  background: var(--cream);
  text-align: center;
}
.page-hero-inner {
  max-width: 700px;
}
.page-hero-overline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--blue-ink);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease-out) 0.35s forwards;
}
.page-hero-title em {
  font-style: italic;
  color: var(--blue-deep);
}
.page-hero-text {
  font-size: 1rem;
  color: var(--grey-text);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.55s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── COLLECTION — Full-screen stacked (Patek style) ── */
.collection {
  position: relative;
}
.collection-item {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4rem;
}

/* Dégradés haut/bas pour fondre les transitions entre sections */
.collection-item::before,
.collection-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  z-index: 1;
  pointer-events: none;
}
.collection-item::before {
  top: 0;
  background: linear-gradient(to bottom, #000000 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}
.collection-item::after {
  bottom: 0;
  background: linear-gradient(to top, #000000 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}

/* Transition crème → sombre sur le premier item */
.collection-item:first-child::before {
  background: linear-gradient(to bottom, var(--cream) 5%, transparent 100%);
}

.collection-item-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.collection-item-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s linear;
}
.collection-item.visible .collection-item-bg img {
  transform: scale(1.06);
}
.collection-item-body {
  position: relative;
  z-index: 2;
  max-width: 420px;
  text-align: left;
  background: rgba(7,30,45,0.45);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.collection-item:nth-child(even) {
  justify-content: flex-start;
}

.collection-item-overline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 0.6rem;
}
.collection-item-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}
.collection-item-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
}

/* Reveal */
.collection-item.reveal {
  opacity: 1;
  transform: none;
}
.collection-item.reveal .collection-item-body {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s var(--ease-out) 0.2s, transform 0.9s var(--ease-out) 0.2s;
}
.collection-item.reveal.visible .collection-item-body {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA BOTTOM (fond clair) ── */
.secteurs-bottom {
  padding: 5rem 0 6rem;
  background: var(--cream);
  position: relative;
}
.secteurs-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--blue-light);
  opacity: 0.4;
}
.secteurs-bottom-inner {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}
.secteurs-bottom-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--blue-ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.secteurs-bottom-text {
  font-size: 0.92rem;
  color: var(--grey-text);
  line-height: 1.85;
  margin-bottom: 2rem;
}

/* Transition sombre → crème sur le dernier item */
.collection-item:last-child::after {
  height: 40%;
  background: linear-gradient(to top, var(--cream) 5%, transparent 100%);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .collection-item {
    height: 70vh;
    padding: 3rem 2rem;
    align-items: flex-end;
    justify-content: flex-start;
  }
  .collection-item-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .collection-item-text {
    font-size: 0.84rem;
  }
}
@media (max-width: 768px) {
  .page-hero {
    min-height: 50vh;
    padding: 10rem 1.5rem 3rem;
  }
  .page-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  /* Card compacte : la photo redevient la vedette, la card joue la légende posée en bas */
  .collection-item {
    height: 80vh;
    min-height: 480px;
    padding: 1.4rem;
    align-items: flex-end;
    justify-content: flex-start;
  }
  .collection-item-body {
    max-width: 100%;
    padding: 1.5rem 1.4rem;
    border-radius: 14px;
  }
  .collection-item-overline {
    font-size: 0.62rem;
    margin-bottom: 0.4rem;
  }
  .collection-item-title {
    font-size: clamp(1.8rem, 6.5vw, 2.2rem);
    margin-bottom: 0.7rem;
  }
  .collection-item-text {
    font-size: 0.82rem;
    line-height: 1.65;
  }
}
@media (max-width: 480px) {
  .page-hero {
    min-height: 45vh;
    padding: 9rem 1.2rem 2.5rem;
  }
  .collection-item {
    height: 78vh;
    min-height: 440px;
    padding: 1.2rem;
  }
  .collection-item-body {
    padding: 1.3rem 1.25rem;
  }
  .collection-item-title {
    font-size: clamp(1.7rem, 7vw, 2rem);
  }
}