/* Styles partagés des pages projet */

/* Full Page Scroll */
html, body { overflow: hidden; height: 100%; }
.fp-section {
  position: fixed !important; top: 0; left: 0; width: 100%;
  height: 100vh; height: 100svh;
  overflow: hidden; will-change: transform;
  transform: translateY(100vh); visibility: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(112px + env(safe-area-inset-top, 0px)) !important;
  box-sizing: border-box;
}
.fp-section.fp-active { visibility: visible; overflow-y: auto; -webkit-overflow-scrolling: touch; transform: none; }
/* Sections image full-bleed : on enlève le padding-top fp-section */
.projet-hero.fp-section,
.projet-contexte.fp-section,
.projet-showcase.fp-section { padding-top: 0; }

#fp-nav { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 9999; }
.fp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(55,57,46,0.25); border: none; padding: 0; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.fp-dot.fp-dot-active { background: var(--dark); transform: scale(1.4); }
@media (max-width: 920px) { #fp-nav { display: none; } }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; }

/* Layout split full-bleed : image edge-to-edge, content avec padding interne */
.projet-split {
  width: 100%; height: 100%;
  display: grid; align-items: stretch;
}
.projet-split--6040 { grid-template-columns: 1.15fr 1fr; }
.projet-split--4060 { grid-template-columns: 1fr 1.15fr; }
.projet-img-block {
  width: 100%; height: 100%;
  overflow: hidden;
}
.projet-img-block img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.projet-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(100px + env(safe-area-inset-top, 0px)) clamp(28px, 4vw, 64px) var(--space-md);
  max-width: 640px;
}
.projet-content .label { margin-bottom: var(--space-xs); }
.projet-content h1, .projet-content h2 { margin-bottom: var(--space-md); }
.projet-content .body { color: var(--gray); font-size: 1rem; line-height: 1.65; margin-bottom: var(--space-md); max-width: 480px; }
.projet-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md); }
.projet-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark); background: var(--lavender); padding: 6px 12px; border-radius: var(--radius-full); }

.projet-hero { background: var(--light); }
.projet-hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.05; }
.projet-contexte { background: var(--white); }
.projet-contexte h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; }

/* Process — stepper synchronisé avec image à droite */
.projet-process { background: var(--lavender); }
.projet-process-inner { max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 var(--space-md); }
.projet-process-header { text-align: center; margin-bottom: var(--space-lg); }
.projet-process-header h2 { margin-bottom: var(--space-sm); }
.projet-process-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: stretch;
}
.projet-steps-list { list-style: none; display: flex; flex-direction: column; }
.step-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-sm);
  padding: 14px 0;
  border-top: 1px solid rgba(55,57,46,0.18);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--transition);
  position: relative;
}
.step-item:last-child { border-bottom: 1px solid rgba(55,57,46,0.18); }
.step-item:hover { opacity: 0.85; }
.step-item.is-active { opacity: 1; }
.step-num {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--dark);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.step-body h3 {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 0;
}
.step-body .step-long,
.step-body .process-tools {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}
.step-item.is-active .step-long {
  max-height: 200px;
  opacity: 1;
  margin-top: 8px;
}
.step-item.is-active .process-tools {
  max-height: 80px;
  opacity: 1;
  margin-top: 10px;
  display: flex;
}
.step-long {
  font-size: 0.88rem;
  color: var(--dark);
  opacity: 0.8;
  line-height: 1.55;
}

/* Image grande à droite */
.projet-steps-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--white);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.projet-steps-image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.projet-steps-image img.is-active { opacity: 1; }

/* Tools pills */
.process-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--dark); background: rgba(255,255,255,0.55);
  padding: 4px 10px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.7);
}
.tool-pill img { display: block; flex-shrink: 0; }

.step-item-thumb { display: none; }
@media (max-width: 920px) {
  /* Sur mobile : chaque step devient une card autonome, plus de stepper synchro */
  .projet-process-layout { display: block; }
  .projet-steps-image { display: none; }
  .step-item {
    display: block;
    cursor: default;
    opacity: 1 !important;
    padding: var(--space-md) 0;
  }
  .step-item-thumb {
    display: block;
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--space-sm);
    background: var(--white);
  }
  .step-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .step-num {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 1.6rem;
  }
  .step-body { display: block; }
  /* Forcer toutes les descriptions et outils visibles */
  .step-item .step-long,
  .step-item .process-tools {
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 8px !important;
  }
  .step-item .process-tools { display: flex !important; }
}

