/* ==========================================================================
   CASORIA CASE STUDY — STUDIO ELVEN GUERIN
   Direction Artistique Sombre, Cinématographique & Éditoriale.
   Images pleine largeur 100% alignées au texte, typographie contrastée,
   menu d'atelier Elven Guerin avec sortie intuitive, zéro cartes superflues
   (cartes réservées uniquement aux métriques KPIs en fin de page).
   ========================================================================== */

:root {
  /* Palette Sombre & Cinématographique Studio */
  --c-bg: #030406;
  --c-bg-card: rgba(16, 20, 28, 0.72);
  --c-bg-card-hover: rgba(24, 30, 42, 0.85);
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-hover: rgba(255, 255, 255, 0.2);
  --c-border-active: rgba(16, 185, 129, 0.4);

  /* Typographie */
  --c-text-title: #FFFFFF;
  --c-text-body: rgba(220, 226, 238, 0.8);
  --c-text-muted: rgba(160, 172, 196, 0.58);
  --c-text-dim: rgba(255, 255, 255, 0.38);

  /* Teintes Signature Émeraude & Ambre Studio */
  --c-emerald: #10B981;
  --c-emerald-glow: rgba(16, 185, 129, 0.22);
  --c-amber: #D97736;

  /* Polices */
  --font-text: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Clash Display', 'Satoshi', sans-serif;
  --font-sans: var(--font-text);
  --font-serif: var(--font-title);
  --font-mono: var(--font-text);

  /* Rayons d'Arrondi */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;

  /* Transitions */
  --t-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --t-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--c-bg);
  color: var(--c-text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text-body);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

/* Fond Ambiant Cosmique */
.ambient-cosmic-glow {
  position: fixed;
  inset: -15%;
  width: 130%;
  height: 130%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.035) 0%, transparent 60%);
  will-change: transform;
  animation: cosmicDrift 24s ease-in-out infinite alternate;
}

@keyframes cosmicDrift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.08) translate3d(-20px, 15px, 0); }
  100% { transform: scale(0.98) translate3d(15px, -15px, 0); }
}

/* ==========================================================================
   VOILE DÉGRADÉ SOUS LE HEADER (FLOU & TRANSPARENCE PROGRESSIVE AU SCROLL)
   Masque élégamment le contenu montant pour garantir une lisibilité absolue du logo et des onglets.
   ========================================================================== */
.header-veil {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 130px;
  z-index: 990;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(3, 4, 6, 0.96) 0%,
    rgba(3, 4, 6, 0.85) 40%,
    rgba(3, 4, 6, 0.4) 72%,
    rgba(3, 4, 6, 0) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
}

/* ==========================================================================
   Conteneur Unique d'Alignement Strict (1420px - Calé sur .projects-container)
   ========================================================================== */

.editorial-container {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 56px);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* ==========================================================================
   Header Bar Studio Elven Guerin (Header Officiel de l'Atelier)
   ========================================================================== */

.header-bar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.header-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.header-brand:hover {
  opacity: 0.85;
}

.header-brand img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Même barre de navigation que la page d'accueil. */
.nav-pill-control {
  position: relative;
  justify-self: center;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  width: 440px;
  height: 52px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(30, 32, 36, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

.nav-pill-slider {
  position: absolute;
  top: 4px;
  left: calc((100% - 8px) / 3 + 4px);
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 16px rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.nav-pill-tab {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease, transform 0.12s ease;
  user-select: none;
}

.nav-pill-tab:hover {
  color: #FFFFFF;
}

.nav-pill-tab:active {
  transform: scale(0.96);
}

.nav-pill-tab.is-active {
  color: #FFFFFF;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-2px);
}

.button--solid {
  background-color: #FFFFFF;
  color: #050608;
  border-color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.button--solid:hover {
  background-color: #dfdbd1;
  border-color: #dfdbd1;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6);
}

.header-cta {
  height: 44px;
  padding: 0 24px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  justify-self: end;
  pointer-events: auto;
}

/* ==========================================================================
   Bandeau Contextuel Projet (Fil d'Ariane & Raccourci Échap)
   ========================================================================== */

.project-breadcrumb-bar {
  padding-top: 104px;
  padding-bottom: 24px;
}

.project-breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(18, 22, 30, 0.6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
}

.breadcrumb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text-body);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--t-fast);
}

.breadcrumb-back-link:hover {
  color: #FFFFFF;
}

.back-arrow {
  transition: transform var(--t-fast);
}

.breadcrumb-back-link:hover .back-arrow {
  transform: translateX(-3px);
}

.key-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--c-text-muted);
}

.breadcrumb-project-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.info-num {
  font-family: var(--font-mono);
  color: var(--c-emerald);
  font-weight: 600;
}

