/* =====================================================
   MAXIME DUFLOT — Page : Accueil (index.html)
   ===================================================== */

/* ── Hero slideshow ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(.4,0,.2,1);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 14s ease-out forwards;
  transform-origin: center;
}
@keyframes kenburns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}
@keyframes heroEnterUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Gradient placeholders — overridden by real photo via inline background-image */
.hero-slide-1 .hero-slide-photo {
  background-image:
    radial-gradient(ellipse at 50% 35%, rgba(240,200,140,0.4) 0%, transparent 65%),
    linear-gradient(155deg, #6a4828 0%, #a87858 30%, #d4a878 55%, #8a5e34 80%, #2a1f15 100%);
}
.hero-slide-2 .hero-slide-photo {
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(255,210,150,0.3) 0%, transparent 70%),
    linear-gradient(150deg, #2a2018 0%, #5a3e2a 35%, #a87858 65%, #786040 90%, #1a1208 100%);
}
.hero-slide-3 .hero-slide-photo {
  background-image:
    radial-gradient(ellipse at 65% 40%, rgba(220,180,120,0.35) 0%, transparent 70%),
    linear-gradient(165deg, #1a2a28 0%, #3a5858 30%, #7a9090 55%, #4a6868 85%, #0a1818 100%);
}
.hero-slide-4 .hero-slide-photo {
  background-image:
    radial-gradient(ellipse at 40% 50%, rgba(255,200,140,0.3) 0%, transparent 70%),
    linear-gradient(160deg, #0a0a08 0%, #2a2620 30%, #5a4838 60%, #3a2e20 85%, #050402 100%);
}
.hero-slide-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 28%, transparent 0%, transparent 38%, rgba(0,0,0,0.32) 100%),
    linear-gradient(180deg,
      rgba(0,0,0,0.32) 0%,
      rgba(0,0,0,0.04) 30%,
      rgba(0,0,0,0.10) 58%,
      rgba(0,0,0,0.70) 100%
    );
  pointer-events: none;
}
/* Film grain overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* Identity top-left */
.hero-identity {
  position: absolute;
  top: 110px; left: 56px;
  z-index: 10;
  font-family: var(--font-serif);
  color: var(--paper);
  pointer-events: none;
}
.hero-identity-name { font-style: italic; font-weight: 300; font-size: 26px; letter-spacing: -0.01em; line-height: 1; }
.hero-identity-role { margin-top: 6px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 300; opacity: 0.75; }
/* Counter top-right */
.hero-counter {
  position: absolute;
  top: 110px; right: 56px;
  z-index: 10;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-serif); color: var(--paper);
  pointer-events: none;
  text-shadow: 0 1px 16px rgba(0,0,0,0.45);
  animation: heroEnterUp 1.4s cubic-bezier(.16,1,.3,1) 0.15s both;
}
.hero-counter-current { font-style: italic; font-weight: 300; font-size: 38px; line-height: 0.9; letter-spacing: -0.02em; min-width: 56px; text-align: right; }
.hero-counter-bar { width: 80px; height: 1px; background: rgba(255,255,255,0.25); position: relative; }
.hero-counter-fill { position: absolute; inset: 0; background: var(--paper); transition: width 0.6s cubic-bezier(.4,0,.2,1); }
.hero-counter-total { font-size: 14px; font-style: italic; opacity: 0.6; }
/* Center stage */
.hero-stage {
  position: relative; z-index: 10;
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 56px 72px;
}
/* Vignette radiale derrière le bloc texte — guide naturellement le regard */
.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0 -56px 0;
  background: radial-gradient(ellipse 88% 62% at 50% 84%, rgba(0,0,0,0.54) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}
.hero-stage-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-serif); font-style: italic; font-size: 15px;
  color: rgba(255,255,255,0.88); margin-bottom: 28px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 18px rgba(0,0,0,0.45);
  animation: heroEnterUp 1.4s cubic-bezier(.16,1,.3,1) 0.1s both;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 32px; height: 1px; background: rgba(255,255,255,0.4); }