/* Stats / chiffres clés */
.projet-stats { background: var(--white); }
.projet-stats-inner { max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 var(--space-md); text-align: center; }
.projet-stats-header { margin-bottom: var(--space-lg); }
.projet-stats-header h2 { margin-bottom: var(--space-sm); }
.projet-stats-header .subtitle { color: var(--gray); max-width: 520px; margin: 0 auto; }
.projet-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-md); }
.projet-stat { background: var(--light); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-md); position: relative; overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.projet-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.projet-stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--lavender); }
.projet-stat strong { display: block; font-family: var(--font-title); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--dark); margin-bottom: 6px; letter-spacing: -0.02em; }
.projet-stat span { font-size: 0.85rem; color: var(--gray); line-height: 1.4; }

/* Showcase final (dark) — full-bleed aussi */

/* Citation client (avis Google) — testimonial style */
.projet-quote {
  max-width: 760px;
  margin: var(--space-xl) auto 0;
  padding: var(--space-md) 0 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-md);
  align-items: flex-start;
  text-align: left;
  border-top: 1px solid rgba(55,57,46,0.1);
}
.projet-quote-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--dark);
  flex-shrink: 0;
}
.projet-quote-content { min-width: 0; }
.projet-quote-text {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 8px;
}
.projet-quote-author {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--dark);
}
.projet-quote-stars { color: #F5A623; letter-spacing: 1px; font-size: 0.78rem; }
.projet-quote-author strong { font-weight: 600; }
.projet-quote-source { opacity: 0.55; font-size: 0.75rem; }


    .projet-showcase { background: var(--dark); color: var(--white); }
.projet-showcase .label { color: var(--lavender); }
.projet-showcase h2 { color: var(--white); }
.projet-showcase ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.projet-showcase li { font-size: 0.95rem; color: rgba(255,255,255,0.85); padding-left: 32px; position: relative; line-height: 1.55; }
.projet-showcase li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--lavender) url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6l2.5 2.5L9.5 3.5' stroke='%2337392E' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Nav projet précédent / suivant */
.projet-nav {
  display: flex; justify-content: space-between; gap: var(--space-md);
  width: 100%; max-width: var(--max-w); margin: var(--space-lg) auto 0;
  padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid rgba(55,57,46,0.2);
}
.projet-nav-link {
  display: flex; align-items: center; gap: 12px;
  color: var(--dark); text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}
.projet-nav-link:hover { opacity: 0.6; }
.projet-nav-link.projet-nav-prev:hover { transform: translateX(-4px); }
.projet-nav-link.projet-nav-next:hover { transform: translateX(4px); }
.projet-nav-link .arrow { font-size: 1.6rem; font-family: var(--font-title); line-height: 1; }
.projet-nav-link .nav-label {
  display: block; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.55; margin-bottom: 2px;
}
.projet-nav-link strong { display: block; font-weight: 600; font-size: 0.95rem; }
.projet-nav-prev { text-align: left; }
.projet-nav-next { text-align: right; }
@media (max-width: 560px) {
  .projet-nav-link strong { display: none; }
}

.projet-cta { background: var(--lavender); text-align: center; }
.projet-cta-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--space-md); }
.projet-cta h2 { margin-bottom: var(--space-sm); }
.projet-cta .subtitle { color: var(--dark); opacity: 0.75; margin-bottom: var(--space-lg); }
.projet-cta .hero-actions { justify-content: center; }

@media (max-width: 920px) {
  .projet-hero.fp-section,
  .projet-contexte.fp-section,
  .projet-showcase.fp-section { padding-top: 0; }
  .projet-split--6040, .projet-split--4060 { grid-template-columns: 1fr; }
  .projet-split { display: flex; flex-direction: column; }
  .projet-img-block { aspect-ratio: 16/10; height: auto; flex-shrink: 0; }
  .projet-content { padding: var(--space-md) var(--space-md); max-width: 100%; }
  .projet-process-grid { grid-template-columns: 1fr; }
}