.info-sep {
  color: var(--c-text-dim);
}

.info-title {
  color: #FFFFFF;
  font-weight: 600;
}

.info-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--c-emerald);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   HERO ÉDITORIAL (STYLE IMAGE 1 : "Know it all")
   Grand Titre avec Italique Serif · Paragraphe · Image Pleine Largeur
   ========================================================================== */

.editorial-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 78svh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(150px, 20vh, 190px) 0 clamp(54px, 8vh, 94px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.editorial-hero::before,
.editorial-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.editorial-hero::before {
  z-index: -2;
  background: url("projets/casoria/hugo-photo3.webp") center 42% / cover no-repeat;
  filter: saturate(0.68) brightness(0.58) contrast(1.08);
  transform: scale(1.02);
}

.editorial-hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 4, 6, 0.96) 0%, rgba(3, 4, 6, 0.82) 37%, rgba(3, 4, 6, 0.30) 100%),
    linear-gradient(0deg, rgba(3, 4, 6, 0.88) 0%, transparent 48%, rgba(3, 4, 6, 0.36) 100%);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero-meta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-emerald);
  margin-bottom: 20px;
}

.editorial-hero__title {
  font-family: var(--font-title);
  font-size: clamp(48px, 6.8vw, 96px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--c-text-title);
  margin-bottom: 24px;
}

.editorial-hero__title em {
  font-family: var(--font-title);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.04em;
  color: #FFFFFF;
}

.editorial-hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--c-text-body);
  max-width: 820px;
  margin-bottom: 36px;
}

.editorial-hero__sub strong {
  display: block;
  margin-bottom: 12px;
  color: #FFFFFF;
  font-weight: 600;
}

.case-video-embed {
  width: min(1420px, calc(100% - clamp(40px, 7vw, 112px)));
  aspect-ratio: 16 / 9;
  margin: clamp(36px, 6vw, 82px) auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5), 0 0 35px var(--c-emerald-glow);
  user-select: none;
}

.case-video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  pointer-events: none;
  transform: scale(1.02);
  transform-origin: center center;
}

.video-shield-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  pointer-events: auto;
  cursor: default;
}

/* ==========================================================================
   RÉVÉLATION CINÉMATIQUE ÉDITORIALE (DOUBLE OBTURATEUR & BALAYAGE DE LUMIÈRE)
   ========================================================================== */
.project-curtain-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  overflow: hidden;
}

.project-curtain-loader.is-dismissed {
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 1.2s;
}

/* Les deux volets d'obsidienne qui s'écartent comme un obturateur cinématographique */
.curtain-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background-color: #030406;
  z-index: 1;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.85, 0, 0.15, 1);
}

