/* ============================================================
   OIHAN C. — PORTFOLIO
   Fond papier chaud + encre + accent indigo, hero en dégradé
   coloré, et quelques éléments décoratifs (blobs flottants,
   filigrane typographique) purement esthétiques sur les
   sections posters / réseaux / services.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #FBFAF7;
  --bg-soft: #F1EDE5;
  --ink: #17171C;
  --fg: #17171C;
  --muted: #6F6C63;
  --line: #E4DFD3;

  --accent: #4437C7;
  --accent-hover: #372CB0;
  --accent-soft: #EDEBFB;

  --c-branding: #B07A3E;
  --c-restauration: #4C8768;
  --c-artistique: #4437C7;
  --c-produit: #2E6FA6;

  --font: "Inter", -apple-system, "Helvetica Neue", sans-serif;

  --ratio-1: 16 / 9;
  --ratio-2: 4 / 3;

  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 6px 18px rgba(23,23,28,0.06);
  --shadow-md: 0 14px 34px rgba(23,23,28,0.09);
  --shadow-lg: 0 24px 60px rgba(23,23,28,0.14);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

.cat-branding     { --cat: var(--c-branding); }
.cat-restauration { --cat: var(--c-restauration); }
.cat-artistique   { --cat: var(--c-artistique); }
.cat-produit      { --cat: var(--c-produit); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent);
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Titres à apparition progressive (mot par mot) ---------- */
.split-lines { overflow: hidden; display: block; }
.split-lines .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), opacity 0.7s ease;
}
.split-lines.is-visible .word { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .split-lines .word { transform: none; opacity: 1; transition: none; } }

/* ---------- Curseur personnalisé ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hover { width: 44px; height: 44px; background: var(--accent); opacity: 0.14; }
@media (hover: none) { .cursor-dot { display: none; } }

/* ---------- Liens à soulignement progressif ---------- */
.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: currentColor; transition: right 0.3s cubic-bezier(.2,.8,.2,1);
}
.link-underline:hover::after { right: 0; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; height: 40px; max-width: 220px; }
.logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }

