/* ============================================
   REGA — Page Portfolio (longue scroll éditoriale)
   Hérite des variables et styles de ../style.css
   ============================================ */

/* ── Hero portfolio ─────────────────────────── */
.pf-hero {
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.pf-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.pf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 28px;
}
.pf-hero__eyebrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transform: rotate(-8deg);
}
.pf-hero__title {
  position: relative;
  font-family: 'Anton', sans-serif;
  font-size: clamp(60px, 9vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: uppercase;
}
.pf-hero__title-main {
  display: block;
}
.pf-hero__title-cursive {
  position: absolute;
  top: 0.68em;
  left: 4.35em;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--orange);
  font-style: normal;
  text-transform: none;
  font-size: 0.58em;
  line-height: 1;
  letter-spacing: 0;
  display: inline-block;
  transform: rotate(-11deg);
  transform-origin: center;
  z-index: 2;
  pointer-events: none;
}
.pf-hero__lead {
  max-width: 460px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-bottom: 24px;
}
.pf-hero__lead strong { color: var(--ink); font-weight: 700; }
.pf-hero__count {
  display: inline-block;
  margin-top: 32px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}
.pf-hero__count > span {
  display: inline-block;
  color: var(--orange);
  margin: 0 6px;
  font-size: 20px;
  vertical-align: -2px;
  font-weight: 900;
  line-height: 1;
}
.pf-hero__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pf-hero__cta-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute, #6b4a40);
}
.pf-hero__cta-hint > span {
  display: inline-block;
  margin: 0 4px;
  color: var(--orange);
  font-weight: 900;
}

/* ── Sticky index nav ───────────────────────── */
.pf-index {
  position: sticky;
  top: 88px;
  z-index: 60;
  background: rgba(250, 245, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 48px;
}
.pf-index__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-index__inner::-webkit-scrollbar { display: none; }
.pf-index__label {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 22px;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
}
.pf-index__list {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pf-index__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.pf-index__link:hover {
  color: var(--ink);
  background: var(--cream-2);
  border-color: var(--line);
}
.pf-index__link.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ============================================
   PROJETS — section éditoriale
   Chaque projet utilise --brand (CSS custom prop)
   défini en inline-style sur la section
   ============================================ */
.pf-project {
  padding: 120px 48px 100px;
  position: relative;
}

/* ── Header projet : médaillon + titre + url ── */
.pf-project__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  margin-bottom: 68px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* MÉDAILLON : cercle rempli avec la couleur de la marque */
.pf-medallion {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: var(--brand, var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 6px 6px 0 var(--ink), 0 18px 40px rgba(42, 16, 10, 0.18);
  transform: rotate(-4deg);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.pf-medallion:hover { transform: rotate(0deg) scale(1.04); }
.pf-medallion__ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(250, 245, 238, 0.32);
  pointer-events: none;
}
.pf-medallion img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
.pf-medallion__star {
  position: absolute;
  width: 22px;
  height: 22px;
  fill: var(--orange);
  top: -8px;
  right: -2px;
  transform: rotate(12deg);
  filter: drop-shadow(2px 2px 0 var(--ink));
  z-index: 3;
}

.pf-project__head-text { min-width: 0; }
.pf-project__sector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.pf-project__sector::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.pf-project__title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(52px, 6.5vw, 96px);
  line-height: 0.95;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.pf-project__title .script {
  font-family: 'Caveat', cursive;
  color: var(--orange);
  font-size: 0.7em;
  text-transform: none;
  font-weight: 700;
  margin-right: 0.15em;
  display: inline-block;
  transform: translateY(-0.08em);
}
.pf-project__url {
  font-family: 'JetBrains Mono', 'Sora', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--cream);
}

/* ============================================
   VISUELS — galerie éditoriale dramatique
   ============================================ */
.pf-project__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Showcase : grande zone visuelle avec fond marque oblique */
.pf-showcase {
  position: relative;
  margin-bottom: 80px;
  padding: 56px 48px 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
/* Fond marque oblique en arrière-plan */
.pf-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--brand, var(--ink)) 0%,
    var(--brand, var(--ink)) 55%,
    transparent 55%);
  opacity: 0.92;
  z-index: -2;
}
/* Bande cream pour le reste */
.pf-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream-2);
  z-index: -3;
}
/* Petit motif sparkle décoratif en bas à droite */
.pf-showcase__sparkle {
  position: absolute;
  bottom: 24px;
  right: 32px;
  width: 56px;
  height: 56px;
  fill: var(--orange);
  opacity: 0.4;
  transform: rotate(15deg);
  z-index: 1;
  pointer-events: none;
}

