/* ==========================================================================
   PAGE: PROJET-DEDIEE (Fiche projet création dédiée)
   ========================================================================== */

/* ==========================================================================
   SECTION 1: HERO — Fixed background image
   ========================================================================== */

.dediee-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

/* Fixed background image container */
.dediee-hero-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
}

.dediee-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SCROLLING CONTENT — Covers hero on scroll
   ========================================================================== */

.dediee-content {
  position: relative;
  z-index: 2;
  margin-top: -100vh; /* Pull up to overlap hero */
}

/* Sticky title — stays at top until pushed by content */
.dediee-title-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 70px var(--gap) 40px;
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: none;
}

.dediee-title {
  position: sticky;
  top: 70px;
  font-family: 'Plaak21A', var(--font-title);
  font-size: var(--size-h1);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.9;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 959px) {
  .dediee-title-wrapper {
    padding: calc(var(--header-offset) + 24px) var(--gap) 32px clamp(120px, 18vw, 160px);
  }

  .dediee-title {
    top: calc(var(--header-offset) + 24px);
    max-width: min(100%, 7ch);
  }
}

@media (min-width: 960px) {
  /* 7.8vw, but never above the bottom of the fixed logo */
  .dediee-title-wrapper {
    padding: max(7.8vw, var(--header-offset)) var(--gap) 60px;
  }

  .dediee-title {
    top: max(7.8vw, var(--header-offset));
  }
}

/* The header is transparent over the full-screen photo: a shadow keeps the
   white menu readable on light parts of the photo */
.template-projet-dediee .nav-item a {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.template-projet-dediee .nav-toggle .icon {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
}

/* Footer must be above fixed hero elements */
.template-projet-dediee .site-footer,
.template-projet-dediee .partenaire-banner {
  position: relative;
  z-index: 10;
}

/* Gallery sections use light-theme background */
.template-projet-dediee .tournee-section-gallery,
.template-projet-dediee .tournee-hero-bg {
  --bg: var(--color-light-bg);
  --fg: #050505;
  background: var(--bg);
  color: var(--fg);
}

/* Text sections: dark by default on projet-dediee */
.template-projet-dediee .tournee-section-text {
  --bg: #050505;
  --fg: #F0EFEF;
  background: var(--bg);
  color: var(--fg);
}

.template-projet-dediee .tournee-section-text.dediee-section-text-dark {
  --bg: #050505;
  --fg: #F0EFEF;
  background: var(--bg);
  color: var(--fg);
}

.template-projet-dediee .tournee-section-text.dediee-section-text-light {
  --bg: var(--color-light-bg);
  --fg: #050505;
  background: var(--bg);
  color: var(--fg);
}

/* Additional gallery: single regular grid layout */
/* ==========================================================================
   DESCRIPTION — First section with subtitle and text
   ========================================================================== */

.dediee-description {
  padding: 60px var(--gap);
  padding-left: 30vw;
  width: 100%;
  background: var(--bg);
}

.dediee-description-subtitle {
  margin-bottom: 20px;
}

.dediee-description-content {
  max-width: var(--content-max-width);
  font-size: var(--text-base);
  line-height: var(--line-height-body);
}

.dediee-description-content p {
  margin: 0 0 1em;
}

.dediee-description-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 959px) {
  .dediee-description {
    padding-left: var(--gap);
  }
}

@media (min-width: 960px) {
  .dediee-description {
    padding: 80px;
    padding-left: 30vw;
  }
}

/* ==========================================================================
   KEYPOINTS — Focus style, no arrows, text aligned bottom
   ========================================================================== */

.dediee-keypoints {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: #111;
}

.dediee-keypoints-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.dediee-keypoints-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px var(--gap);
}

.dediee-keypoints-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dediee-keypoints-item {
  display: flex;
  align-items: center;
}

.dediee-keypoints-text {
  font-family: var(--font-title);
  /* min 22px so that long words fit on phones; unchanged from 534px */
  font-size: clamp(22px, 6vw, 72px);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
  min-width: 0;
  /* a word too long for a phone line is hyphenated (lang fr), never cut */
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (min-width: 960px) {
  .dediee-keypoints-overlay {
    padding: 60px 80px;
  }

  .dediee-keypoints-list {
    gap: 12px;
  }
}

/* ==========================================================================
   CITATION — Focus style section with background image
   ========================================================================== */

.dediee-citation {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: #111;
}

.dediee-citation-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.dediee-citation-overlay {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  width: 100%;
}

.dediee-citation-text {
  font-family: 'plaak44b', sans-serif;
  font-size: 1.5rem;
  font-weight: normal;
  color: #fff;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dediee-citation-quote {
  display: inline;
  font-size: 1.2em;
  vertical-align: middle;
  opacity: 0.7;
}

.dediee-citation-quote-open {
  margin-right: 0.1em;
}

.dediee-citation-quote-close {
  margin-left: 0.1em;
}

@media (min-width: 960px) {
  .dediee-citation-overlay {
    padding: 60px 80px;
  }

  .dediee-citation-text {
    font-size: 2.5rem;
  }
}