.main-nav { display: flex; gap: 28px; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.main-nav a { position: relative; padding-bottom: 3px; transition: color 0.2s ease; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--ink); transition: right 0.3s cubic-bezier(.2,.8,.2,1);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

.back-link { font-size: 0.84rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.back-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.92rem; font-weight: 500;
  padding: 11px 22px;
  border-radius: 980px;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.15s ease-out;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-text { color: var(--accent); gap: 4px; }
.btn-text:hover { opacity: 0.7; }

/* ---------- Hero (un seul geste de couleur + trame de points) ---------- */
.hero-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 88%, rgba(255,101,132,0.5) 0%, transparent 50%),
    radial-gradient(circle at 10% 78%, rgba(0,113,227,0.75) 0%, transparent 48%),
    radial-gradient(circle at 58% 6%, rgba(122,110,255,0.85) 0%, transparent 46%),
    radial-gradient(circle at 92% 12%, rgba(64,208,196,0.3) 0%, transparent 40%),
    linear-gradient(180deg, #0a0e27 0%, #0f1330 100%);
}
.hero-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  pointer-events: none;
}
.hero { padding: clamp(56px, 9vw, 96px) 0 clamp(72px, 10vw, 104px); text-align: center; position: relative; z-index: 1; }
.hero-logo { height: clamp(96px, 12vw, 140px); max-width: min(80%, 420px); width: auto; margin: 0 auto 40px; display: block; filter: brightness(0) invert(1); opacity: 0.96; }
.hero .eyebrow { display: block; margin-bottom: 16px; color: #B8AEFF; }
.hero h1 {
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.05;
  margin: 0 auto 18px;
  max-width: 16ch;
  color: #fff;
}
.hero p {
  color: rgba(255,255,255,0.68);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 44ch;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-actions .btn-text { color: #fff; }
.hero-actions .btn-text:hover { opacity: 0.75; }

/* ---------- Images déplaçables (compétences) ---------- */
.skill-window {
  position: absolute;
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 3;
  box-shadow: 0 16px 34px rgba(0,0,0,0.35);
  border-radius: 6px;
  overflow: hidden;
}
.skill-window:active { cursor: grabbing; z-index: 5; }
.skill-window img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

@media (max-width: 760px) { .skill-window { display: none; } }

/* ---------- Bandeau défilant ---------- */
.ticker-band {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.ticker-band .ticker-track { display: inline-flex; animation: ticker 26s linear infinite; }
.ticker-band .ticker-track span {
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.82rem; padding: 0 26px; display: inline-flex; align-items: center; gap: 26px;
}
.ticker-band .ticker-track span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-band .ticker-track { animation: none; } }

/* ---------- Fond continu : un seul dégradé qui traverse toutes les sections ---------- */
.content-flow {
  position: relative;
  background: linear-gradient(180deg,
    rgba(122,110,255,0.16) 0%,
    rgba(0,113,227,0.12) 10%,
    rgba(122,110,255,0.07) 22%,
    rgba(255,101,132,0.09) 34%,
    rgba(0,113,227,0.10) 46%,
    rgba(64,208,196,0.10) 58%,
    rgba(122,110,255,0.11) 70%,
    rgba(255,101,132,0.08) 82%,
    rgba(0,113,227,0.10) 92%,
    rgba(122,110,255,0.13) 100%),
    var(--bg-soft);
}
.band { position: relative; overflow: hidden; }

.band-projects .section, .band-posters .section, .band-carousel .section, .band-services .section { position: relative; z-index: 1; }

/* ---------- Bandeau de chiffres clés ---------- */
.stats-strip {
  position: relative; z-index: 1;
  padding: clamp(36px, 5vw, 56px) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
}
.stats-strip div { text-align: center; }
.stats-strip strong {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stats-strip span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* ---------- Décor flottant (blobs ambiants, purement esthétique) ---------- */
.decor-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  animation: float-slow 8s ease-in-out infinite;
}
@keyframes float-slow {
  0%, 100% { translate: 0 0; }
  50% { translate: 26px -34px; }
}
@media (prefers-reduced-motion: reduce) { .decor-blob { animation: none; } }
@media (max-width: 760px) { .decor-blob { display: none; } }

.band-projects .decor-blob.b1 { top: -6%; left: -8%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(122,110,255,0.32), transparent 70%); }
.band-projects .decor-blob.b2 { bottom: -10%; right: -6%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,113,227,0.28), transparent 70%); animation-delay: -3s; }

.band-posters .decor-blob.b1 { top: 2%; left: -9%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(0,113,227,0.3), transparent 70%); }
.band-posters .decor-blob.b2 { bottom: -14%; right: -7%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(255,101,132,0.28), transparent 70%); animation-delay: -4s; }
.band-posters .decor-blob.b3 { top: 45%; right: 6%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(122,110,255,0.24), transparent 70%); animation-delay: -2s; }

.band-carousel .decor-blob.b1 { top: 6%; right: -8%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(94,92,230,0.3), transparent 70%); }
.band-carousel .decor-blob.b2 { bottom: -8%; left: -9%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(64,208,196,0.28), transparent 70%); animation-delay: -5s; }
.band-carousel .decor-blob.b3 { top: 60%; left: 8%; width: 190px; height: 190px; background: radial-gradient(circle, rgba(0,113,227,0.24), transparent 70%); animation-delay: -1.5s; }

.band-services .decor-blob.b1 { top: -8%; right: -6%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(122,110,255,0.26), transparent 70%); }
.band-services .decor-blob.b2 { bottom: -10%; left: -7%; width: 280px; height: 280px; background: radial-gradient(circle, rgba(0,113,227,0.22), transparent 70%); animation-delay: -4s; }