.curtain-panel--top {
  top: 0;
  transform: translateY(0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.curtain-panel--bottom {
  bottom: 0;
  transform: translateY(0);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-curtain-loader.is-revealing .curtain-panel--top {
  transform: translateY(-101%);
}

.project-curtain-loader.is-revealing .curtain-panel--bottom {
  transform: translateY(101%);
}

/* Typographie centrale sculpturale */
.curtain-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-curtain-loader.is-revealing .curtain-content {
  opacity: 0;
  transform: scale(1.08) translateY(-12px);
}

.curtain-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-emerald);
  margin-bottom: 14px;
}

.curtain-tag {
  color: var(--c-text-muted);
  font-size: 10.5px;
  opacity: 0.7;
}

.curtain-title-wrap {
  position: relative;
  overflow: hidden;
  padding: 6px 24px;
}

.curtain-title {
  font-family: var(--font-title);
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #FFFFFF;
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(110deg, #FFFFFF 0%, rgba(227, 235, 212, 0.75) 40%, #FFFFFF 60%, rgba(227, 235, 212, 0.95) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: curtainTitleTracking 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes curtainTitleTracking {
  0% {
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  50% {
    opacity: 1;
  }
  100% {
    letter-spacing: 0.08em;
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Faisceau de lumière spéculaire balayant le titre */
.curtain-glint {
  position: absolute;
  top: -20%;
  left: -80%;
  width: 50%;
  height: 140%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: skewX(-28deg);
  pointer-events: none;
  animation: curtainLightSweep 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes curtainLightSweep {
  0% {
    left: -80%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    left: 140%;
    opacity: 0;
  }
}

.curtain-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.curtain-line {
  width: 28px;
  height: 1px;
  background: var(--c-emerald);
  box-shadow: 0 0 10px var(--c-emerald);
  animation: curtainLineExpand 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes curtainLineExpand {
  0% { width: 0px; opacity: 0; }
  100% { width: 36px; opacity: 1; }
}

.curtain-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* ==========================================================================
   IMAGES PLEINE LARGEUR (100% de la largeur du texte)
   ========================================================================== */

.fullwidth-visual-wrap {
  width: 100%;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: #0E1218;
  margin-top: 14px;
}

.fullwidth-visual-img {
  width: 100%;
  height: auto;
  min-height: 420px;
  max-height: 680px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.fullwidth-visual-wrap:hover .fullwidth-visual-img {
  transform: scale(1.015);
}

.visual-glass-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  background: rgba(10, 13, 18, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
}

.visual-glass-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.visual-glass-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-emerald);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 8px;
}

/* ==========================================================================
   MANIFESTE TYPOGRAPHIQUE (STYLE IMAGE 2 : CITATION NOIR PROFOND)
   Grande typographie contrastée alignée sur la même largeur
   ========================================================================== */

.editorial-manifesto-section {
  padding: clamp(60px, 9vh, 120px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.editorial-manifesto {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  max-width: 1180px;
  margin: 0 auto 14px;
  text-align: center;
}

.editorial-manifesto em {
  font-family: var(--font-title);
  font-weight: 700;
  font-style: normal;
  display: inline-block;
  color: #E3EBD4;
  background: linear-gradient(105deg, #375534 0%, #6B9071 30%, #E3EBD4 48%, #6B9071 68%, #0F2A1D 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(107, 144, 113, 0.32));
  animation: casoriaConversionGlow 7s ease-in-out infinite;
}

.editorial-manifesto-sub {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

@keyframes casoriaConversionGlow {
  0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 10px rgba(107, 144, 113, 0.18)); }
  50% { background-position: 100% 50%; filter: drop-shadow(0 0 20px rgba(227, 235, 212, 0.40)); }
}

/* ==========================================================================
   CHAPITRES ÉDITORIAUX PLEINE LARGEUR (STYLE "Pioneering ideas")
   ========================================================================== */

.editorial-chapter {
  padding: clamp(60px, 8vh, 110px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.editorial-chapter__header {
  margin-bottom: 30px;
}

.editorial-chapter__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-emerald);
  margin-bottom: 12px;
}

.editorial-chapter__title {
  font-family: var(--font-title);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--c-text-title);
  line-height: 1.1;
  margin-bottom: 20px;
}

.editorial-chapter__title em {
  font-family: var(--font-title);
  font-weight: 700;
  font-style: normal;
  color: #FFFFFF;
}

.editorial-chapter__body {
  font-size: clamp(16px, 1.3vw, 17.5px);
  line-height: 1.75;
  color: var(--c-text-body);
  max-width: 100%;
  margin-bottom: 36px;
}

.editorial-chapter__body p + p {
  margin-top: 16px;
}

/* Présentation courte du fondateur : la photo accompagne le récit sans le dominer. */
.case-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.case-intro-grid .editorial-chapter__body {
  margin: 0;
}

.case-intro-copy .editorial-chapter__header {
  margin-bottom: 14px;
}

.founder-profile {
  justify-self: end;
  width: clamp(280px, 24vw, 330px);
  height: clamp(280px, 24vw, 330px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #151611;
}

.founder-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 20%;
  transform: scale(2.5);
  transform-origin: 52% 18%;
}

/* ==========================================================================
   BLOC SCINDÉ INNOVATION X VISION (2 COLONNES ALIGNÉES)
   ========================================================================== */

.split-chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 36px;
}

.split-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: #0E1218;
}

.split-visual img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.split-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.split-subblock h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 8px;
}

.split-subblock p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-body);
}

/* ==========================================================================
   SECTION KPIS & RÉSULTATS (LES SEULES CARDS DE LA PAGE)
   ========================================================================== */

.metrics-section {
  padding: clamp(60px, 8vh, 110px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.metric-card {
  background: var(--c-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--t-smooth);
}

.metric-card:hover {
  border-color: var(--c-border-hover);
  background: var(--c-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.metric-card__val {
  font-family: var(--font-title);
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 10px;
}

.metric-card__label {
  font-size: 13.5px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   TÉMOIGNAGE DU FONDATEUR
   ========================================================================== */

.testimonial-block {
  padding: clamp(60px, 8vh, 100px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-quote {
  font-family: var(--font-text);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.45;
  color: #FFFFFF;
  width: 100%;
  position: relative;
  margin-bottom: 40px;
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(135deg, rgba(232, 229, 215, 0.10), rgba(122, 143, 102, 0.10));
  border: 1px solid rgba(232, 229, 215, 0.20);
  border-radius: 28px 28px 28px 7px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.98);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 1.05s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 1.05s;
  will-change: opacity, transform;
}

.testimonial-quote::after {
  content: '';
  position: absolute;
  left: 30px;
  bottom: -10px;
  width: 19px;
  height: 19px;
  background: rgba(190, 194, 176, 0.13);
  border-right: 1px solid rgba(232, 229, 215, 0.20);
  border-bottom: 1px solid rgba(232, 229, 215, 0.20);
  transform: rotate(45deg);
}

.testimonial-quote.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.testimonial-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-emerald);
}

.testimonial-author-name {
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
}

.testimonial-author-meta {
  font-size: 13px;
  color: var(--c-text-muted);
}

.testimonial-chat {
  width: 100%;
}

.testimonial-message--agency {
  width: min(620px, 88%);
  margin-left: auto;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.98);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 3.35s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 3.35s;
  will-change: opacity, transform;
}

.agency-reply {
  margin: 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #E3EBD4, #BFD1B5);
  color: #0F2A1D;
  border-radius: 22px 22px 7px 22px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  font-weight: 600;
  box-shadow: 0 18px 45px rgba(107, 144, 113, 0.16);
}

.agency-reply-meta {
  margin: 2px 0 0;
  text-align: left;
  font-size: 12px;
  color: rgba(227, 235, 212, 0.52);
}

.agency-reply-author {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.agency-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.agency-avatar img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.agency-reply-author-name {
  color: #E3EBD4;
  font-size: 13px;
  font-weight: 700;
}

.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 28px 0 18px 10px;
  padding: 12px 14px;
  border: 1px solid rgba(227, 235, 212, 0.16);
  border-radius: 999px;
  background: rgba(227, 235, 212, 0.06);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.chat-typing--client {
  margin-top: 0;
  transition-delay: 0.12s;
}

.chat-typing--agency {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: 10px;
  transition-delay: 2.05s;
}

.chat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6B9071;
  animation: chatTypingPulse 1s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

.testimonial-block.is-chat-active .chat-typing,
.testimonial-block.is-chat-active .testimonial-message--agency {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.testimonial-block.is-chat-active .chat-typing--client {
  animation: chatTypingExit 0.2s ease 1.02s forwards;
}

.testimonial-block.is-chat-active .chat-typing--agency {
  animation: chatTypingExit 0.2s ease 3.25s forwards;
}

@keyframes chatTypingPulse {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes chatTypingExit {
  to { opacity: 0; transform: translateY(-6px) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-quote,
  .testimonial-message--agency,
  .chat-typing { transition-delay: 0s; animation: none !important; }
}

/* ==========================================================================
   SECTION CONTACT & SORTIE PROJET
   ========================================================================== */

.editorial-contact {
  padding: clamp(60px, 8vh, 110px) 0;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-title {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 18px;
}

.contact-title em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
}

.contact-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--c-text-muted);
  margin-bottom: 24px;
}

.contact-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-emerald);
  text-decoration: none;
  transition: color var(--t-fast);
}

.contact-mail-link:hover {
  color: #34D399;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: #FFFFFF;
  outline: none;
  transition: all var(--t-fast);
}

.form-input:focus, .form-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--c-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.btn-submit-white {
  padding: 14px 28px;
  background: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.btn-submit-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

/* Navigation de bas de page pour revenir à la galerie */
.project-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
}

.btn-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--c-border);
  transition: all var(--t-fast);
}

.btn-footer-back:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-3px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.editorial-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 13px;
  color: var(--c-text-dim);
}

.editorial-footer a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}

.editorial-footer a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETTES & SMARTPHONES) (v4.5)
   ========================================================================== */