.hero-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(60px, 8vw, 144px); line-height: 0.9;
  letter-spacing: -0.035em; color: var(--paper); margin-bottom: 36px;
  text-shadow: 0 2px 56px rgba(0,0,0,0.38), 0 1px 10px rgba(0,0,0,0.22);
  animation: heroEnterUp 1.6s cubic-bezier(.16,1,.3,1) 0.22s both;
}
.hero-title em { font-style: italic; }
.hero-title em.gold { color: var(--rust); }
.hero-sub {
  font-family: var(--font-serif); font-style: italic; font-size: 20px;
  font-weight: 300; line-height: 1.72; color: rgba(255,255,255,0.88);
  max-width: 540px; margin: 0 auto;
  text-shadow: 0 1px 28px rgba(0,0,0,0.38);
  animation: heroEnterUp 1.4s cubic-bezier(.16,1,.3,1) 0.38s both;
}
/* Mobile-only CTA (hidden on desktop) */
.hero-mobile-cta { display: none; }

/* Bottom row */
.hero-foot {
  position: absolute; bottom: 36px; left: 56px; right: 56px;
  z-index: 10; display: flex; justify-content: space-between; align-items: flex-end;
  color: rgba(255,255,255,0.85); pointer-events: none;
  animation: heroEnterUp 1.4s cubic-bezier(.16,1,.3,1) 0.48s both;
}
.hero-foot > * { pointer-events: auto; }
.hero-caption { font-family: var(--font-serif); font-style: italic; font-size: 14px; line-height: 1.5; max-width: 280px; opacity: 0.85; }
.hero-caption strong { font-style: normal; font-weight: 400; display: block; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; margin-bottom: 4px; }
.hero-cta-line {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-style: italic; font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.55);
  padding-bottom: 5px; transition: gap 0.5s cubic-bezier(.16,1,.3,1), border-color 0.4s, opacity 0.3s;
}
.hero-cta-line:hover {
  gap: 24px;
  border-color: rgba(255,255,255,0.9);
  opacity: 0.88;
}
/* Dots */
.hero-dots {
  position: absolute; bottom: 36px; left: 0; right: 0;
  z-index: 10; display: flex; justify-content: center; gap: 10px;
  animation: heroEnterUp 1.2s cubic-bezier(.16,1,.3,1) 0.54s both;
}
.hero-dot { width: 24px; height: 1px; background: rgba(255,255,255,0.25); cursor: pointer; border: none; transition: background 0.4s, height 0.3s; }
.hero-dot:hover { background: rgba(255,255,255,0.6); }
.hero-dot.is-active { background: var(--paper); height: 2px; }

/* ── Manifeste ── */
.manifesto {
  padding: 80px var(--gutter) 140px;
  display: grid;
  grid-template-columns: 1fr 2.3fr 0.8fr;
  gap: 60px;
  align-items: start;
}
.manifesto-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  padding-top: 12px;
}
.manifesto-text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.manifesto-text em { font-style: italic; }
.manifesto-text .accent {
  font-style: italic;
  color: var(--rust);
  position: relative;
}
.manifesto-text .accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--rust);
  opacity: 0.4;
}
.manifesto-side {
  border-left: 1px solid rgba(28, 24, 20, 0.12);
  padding-left: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 12px;
}
.manifesto-side strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}

/* ── Selected Works ── */
.work-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.work-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
  flex: 1;
}
.work-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid rgba(28,24,20,0.12);
  text-decoration: none;
  color: inherit;
}
.work-featured-img {
  position: relative;
  flex: 1;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.work-featured-ph {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(.16,1,.3,1), opacity 0.25s ease;
}
.work-featured:hover .work-featured-ph { transform: scale(1.03); }
.work-featured-num {
  position: absolute;
  top: 28px; left: 32px;
  z-index: 2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
  opacity: 0.9;
}
.work-featured-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 60px 48px 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.16,1,.3,1);
}
.work-featured-overlay-l { flex: 1; min-width: 0; }
.work-featured-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 6px;
}
.work-featured-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.work-featured-title em { font-style: italic; }
.work-featured-meta {
  text-align: right;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.85;
  flex-shrink: 0;
}
.work-featured-meta strong {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 2px;
}
.work-featured-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 24px 32px;
  border-top: 1px solid rgba(28,24,20,0.12);
  background: var(--paper);
}
.work-featured-progress-bar {
  flex: 1;
  height: 1px;
  background: rgba(28,24,20,0.12);
  position: relative;
}
.work-featured-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--ink);
  transition: width 0.6s cubic-bezier(.16,1,.3,1);
}
.work-featured-progress-counter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  min-width: 60px;
}
.work-featured-progress-counter em { color: var(--rust); font-weight: 400; }