/* ---------- Mot géant en filigrane (habillage vertical des marges) ---------- */
.giant-word {
  position: absolute;
  top: 50%; left: clamp(-30px, -2.4vw, -6px);
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0.07;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.giant-word.right { left: auto; right: clamp(-30px, -2.4vw, -6px); transform: translateY(-50%) rotate(90deg); transform-origin: right center; }
@media (max-width: 900px) { .giant-word { display: none; } }

/* ---------- Badge rotatif (texte sur cercle, animation continue) ---------- */
.spin-badge {
  position: absolute;
  width: clamp(88px, 9vw, 116px);
  height: clamp(88px, 9vw, 116px);
  z-index: 2;
  pointer-events: none;
  animation: spin-badge 14s linear infinite;
}
.spin-badge svg { width: 100%; height: 100%; }
.spin-badge text {
  font-size: 8.6px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--accent);
  text-transform: uppercase;
}
.spin-badge .spin-dot {
  fill: var(--ink);
}
@keyframes spin-badge { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin-badge { animation: none; } }
@media (max-width: 760px) { .spin-badge { display: none; } }

.band-posters .spin-badge { top: 8%; right: 8%; }
.band-carousel .spin-badge { bottom: 10%; left: 6%; }

/* ---------- Section pattern ---------- */
.section { padding: clamp(48px, 6.5vw, 84px) 0; }
.section-panel {
  background:
    radial-gradient(circle at 10% 10%, rgba(122,110,255,0.10) 0%, transparent 45%),
    radial-gradient(circle at 92% 90%, rgba(0,113,227,0.08) 0%, transparent 45%),
    var(--bg-soft);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head h2 { font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- Project grid ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; perspective: 1200px; }

.project-card { display: block; }
.card-media {
  position: relative;
  aspect-ratio: var(--ratio-1);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card:hover .card-media { box-shadow: var(--shadow-lg); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .card-media img { transform: scale(1.06); }
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); pointer-events: none; }

.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(251,250,247,0.92);
  color: var(--ink);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 980px;
  backdrop-filter: blur(6px);
}

.card-caption { margin-top: 16px; }
.card-caption h3 { font-weight: 600; letter-spacing: -0.01em; font-size: 1.15rem; margin: 0; }
.card-caption .card-sub { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 5px; }
.card-caption .card-year { font-size: 0.78rem; color: var(--muted); display: block; margin-top: 8px; }

@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- Secondary section ("également") ---------- */
.also-section { margin-top: clamp(48px, 6vw, 72px); }
.also-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.also-card {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.also-card:hover { border-color: transparent; box-shadow: var(--shadow-sm); }
.also-thumb { width: 76px; aspect-ratio: var(--ratio-1); overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-soft); flex-shrink: 0; }
.also-thumb img { width: 100%; height: 100%; object-fit: cover; }
.also-info h4 { font-weight: 600; font-size: 0.98rem; margin: 0 0 3px; }
.also-info span { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 640px) { .also-list { grid-template-columns: 1fr; } }