@media (max-width: 860px) {
  .editorial-container {
    padding: 0 16px;
  }

  .header-bar {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 24px));
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1000;
  }

  .header-brand,
  .header-cta {
    display: none;
  }

  .nav-pill-control {
    width: 100%;
    max-width: 360px;
    height: 46px;
    padding: 3px;
    margin: 0 auto;
    pointer-events: auto;
  }

  .nav-pill-tab {
    font-size: 13.5px;
    padding: 0 10px;
  }

  .star-hero {
    padding-top: 85px;
    padding-bottom: 24px;
  }

  .star-hero-title {
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.15;
  }

  .split-chapter-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .founder-profile {
    justify-self: start;
    width: min(100%, 340px);
    height: 340px;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-breadcrumb-bar {
    padding-top: 84px;
  }

  .breadcrumb-project-info {
    display: none;
  }
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .visual-glass-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .project-footer-nav {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .header-bar {
    top: 12px;
    width: calc(100% - 16px);
  }

  .nav-pill-control {
    max-width: 320px;
    height: 42px;
    padding: 2.5px;
  }

  .nav-pill-tab {
    font-size: 12px;
    padding: 0 6px;
  }

  .star-hero {
    padding-top: 75px;
  }

  .star-hero-title {
    font-size: 24px;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}