.work-index {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.work-index-item {
  display: grid;
  grid-template-columns: 40px 1fr 110px;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  flex: 1;
  min-height: 0;
  border-bottom: 1px solid rgba(28,24,20,0.12);
  cursor: pointer;
  transition: padding 0.4s cubic-bezier(.16,1,.3,1), background 0.3s;
  text-decoration: none;
  color: inherit;
}
.work-index-item:last-child { border-bottom: none; }
.work-index-item:hover,
.work-index-item.is-active {
  background: var(--paper-deep);
  padding-left: 64px;
  padding-right: 32px;
}
.work-index-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-muted);
}
.work-index-item.is-active .work-index-num { color: var(--rust); }
.work-index-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.work-index-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-index-title em { font-style: italic; }
.work-index-sub {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.work-index-sub-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.5;
}
.work-index-thumb {
  width: 110px;
  height: 80px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.work-index-thumb-ph {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(.16,1,.3,1);
}
.work-index-item:hover .work-index-thumb-ph { transform: scale(1.06); }

/* ── Gradient placeholders ── */
.wp-1 { background: linear-gradient(155deg, #d8b88a 0%, #8b5f30 60%, #2e1f12 100%); }
.wp-2 { background: linear-gradient(170deg, #3a2a1a 0%, #7a5a3a 50%, #c8a878 100%); }
.wp-3 { background: linear-gradient(160deg, #a8c0b0 0%, #5a7878 50%, #2a3a3a 100%); }
.wp-4 { background: linear-gradient(165deg, #1a1a18 0%, #3a3530 50%, #7a6850 100%); }
.wp-5 { background: linear-gradient(155deg, #c8a070 0%, #7a4828 50%, #1a0e08 100%); }

/* ── Portrait (À propos) ── */
.portrait-section {
  padding: 60px var(--gutter) 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--content-max);
  margin-inline: auto;
}
.portrait-photo {
  position: relative;
}

/* Wrapper interne : position relative → l'image en flux normal définit la hauteur */
.portrait-photo-inner {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 200px; /* fallback si aucune image */
}

.portrait-photo-ph {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, #2a2018 0%, #5a4530 50%, #b88858 100%);
}
.portrait-photo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}
.portrait-photo-num {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--paper);
  opacity: 0.85;
  z-index: 3;
}

/* Tag : positionné sur le conteneur externe, libre de déborder vers le bas */
.portrait-photo-tag {
  position: absolute;
  bottom: 0; left: 24px;
  transform: translateY(50%);
  background: var(--paper);
  padding: 14px 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  border: 1px solid rgba(28, 24, 20, 0.12);
  z-index: 3;
  white-space: nowrap;
}
.portrait-text { padding: 0 0 0 20px; }
.portrait-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.portrait-eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--rust);
}
.portrait-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 4.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.portrait-title em { font-style: italic; }
.portrait-bio {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 36px;
}
.portrait-bio em { font-family: var(--font-serif); font-style: italic; color: var(--ink); }
.portrait-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(28, 24, 20, 0.12);
  border-bottom: 1px solid rgba(28, 24, 20, 0.12);
  max-width: 460px;
}
.portrait-stat-num {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.portrait-stat-num em { font-style: italic; }
.portrait-stat-label { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.05em; }
.portrait-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: gap 0.4s;
}
.portrait-cta:hover { gap: 22px; }

/* ── Témoignage ── */
.testimonial {
  background: var(--paper-deep);
  padding: 120px var(--gutter);
  position: relative;
}
.testimonial-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.testimonial-mark {
  font-family: var(--font-serif);
  font-size: 80px;
  font-style: italic;
  font-weight: 300;
  line-height: 0.7;
  color: var(--rust);
  margin-bottom: 8px;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
.testimonial-quote em { font-style: italic; }
.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.testimonial-author-line { width: 32px; height: 1px; background: rgba(28,24,20,0.3); }
.testimonial-author strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
}

/* ── Journal ── */
.journal { padding: 120px var(--gutter) 60px; }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.journal-card { cursor: pointer; }
.journal-card-img {
  aspect-ratio: 5/4;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 2px;
}
.jp-1 { background: linear-gradient(160deg, #c8a878 0%, #7a5638 100%); }
.jp-2 { background: linear-gradient(160deg, #a8b8a0 0%, #586a58 100%); }
.jp-3 { background: linear-gradient(160deg, #3a2818 0%, #7a5a40 100%); }
.journal-card-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.journal-card-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.journal-card-title em { font-style: italic; }

/* ── Témoignages carousel ── */
.testimonial-track { position: relative; }

.testimonial-slide { display: none; }
.testimonial-slide.active {
  display: block;
  animation: tslide-in 0.8s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes tslide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
}
.testimonial-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(28,24,20,0.15);
  border: none; padding: 0; cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.45s cubic-bezier(.4, 0, .2, 1),
              border-radius 0.45s cubic-bezier(.4, 0, .2, 1),
              background 0.45s;
}
.testimonial-dot.active {
  width: 36px;
  border-radius: 4px;
  background: rgba(183, 93, 58, 0.18);
}
.testimonial-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rust);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.testimonial-dot.active::before {
  animation: dot-fill 6.8s linear forwards;
}
@keyframes dot-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 24px;
  color: var(--rust);
  font-size: 18px;
  letter-spacing: 2px;
}

/* ── Journal carousel ── */
.journal-carousel-wrap { overflow: hidden; margin-top: 60px; }
.journal-carousel-track {
  display: flex;
  transition: transform 0.75s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.journal-carousel-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.journal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 52px;
}
.journal-nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(28,24,20,0.2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.journal-nav-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.journal-nav-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.journal-nav-dots {
  display: flex; gap: 8px;
  padding: 0 12px;
}
.journal-nav-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(28,24,20,0.18);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.4s, transform 0.4s, width 0.4s;
}
.journal-nav-dot.active {
  background: var(--ink);
  width: 22px;
  border-radius: 4px;
}
/* Journal card image issue — background cover */
.journal-card-img-bg {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.4s cubic-bezier(.16,1,.3,1);
}
.journal-card:hover .journal-card-img-bg { transform: scale(1.04); }

/* ── CTA finale ── */
.cta-finale {
  padding: 140px var(--gutter) 100px;
  text-align: center;
  position: relative;
}
.cta-finale-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--rust);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cta-finale-eyebrow::before, .cta-finale-eyebrow::after {
  content: '';
  width: 40px; height: 1px;
  background: var(--rust);
  opacity: 0.5;
}
.cta-finale-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(60px, 9vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 60px;
}
.cta-finale-title em { font-style: italic; color: var(--rust); }
.cta-finale-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  padding: 22px 44px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  transition: gap 0.4s, transform 0.4s;
}
.cta-finale-button:hover { gap: 24px; transform: translateY(-2px); }
.cta-finale-sub {
  display: block;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Padding section-bar sur accueil */
.section-bar-padded { padding: 100px var(--gutter) 0; }

/* ═══════════════════════════════════════════
   RESPONSIVE — accueil
   ═══════════════════════════════════════════ */

/* ── Tablette intermédiaire (≤ 900px) ────────────── */
@media (max-width: 900px) {
  /* Work : réduire l'overlay et le padding de la progression */
  .work-featured-overlay {
    padding: clamp(44px, 6vw, 60px) clamp(28px, 4vw, 48px) clamp(36px, 5vw, 48px);
    gap: clamp(12px, 2vw, 20px);
  }
  .work-index-item { gap: 18px; padding: 0 clamp(24px, 3.5vw, 48px); }

  /* Portrait : réduire le gap entre photo et texte */
  .portrait-section { gap: clamp(48px, 7vw, 80px); }

  /* Journal */
  .journal-header { gap: clamp(24px, 3.5vw, 40px); }

  /* Manifeste : un peu moins d'air */
  .manifesto { gap: clamp(40px, 6vw, 60px); }
}

/* ── Tablet (≤ 767px) ────────────────────────────── */
@media (max-width: 767px) {
  /* Hero mobile */
  .hero { min-height: 100svh; }
  .hero-identity, .hero-counter, .hero-foot { display: none; }
  /* Stage en absolute pour garantir 100% hauteur (height:100% + svh instable sur iOS) */
  .hero-stage {
    position: absolute;
    inset: 0;
    height: auto;
    padding: 0 28px 80px;
    justify-content: flex-end;
  }
  .hero-stage-inner {
    max-width: 100%;
    text-align: left;
  }
  /* Vignette recalée pour le texte aligné à gauche sur mobile */
  .hero-stage::before {
    inset: 0 -28px 0;
    background: radial-gradient(ellipse 115% 58% at 38% 88%, rgba(0,0,0,0.55) 0%, transparent 66%);
  }
  /* Overlay photo équilibré sur mobile */
  .hero-slide-photo::after {
    background:
      radial-gradient(ellipse at 50% 28%, transparent 0%, transparent 38%, rgba(0,0,0,0.26) 100%),
      linear-gradient(180deg,
        rgba(0,0,0,0.28) 0%,
        rgba(0,0,0,0.03) 30%,
        rgba(0,0,0,0.06) 55%,
        rgba(0,0,0,0.45) 100%
      );
  }
  .hero-eyebrow {
    font-size: 13px;
    margin-bottom: 18px;
    justify-content: flex-start;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.08em;
    animation-delay: 0.08s;
  }
  .hero-eyebrow::before { display: none; }
  .hero-eyebrow::after { display: none; }
  .hero-title {
    font-size: clamp(44px, 13vw, 80px);
    margin-bottom: 22px;
    color: var(--paper);
    animation-delay: 0.18s;
  }
  .hero-sub {
    font-size: 17px;
    line-height: 1.68;
    max-width: none;
    margin: 0 0 30px;
    text-align: left;
    color: rgba(255,255,255,0.9);
    animation-delay: 0.32s;
  }
  .hero-dots { bottom: 28px; }
  .hero-mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: var(--paper);
    border: 1px solid rgba(255,255,255,0.48);
    border-radius: 100px;
    padding: 13px 26px;
    transition: background 0.45s cubic-bezier(.16,1,.3,1), border-color 0.4s, gap 0.45s cubic-bezier(.16,1,.3,1);
    text-decoration: none;
    animation: heroEnterUp 1.4s cubic-bezier(.16,1,.3,1) 0.48s both;
  }
  .hero-mobile-cta:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.78); gap: 16px; }

  /* Work : stack on tablet */
  .work-featured-img { min-height: 400px; }
  .work-featured-overlay {
    padding: clamp(36px, 7vw, 56px) clamp(22px, 4.5vw, 40px) clamp(28px, 5.5vw, 44px);
    gap: clamp(10px, 2vw, 18px);
  }
  .work-featured-progress { padding: 16px 24px; gap: 14px; }
  .work-featured-progress-counter { font-size: 13px; }
  .work-index-item {
    grid-template-columns: 36px 1fr 90px;
    gap: 16px;
    padding: 0 24px;
    min-height: 80px;
  }
  .work-index-title { font-size: clamp(18px, 4.5vw, 24px); }

  /* Manifeste : plus de respiration */
  .manifesto {
    padding: clamp(72px, 12vw, 110px) var(--gutter);
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .manifesto-text { font-size: clamp(26px, 5.6vw, 36px); line-height: 1.22; }

  /* Work : stack on tablet */
  .work-layout { grid-template-columns: 1fr; }
  .work-featured { border-right: none; border-bottom: 1px solid rgba(28,24,20,0.12); }
  .work-featured-img { min-height: 480px; }
  .work-index-item { padding: 20px 24px; min-height: 90px; }
  .work-index-item:hover, .work-index-item.is-active { padding-left: 28px; padding-right: 20px; }

  /* Portrait : 1-col plus aéré */
  .portrait-section {
    padding: clamp(72px, 12vw, 104px) var(--gutter) clamp(84px, 14vw, 118px);
    grid-template-columns: 1fr;
    gap: 62px;
  }
  .portrait-photo { max-width: 460px; margin-inline: auto; width: 100%; }
  .portrait-text { padding-left: 0; }
  .portrait-bio { max-width: none; }
  .portrait-stats { max-width: none; gap: 20px; padding: 22px 0; }
  .portrait-stat-num { font-size: clamp(30px, 6vw, 38px); }

  /* Témoignage */
  .testimonial { padding: clamp(80px, 14vw, 110px) var(--gutter); }
  .testimonial-mark { font-size: 64px; }
  .testimonial-quote { font-size: clamp(24px, 5.4vw, 36px); line-height: 1.28; }

  /* Journal : carousel scroll-snap mobile */
  .journal { padding: clamp(80px, 13vw, 110px) var(--gutter) clamp(40px, 8vw, 60px); }
  .journal-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }

  .journal-carousel-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 48px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter);
  }
  .journal-carousel-wrap::-webkit-scrollbar { display: none; }

  .journal-carousel-track {
    transform: none !important;
    transition: none !important;
    gap: 20px;
    width: max-content;
    padding-right: var(--gutter);
  }

  .journal-carousel-page { display: contents; }

  .journal-card {
    flex: 0 0 80vw;
    max-width: 80vw;
    scroll-snap-align: start;
  }

  .journal-card-img { aspect-ratio: 4/3; margin-bottom: 16px; }
  .journal-card-title { font-size: clamp(18px, 4.5vw, 22px); }
  .journal-nav { display: none; }

  /* CTA finale */
  .cta-finale { padding: clamp(96px, 16vw, 130px) var(--gutter) clamp(72px, 13vw, 100px); }
  .cta-finale-eyebrow { margin-bottom: 22px; }
  .cta-finale-title {
    font-size: clamp(48px, 13vw, 96px);
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 44px;
  }
  .cta-finale-button { padding: 18px 36px; font-size: 17px; }

  /* Section bar padded */
  .section-bar-padded { padding: clamp(72px, 12vw, 100px) var(--gutter) 0; }
}

/* ── Mobile (≤ 479px) ────────────────────────────── */
@media (max-width: 479px) {
  /* Portrait tag : ne doit pas dépasser */
  .portrait-photo-tag { white-space: normal; max-width: calc(100% - 28px); font-size: 13px; padding: 12px 16px; left: 16px; }
  .portrait-photo-num { top: 16px; left: 16px; font-size: 14px; }

  /* Work mobile */
  .work-featured-img { min-height: 280px; }
  .work-featured-overlay { padding: 28px 20px 24px; gap: 12px; }
  .work-featured-title { font-size: clamp(28px, 8vw, 40px); }
  .work-featured-progress { padding: 14px 20px; gap: 12px; font-size: 11px; }
  .work-index-item { grid-template-columns: 32px 1fr; gap: 14px; padding: 0 20px; min-height: 68px; }
  .work-index-thumb { display: none; }
  .work-index-title { font-size: clamp(17px, 5vw, 22px); }
  .work-index-num { font-size: 15px; }

  /* Portrait stats : 2-col compactes */
  .portrait-stats { grid-template-columns: 1fr 1fr; }
  .portrait-stats > :nth-child(3) { grid-column: 1 / -1; }

  /* CTA finale plus mince */
  .cta-finale-button { padding: 16px 30px; font-size: 16px; }
}