/* ---------- Mes posters ---------- */
.posters-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; perspective: 1200px; }
.poster-item {
  aspect-ratio: 210 / 297;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.poster-item:hover { box-shadow: var(--shadow-md); }
.poster-item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) { .posters-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .posters-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Carrousel 3D — posts réseaux sociaux ---------- */
.social-carousel { padding: clamp(48px, 6.5vw, 84px) 0 clamp(20px, 3vw, 32px); }

.carousel-flanks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
}
.carousel-flank {
  flex: 0 0 200px;
  padding: 22px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.carousel-flank .cf-label {
  display: block;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.carousel-flank.left ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.carousel-flank.left li { display: flex; flex-direction: column; gap: 2px; font-size: 0.86rem; }
.carousel-flank.left li strong { font-weight: 600; }
.carousel-flank.left li span { color: var(--muted); font-size: 0.78rem; }
.carousel-flank.right p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1100px) { .carousel-flank { display: none; } }

.carousel-stage {
  position: relative;
  height: clamp(320px, 46vw, 420px);
  flex: 1 1 480px;
  max-width: 560px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
}
.carousel-slide {
  position: absolute;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.5s ease, filter 0.5s ease;
  cursor: pointer;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide[data-type="story"] { width: clamp(150px, 20vw, 210px); aspect-ratio: 9 / 16; }
.carousel-slide[data-type="post"] { width: clamp(160px, 21vw, 220px); aspect-ratio: 1080 / 1698; }

.carousel-caption {
  text-align: center;
  max-width: 40ch;
  margin: 26px auto 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.carousel-caption.is-visible { opacity: 1; transform: translateY(0); }

.carousel-nav {
  display: flex; justify-content: center; gap: 14px; margin-top: 28px;
}
.carousel-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s ease, transform 0.15s ease;
}
.carousel-nav button:hover { background: var(--bg-soft); transform: scale(1.06); }
.carousel-nav button svg { width: 16px; height: 16px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dots button {
  width: 6px; height: 6px; border-radius: 50%; border: none; background: var(--line);
  cursor: pointer; transition: background 0.2s ease, width 0.25s ease;
  padding: 0;
}
.carousel-dots button.is-active { background: var(--accent); width: 18px; border-radius: 3px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg); box-shadow: var(--shadow-md); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 14px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; margin: 0 0 32px; max-width: 46ch; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.timeline li:first-child { border-top: none; }
.timeline li .t-role { font-weight: 600; }
.timeline li .t-sub { color: var(--muted); font-size: 0.85rem; }
.timeline li .t-year { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } .about-portrait { max-width: 240px; } }

/* ---------- Contact ---------- */
.contact-form { max-width: 560px; margin: 0 auto; display: grid; gap: 18px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg); font-family: var(--font); font-size: 1rem; padding: 12px 14px; resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-submit {
  justify-self: center; margin-top: 6px;
  background: var(--accent); color: #fff; border: none;
  font-size: 0.95rem; font-weight: 500; padding: 13px 32px;
  border-radius: 980px; cursor: pointer; transition: background 0.2s ease;
}
.contact-submit:hover { background: var(--accent-hover); }
.contact-fallback { text-align: center; margin-top: 22px; font-size: 0.9rem; color: var(--muted); }
.contact-fallback a { color: var(--accent); }
.contact-fallback a:hover { color: var(--accent-hover); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 30px 0; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.82rem; color: var(--muted);
}
.site-footer a:hover { color: var(--ink); }

/* ============================================================
   PAGE PROJET
   ============================================================ */

.project-intro { padding: clamp(64px, 9vw, 96px) 0 44px; text-align: center; }
.project-intro .eyebrow { display: block; margin-bottom: 16px; }
.project-intro h1 { font-weight: 600; letter-spacing: -0.025em; font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.05; margin: 0 auto 20px; max-width: 18ch; }
.project-intro p.lede { max-width: 56ch; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }

.project-meta-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 780px; margin: 44px auto 0;
  padding-top: 28px; border-top: 1px solid var(--line);
  text-align: center;
}
.project-meta-row div span { display: block; color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.project-meta-row div { font-size: 0.92rem; font-weight: 500; }
@media (max-width: 620px) { .project-meta-row { grid-template-columns: repeat(2, 1fr); } }

.media-1-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 56px 0; }
.media-1-pair div { aspect-ratio: var(--ratio-1); overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); box-shadow: var(--shadow-md); }
.media-1-pair img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .media-1-pair { grid-template-columns: 1fr; } }

.project-text { max-width: 680px; margin: 0 auto; padding: 44px 0; text-align: center; }
.project-text h2 { font-weight: 600; letter-spacing: -0.01em; font-size: 1.4rem; margin: 0 0 14px; }
.project-text p { color: var(--muted); font-size: 1.02rem; margin: 0 0 14px; }
.project-text p:last-child { margin-bottom: 0; }

.media-2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 20px; }
.media-2-grid > div { aspect-ratio: var(--ratio-2); overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); box-shadow: var(--shadow-md); }
.media-2-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .media-2-grid { grid-template-columns: 1fr; } }

.project-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 56px; padding: 32px 0 72px; gap: 24px; }
.project-nav a { font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.3rem); letter-spacing: -0.01em; }
.project-nav .eyebrow { display: block; margin-bottom: 8px; }
.project-nav .next { text-align: right; }
@media (max-width: 560px) { .project-nav { flex-direction: column; } .project-nav .next { text-align: left; } }