.pf-showcase__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: center;
}

/* HERO SHOT : avec ombre dramatique + légère rotation */
.pf-shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(42, 16, 10, 0.35),
    0 12px 24px rgba(42, 16, 10, 0.18),
    0 0 0 1px rgba(42, 16, 10, 0.08);
  aspect-ratio: 16 / 10;
  background: var(--ink);
  transform: rotate(-1.5deg);
  transition: transform .5s ease;
}
.pf-shot:hover { transform: rotate(0deg) scale(1.01); }
.pf-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Mockup MOBILE : iPhone réaliste avec Dynamic Island ── */
.pf-mobile {
  position: relative;
  border-radius: 42px;
  background: linear-gradient(145deg, #1A0E08 0%, #2A100A 100%);
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(42, 16, 10, 0.4),
    0 12px 24px rgba(42, 16, 10, 0.2),
    inset 0 0 0 2px rgba(250, 245, 238, 0.08);
  aspect-ratio: 9 / 19.5;
  transform: rotate(2deg);
  transition: transform .5s ease;
}
.pf-mobile:hover { transform: rotate(0deg) scale(1.02); }
.pf-mobile__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--ink);
}
.pf-mobile__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* Dynamic Island */
.pf-mobile__island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  background: #000;
  border-radius: 16px;
  z-index: 5;
}
/* Reflet subtil sur le côté */
.pf-mobile__screen::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(110deg, transparent 50%, rgba(255,255,255,0.08) 65%, transparent 80%);
  pointer-events: none;
  z-index: 4;
}

/* Légende mockup mobile */
.pf-mobile-caption {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}

/* ── Placeholder pour projets sans mockup mobile ── */
.pf-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(250, 245, 238, 0.12);
  border: 2px dashed rgba(250, 245, 238, 0.25);
  border-radius: 42px;
  padding: 60px 30px;
  color: rgba(250, 245, 238, 0.7);
  aspect-ratio: 9 / 19.5;
  transform: rotate(2deg);
}
.pf-placeholder svg {
  width: 38px; height: 38px;
  fill: var(--orange);
  margin-bottom: 14px;
  transform: rotate(-8deg);
}
.pf-placeholder p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ============================================
   CONTENU : entreprise + objectif + DA
   ============================================ */
.pf-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.pf-block__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.pf-block__label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
}
.pf-block h3 {
  font-family: 'Caveat', cursive;
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 18px;
}
.pf-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.pf-block p + p { margin-top: 14px; }
.pf-block strong { color: var(--ink); font-weight: 700; }

/* DA box */
.pf-da {
  background: var(--cream-2);
  color: var(--ink);
  padding: 56px 56px 64px;
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 50px rgba(42, 16, 10, 0.10),
    0 6px 14px rgba(42, 16, 10, 0.06);
  margin-bottom: 64px;
  position: relative;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}
.pf-da::before {
  /* Tâche de couleur marque en arrière-plan */
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--brand, var(--orange));
  opacity: 0.22;
  filter: blur(50px);
}
.pf-da__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(42, 16, 10, 0.18);
  position: relative;
}
.pf-da__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}
.pf-da__sparkle {
  width: 22px; height: 22px;
  fill: var(--orange);
  transform: rotate(-6deg);
}
.pf-da__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 56px;
  position: relative;
}
.pf-da__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(42, 16, 10, 0.55);
  margin-bottom: 18px;
}
.pf-da__chips { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-da__chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.pf-da__swatch {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(42, 16, 10, 0.22);
  box-shadow: 0 6px 14px rgba(42, 16, 10, 0.16);
}
.pf-da__hex {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(42, 16, 10, 0.65);
  letter-spacing: 0.05em;
}
.pf-da__typo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}
.pf-da__typo-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(42, 16, 10, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pf-da__typo-demo {
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
}
.pf-da__vibe {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  line-height: 1.2;
  color: var(--orange);
  font-weight: 700;
}

/* ── 2 sections clés ── */
.pf-secs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.pf-sec-shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 50px rgba(42, 16, 10, 0.22),
    0 8px 18px rgba(42, 16, 10, 0.12);
  aspect-ratio: 16 / 10;
  background: var(--ink);
  transition: transform .5s ease;
}
.pf-sec-shot:hover { transform: translateY(-4px); }
.pf-sec-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── Note défi ── */
.pf-note {
  padding: 36px 40px;
  border-left: 4px solid var(--orange);
  background: rgba(238, 78, 39, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 1080px;
  margin: 0 auto 56px;
}
.pf-note__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.pf-note p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.pf-note p + p { margin-top: 10px; }

/* ── CTA "Voir la fiche détaillée" ── */
.pf-detail-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}
.pf-detail-cta__hint {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--orange);
  font-weight: 700;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.pf-detail-cta__hint::after {
  content: '↘';
  margin-left: 8px;
  display: inline-block;
}

/* ============================================
   SÉPARATEUR ENTRE PROJETS
   Bande ink étroite avec sparkle orange + texte
   ============================================ */
.pf-separator {
  background: var(--ink);
  color: var(--cream);
  padding: 26px 48px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(250, 245, 238, 0.06);
  border-bottom: 1px solid rgba(250, 245, 238, 0.06);
}
.pf-separator::before,
.pf-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  background: rgba(238, 78, 39, 0.4);
}
.pf-separator::before { left: 0; right: calc(50% + 240px); }
.pf-separator::after  { left: calc(50% + 240px); right: 0; }

.pf-separator__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 460px;
  margin: 0 auto;
}
.pf-separator__star {
  width: 28px;
  height: 28px;
  fill: var(--orange);
  flex-shrink: 0;
  transform: rotate(-8deg);
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.4));
}
.pf-separator__star--big { width: 36px; height: 36px; }
.pf-separator__text {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}
.pf-separator__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(250, 245, 238, 0.45);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-left: 4px;
}

/* ============================================
   CTA fin de page
   ============================================ */
.pf-cta {
  padding: 120px 48px;
  text-align: center;
  background: var(--cream-2);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.pf-cta::before {
  content: '✦';
  position: absolute;
  top: 12%;
  left: 8%;
  font-size: 120px;
  color: rgba(238, 78, 39, 0.18);
  font-family: 'Sora', sans-serif;
  transform: rotate(-12deg);
}
.pf-cta::after {
  content: '✦';
  position: absolute;
  bottom: 14%;
  right: 10%;
  font-size: 80px;
  color: rgba(238, 78, 39, 0.18);
  transform: rotate(20deg);
}
.pf-cta h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin: 0 auto 28px;
  position: relative;
  color: var(--ink);
}
.pf-cta h2 .script {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--orange);
  text-transform: none;
}
.pf-cta__lead {
  font-size: 18px;
  color: rgba(42, 16, 10, 0.72);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.55;
  position: relative;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .pf-showcase__inner { grid-template-columns: 1fr; }
  .pf-mobile, .pf-placeholder { max-width: 320px; margin: 0 auto; }
  .pf-content { grid-template-columns: 1fr; gap: 40px; }
  .pf-da__grid { grid-template-columns: 1fr; gap: 36px; }
  .pf-secs { grid-template-columns: 1fr; }
  .pf-project__head {
    grid-template-columns: auto 1fr;
    gap: 24px;
  }
  .pf-medallion { width: 110px; height: 110px; }
  .pf-project__url { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
}

@media (max-width: 720px) {
  .pf-hero { padding: 80px 24px 50px; }
  .pf-hero__inner { grid-template-columns: 1fr; }
  .pf-index { padding: 12px 24px; top: 70px; }
  .pf-project { padding: 80px 24px 70px; }
  .pf-showcase { padding: 32px 22px 40px; }
  .pf-da { padding: 36px 24px; }
  .pf-cta { padding: 80px 24px; }
  .pf-separator { padding: 22px 24px; }
  .pf-separator::before, .pf-separator::after { display: none; }
  .pf-detail-cta__hint { font-size: 22px; }
}
