@font-face {
  font-family: "Raleway Local";
  src: url("assets/raleway.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brown: #302929;
  --cream: #f4eee3;
  --paper: #fff;
  --line: rgba(244, 238, 227, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Raleway Local", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: #171414; font-family: var(--sans); font-size: 16px; line-height: 1.45; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--cream); color: var(--brown); }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 82px; background: var(--brown); color: var(--cream); }
.header-inner { width: min(var(--max), calc(100% - 2rem)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: center; }
.site-nav ul { display: flex; gap: clamp(2.5rem, 6vw, 5.5rem); margin: 0; padding: 0; list-style: none; }
.site-nav a, .footer-nav a { font-family: var(--serif); font-weight: 700; text-decoration: none; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; right: 100%; bottom: -.35rem; left: 0; height: 1px; background: currentColor; transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: transparent; color: var(--cream); font-size: 1.8rem; cursor: pointer; }

.hero { min-height: calc(100vh - 82px); padding: clamp(4rem, 8vw, 8rem) max(4vw, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; background: var(--cream); }
.hero h1 { margin-bottom: 1.35rem; color: var(--brown); font-size: clamp(3rem, 4.2vw, 4.65rem); line-height: 1.02; letter-spacing: -.035em; }
.hero-copy p { max-width: 690px; margin-bottom: 1rem; font-size: clamp(1rem, 1.25vw, 1.28rem); line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 2.8rem; margin-top: 1.9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.4rem; border: 0; border-radius: 4px; background: var(--brown); color: var(--cream); font-family: var(--serif); font-size: 1.08rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.button:hover { transform: translateY(-2px); opacity: .9; }
.hero-visual img { width: min(360px, 100%); aspect-ratio: 3 / 4; margin: auto; border-radius: 50% 50% 42% 42%; object-fit: cover; object-position: center 35%; }

.dark-section { background: var(--brown); color: var(--cream); }
.section { padding: clamp(4rem, 7vw, 6.8rem) 1.25rem; }
.section-inner { width: min(var(--max), 100%); margin: 0 auto; }
.section-title { margin-bottom: 2.7rem; color: inherit; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.1; text-align: center; }
.projects-preview { padding-top: 2.5rem; }
.project-carousel { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 1rem; align-items: center; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 1.4rem; transition: transform .45s ease; will-change: transform; }
.carousel-track .project-card { flex: 0 0 calc((100% - 2.8rem) / 3); }
.carousel-arrow { width: 48px; height: 64px; border: 1px solid rgba(244, 238, 227, .45); background: transparent; color: var(--cream); font-family: var(--serif); font-size: 2.2rem; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease; }
.carousel-arrow:hover:not(:disabled) { background: var(--cream); color: var(--brown); }
.carousel-arrow:disabled { opacity: .25; cursor: default; }
.publication-carousel { margin: -2rem auto clamp(5rem, 9vw, 8rem); }
.carousel-track .publication-card { flex: 0 0 calc((100% - 2.8rem) / 3); margin: 0; overflow: hidden; background: #fff; }
.publication-card img { width: 100%; height: auto; display: block; }
.project-video-row { margin: -2rem auto clamp(5rem, 9vw, 8rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
.project-video-row figure { margin: 0; }
.project-video-row video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; object-fit: contain; }
.project-video-row figcaption { padding-top: .75rem; color: rgba(244, 238, 227, .72); font-size: .85rem; text-align: center; }
.project-video-row.vertical-video-row {
  width: min(520px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}
.project-video-row.vertical-video-row video { width: min(100%, 175px); aspect-ratio: 9 / 16; margin: 0 auto; }
.newsletter-showcase {
  width: min(1260px, 100%);
  margin: -2rem auto clamp(5rem, 9vw, 8rem);
  padding: .5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: clamp(.6rem, 1.2vw, 1rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.newsletter-showcase img {
  width: 100%;
  max-width: 427px;
  height: auto;
  display: block;
  align-self: start;
  background: #fff;
}
.journey-preview { padding-top: 2.5rem; }
.journey-card { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2rem, 4vw, 3.5rem); border: 1px solid rgba(244, 238, 227, .25); }
.journey-visual img { width: min(310px, 100%); aspect-ratio: 3 / 4; margin: auto; border-radius: 50% 50% 42% 42%; object-fit: cover; object-position: center 30%; }
.journey-copy p { margin: 0 0 1.8rem; font-size: 1.08rem; line-height: 1.6; }
.button-light { background: var(--cream); color: var(--brown); }
.projects-preview-action { display: flex; justify-content: center; margin-top: 2.5rem; }
.testimonial-section { padding-top: 2.5rem; }
.testimonial-card { max-width: 820px; margin: auto; display: grid; grid-template-columns: 155px 1fr; overflow: hidden; border-radius: 8px; background: white; color: #111; }
.testimonial-portrait-wrap { display: grid; place-items: center; padding: 1.2rem; border-right: 1px solid #ddd; }
.testimonial-portrait { width: 112px; border-radius: 50%; }
.testimonial-copy { padding: 1.5rem 1.6rem; }
.testimonial-copy h3 { margin-bottom: .55rem; font-size: 1.1rem; }
.testimonial-copy blockquote { margin: 0; font-size: .96rem; line-height: 1.45; }

.site-footer { padding: 2.7rem 1.25rem 1.7rem; border-top: 1px solid var(--line); background: var(--brown); color: var(--cream); text-align: center; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1.8rem, 4vw, 4rem); margin-bottom: 2rem; }
.footer-contact { margin: 0 0 .65rem; color: rgba(244, 238, 227, .82); font-size: .88rem; }
.footer-contact a { text-underline-offset: .18em; }
.footer-contact span { margin: 0 .35rem; color: rgba(244, 238, 227, .4); }
.site-footer small { color: rgba(244, 238, 227, .5); }

.page-main { min-height: calc(100vh - 82px); background: var(--brown); color: var(--cream); }
.project-top-space { height: clamp(3.5rem, 8vw, 7rem); }
.project-grid { width: min(900px, calc(100% - 2.5rem)); margin: auto; padding-bottom: 5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.7rem 1.45rem; }
.project-card { min-height: 292px; overflow: hidden; background: white; color: #1c1818; }
.project-image { position: relative; min-height: 185px; background: linear-gradient(#fff, #c9c9c9); overflow: hidden; }
.project-image img { width: 100%; height: 185px; object-fit: cover; }
.project-tag { position: absolute; top: 16px; right: 16px; padding: .5rem .65rem; background: rgba(43, 43, 43, .7); color: white; font-size: .67rem; text-transform: uppercase; }
.project-card-body { padding: 1.55rem 1.5rem 1.35rem; }
.project-card h2, .project-card h3 { min-height: 2.8em; margin-bottom: 1.2rem; font-family: Impact, "Arial Narrow", sans-serif; font-size: 1.18rem; line-height: 1.4; letter-spacing: .01em; }
.project-link { font-size: .72rem; text-decoration: none; text-transform: uppercase; }

.project-detail { min-height: calc(100vh - 82px); padding: clamp(3.5rem, 7vw, 7rem) 1.25rem 0; background: var(--brown); color: var(--cream); }
.project-detail-inner { width: min(980px, 100%); margin: 0 auto; }
.project-detail-hero { width: min(680px, 100%); margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.project-detail-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.project-detail-heading { max-width: 760px; margin: 0 auto clamp(3rem, 6vw, 5rem); text-align: center; }
.project-detail-category { display: inline-block; margin-bottom: 1rem; padding: .5rem .75rem; background: rgba(244, 238, 227, .12); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.project-detail-heading h1 { margin-bottom: 1.15rem; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.02; }
.project-detail-heading p { max-width: 620px; margin: 0 auto; color: rgba(244, 238, 227, .72); }
.project-title-above { width: min(760px, 100%); margin: 0 auto 2.2rem; text-align: center; }
.project-title-above h1 { margin: 0; font-size: clamp(1.7rem, 6vw, 4.6rem); line-height: 1.02; white-space: nowrap; }
.project-title-long h1 { font-size: clamp(.9rem, 3.3vw, 2.5rem); letter-spacing: -.02em; white-space: nowrap; }
.project-detail-intro { width: min(760px, 100%); margin: 0 auto clamp(4rem, 7vw, 6rem); text-align: center; }
.project-detail-intro p { margin: .4rem auto 0; color: rgba(244, 238, 227, .82); font-size: 1.08rem; line-height: 1.7; }
.linkedin-cta { margin: -3rem auto clamp(5rem, 9vw, 8rem); display: flex; justify-content: center; }
.project-detail-gallery { width: min(760px, 100%); margin: 0 auto clamp(5rem, 10vw, 9rem); padding: clamp(1rem, 3vw, 2rem); border: 1px solid rgba(244, 238, 227, .18); }
.project-detail-gallery img { width: 100%; max-height: 720px; object-fit: contain; background: rgba(255, 255, 255, .03); }
.project-detail-gallery figcaption { margin-top: 1rem; color: rgba(244, 238, 227, .55); font-size: .78rem; text-align: center; text-transform: uppercase; }
.project-pagination { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(244, 238, 227, .18); }
.project-pagination a { min-height: 145px; display: flex; flex-direction: column; justify-content: center; padding: 2rem; text-decoration: none; }
.project-pagination a + a { border-left: 1px solid rgba(244, 238, 227, .18); text-align: right; }
.project-pagination small { margin-bottom: .4rem; color: rgba(244, 238, 227, .5); text-transform: uppercase; }
.project-pagination strong { font-family: var(--serif); font-size: 1.1rem; }

.about-intro { min-height: 720px; padding: clamp(4rem, 7vw, 7rem) 1.25rem; background: var(--cream); color: #171414; }
.about-grid { width: min(var(--max), 100%); margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: stretch; }
.about-grid > img { width: min(390px, 100%); height: 100%; object-fit: cover; }
.about-copy { display: flex; flex-direction: column; }
.about-copy h1 { margin-bottom: .8rem; color: var(--brown); font-size: clamp(3rem, 5vw, 5rem); }
.about-copy p { margin-bottom: .65rem; line-height: 1.55; }
.signature { margin: .65rem 0 0; font-family: var(--serif); font-size: 1.35rem; }
.date { color: #79716c; font-size: .8rem; letter-spacing: .12em; }
.about-cv-action { margin-top: auto; padding-top: 1rem; }
.about-section { background: var(--cream); color: #171414; }
.about-section.alt { background: var(--brown); color: var(--cream); }
.about-section .section-title { text-align: left; }
.lede { max-width: 780px; margin: -1rem 0 2.5rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.5rem; border: 1px solid rgba(48, 41, 41, .16); background: white; color: #171414; }
.card h3 { margin-bottom: .65rem; font-size: 1.45rem; }
.card p { margin: 0; }
.skills-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 5rem; }
.soft-list { display: flex; flex-wrap: wrap; gap: .7rem; }
.soft-list span { padding: .7rem 1rem; border: 1px solid rgba(244, 238, 227, .35); border-radius: 99px; }
.skill-list { display: grid; gap: 1.15rem; }
.skill-row { display: grid; grid-template-columns: 205px 1fr 46px; gap: 1rem; align-items: center; }
.skill-track { height: 7px; background: rgba(244, 238, 227, .16); }
.skill-fill { height: 100%; background: var(--cream); }

.contact-section { min-height: 600px; padding: clamp(4rem, 7vw, 7rem) 1.25rem; background: white; }
.contact-grid { width: min(var(--max), 100%); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact-copy h1 { margin-bottom: 1rem; color: var(--brown); font-size: clamp(3rem, 5vw, 4.7rem); }
.contact-copy p { max-width: 480px; font-size: 1.14rem; }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border: 1px solid #ddd; background: white; }
.field textarea { min-height: 165px; resize: vertical; }
.contact-form .button { justify-self: start; border-radius: 0; font-family: var(--sans); font-size: .9rem; }
.form-note { color: #6d6764; font-size: .82rem; }
.success { display: none; padding: .8rem 1rem; background: var(--cream); }
.success.visible { display: block; }
.map-placeholder { min-height: 390px; display: grid; place-items: center; padding: 2rem; background: var(--cream); color: var(--brown); text-align: center; }
.map-placeholder strong { display: block; margin-bottom: .4rem; font-family: var(--serif); font-size: 1.5rem; }

.reveal { animation: rise-in .55s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual img { width: min(410px, 86%); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-track .project-card { flex-basis: calc((100% - 1.4rem) / 2); }
  .carousel-track .publication-card { flex-basis: calc((100% - 1.4rem) / 2); }
  .journey-card { grid-template-columns: 1fr 1.2fr; }
  .about-grid, .contact-grid, .skills-layout { grid-template-columns: 1fr; }
  .about-grid > img { width: min(420px, 82%); margin: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .site-header, .header-inner { min-height: 64px; }
  .header-inner { justify-content: flex-end; }
  .menu-toggle { display: grid; place-items: center; }
  .site-nav { position: fixed; inset: 64px 0 0; display: none; background: var(--brown); }
  .site-nav.open { display: block; }
  .site-nav ul { height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
  .site-nav a { font-size: 1.9rem; }
  .hero { min-height: calc(100vh - 64px); padding: 2.8rem 1.4rem 0; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-copy p { font-size: .98rem; }
  .hero-actions { gap: 1rem; }
  .hero-visual { overflow: hidden; }
  .hero-visual img { width: min(420px, 100%); margin-bottom: -8%; }
  .button { min-height: 44px; }
  .project-carousel { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: .55rem; }
  .carousel-arrow { width: 38px; height: 54px; font-size: 1.75rem; }
  .carousel-track .project-card { flex-basis: 100%; }
  .carousel-track .publication-card { flex-basis: 100%; }
  .journey-card { grid-template-columns: 1fr; text-align: center; }
  .journey-visual img { width: min(300px, 86%); }
  .testimonial-card { grid-template-columns: 1fr; }
  .testimonial-portrait-wrap { border-right: 0; border-bottom: 1px solid #ddd; }
  .project-grid, .cards { grid-template-columns: 1fr; }
  .project-video-row { grid-template-columns: 1fr; }
  .project-detail { padding-top: 2.5rem; }
  .project-pagination { grid-template-columns: 1fr; }
  .project-pagination a + a { border-top: 1px solid rgba(244, 238, 227, .18); border-left: 0; }
  .about-intro { padding-top: 3rem; }
  .skill-row { grid-template-columns: 1fr 45px; }
  .skill-track { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Refonte visuelle 2026 — inspirée d'une direction éditoriale social media */
:root {
  --brown: #171717;
  --cream: #f1f2f0;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #696b6a;
  --soft: #e7e8e5;
  --cyan: #25b7e8;
  --mint: #22d4a7;
  --orange: #ff9b3f;
  --line: rgba(23, 23, 23, .13);
  --serif: "Raleway Local", Arial, sans-serif;
  --sans: "Raleway Local", Arial, sans-serif;
  --max: 1180px;
  --radius-sm: 16px;
  --radius-md: 26px;
  --radius-lg: 42px;
  --gradient: linear-gradient(105deg, var(--cyan) 4%, var(--mint) 53%, var(--orange) 96%);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

::selection { background: var(--mint); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -.045em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 242, 240, .92);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.header-inner { min-height: 88px; }

.site-nav ul {
  gap: .35rem;
  padding: .38rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(23, 23, 23, .06);
}

.site-nav a {
  display: block;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.site-nav a::after { display: none; }
.site-nav a:hover, .site-nav a:focus-visible { background: var(--soft); transform: translateY(-1px); }
.site-nav a[aria-current="page"] { background: var(--ink); color: white; }

.menu-toggle {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.menu-toggle-lines { top: 50%; }
.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 88px);
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  gap: clamp(3rem, 8vw, 8rem);
  overflow: hidden;
  background: var(--cream);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  opacity: .9;
}

.hero::before { top: 11%; right: 4%; background: var(--cyan); }
.hero::after { right: 18%; bottom: -9%; background: var(--orange); }

.hero-copy::before {
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  content: "Communication & création de contenus";
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.hero h1 {
  max-width: 770px;
  margin-bottom: 1.6rem;
  color: var(--ink);
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: .9;
  letter-spacing: -.07em;
}

.hero h1::first-line { color: var(--ink); }
.hero-copy p { max-width: 700px; color: #454746; font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.55; }
.hero-actions { margin-top: 2.2rem; }

.button {
  min-height: 52px;
  padding: .78rem 1.55rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 10px 20px rgba(23, 23, 23, .12);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-3px); opacity: 1; box-shadow: 0 16px 28px rgba(23, 23, 23, .17); }
.button-light { border-color: var(--ink); background: var(--ink); color: white; }

.hero-visual {
  position: relative;
  padding: clamp(.8rem, 2vw, 1.35rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .52);
  box-shadow: 0 25px 70px rgba(23, 23, 23, .13);
  backdrop-filter: blur(8px);
  transform: rotate(2deg);
}

.hero-visual::after {
  position: absolute;
  right: -30px;
  bottom: 24px;
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: var(--gradient);
  content: "";
  transform: rotate(12deg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-lg) - 12px);
  object-fit: cover;
  object-position: center 35%;
}

.section { padding: clamp(5rem, 8vw, 8rem) 1.25rem; }
.dark-section, .page-main, .project-detail, .about-section.alt { background: var(--cream); color: var(--ink); }
.section-title { margin-bottom: clamp(2.5rem, 5vw, 4rem); font-size: clamp(2.8rem, 5vw, 5.3rem); line-height: .95; }

.projects-preview { position: relative; padding-top: clamp(5rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.projects-preview::before {
  display: block;
  width: max-content;
  margin: 0 auto 1.2rem;
  padding: .48rem .9rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  content: "Sélection";
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-carousel { grid-template-columns: 46px minmax(0, 1fr) 46px; }
.carousel-viewport { padding: 1.1rem .4rem 2rem; }
.carousel-track { gap: 1.25rem; }
.carousel-track .project-card { flex-basis: calc((100% - 2.5rem) / 3); }
.carousel-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.45rem;
}
.carousel-arrow:hover:not(:disabled) { background: var(--ink); color: white; }

.project-card {
  min-height: 370px;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 23, .07);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(23, 23, 23, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover { transform: translateY(-7px); box-shadow: 0 24px 55px rgba(23, 23, 23, .13); }
.project-image { min-height: 225px; margin: 10px; border-radius: calc(var(--radius-md) - 8px); background: var(--soft); }
.project-image img { height: 225px; transition: transform .45s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-tag {
  top: 12px;
  right: 12px;
  padding: .48rem .72rem;
  border-radius: 999px;
  background: rgba(23, 23, 23, .92);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.project-card-body { padding: 1.2rem 1.45rem 1.55rem; }
.project-card h2, .project-card h3 { min-height: 2.5em; margin-bottom: 1.1rem; font-family: var(--sans); font-size: 1.22rem; font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.project-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 800; letter-spacing: .05em; }

.journey-preview { padding-top: 2rem; }
.journey-card {
  max-width: 1040px;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(23, 23, 23, .08);
}
.journey-visual img { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-md); }
.journey-copy p { color: #454746; font-size: clamp(1rem, 1.35vw, 1.2rem); }

.site-footer {
  padding: 4.5rem 1.25rem 2.2rem;
  border-top: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--ink);
  color: white;
}
.footer-nav a { font-family: var(--sans); font-size: .86rem; }
.footer-contact { color: rgba(255,255,255,.68); }
.footer-contact span { color: rgba(255,255,255,.28); }
.site-footer small { color: rgba(255,255,255,.42); }

.project-top-space { height: clamp(3rem, 6vw, 6rem); }
.project-grid { width: min(var(--max), calc(100% - 2.5rem)); gap: 1.5rem; padding-bottom: clamp(5rem, 9vw, 8rem); }

.project-detail { padding-top: clamp(3rem, 6vw, 6rem); }
.project-detail-inner { width: min(var(--max), 100%); }
.project-title-above, .project-detail-heading { max-width: 980px; }
.project-title-above h1, .project-detail-heading h1 {
  max-width: 1050px;
  margin-inline: auto;
  color: var(--ink);
  font-size: clamp(2.8rem, 6.8vw, 7rem);
  line-height: .92;
  letter-spacing: -.065em;
  white-space: normal;
}
.project-title-long h1 { font-size: clamp(2.4rem, 5.4vw, 5.8rem); white-space: normal; }
.project-detail-hero { width: min(920px, 100%); padding: 12px; border-radius: var(--radius-lg); background: white; box-shadow: 0 22px 65px rgba(23, 23, 23, .1); }
.project-detail-hero img { border-radius: calc(var(--radius-lg) - 12px); }
.project-detail-intro {
  width: min(860px, 100%);
  padding: clamp(2rem, 5vw, 4.2rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  text-align: left;
  box-shadow: 0 16px 50px rgba(23, 23, 23, .07);
}
.project-detail-category {
  margin-bottom: 1.4rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}
.project-detail-intro p { color: #454746; line-height: 1.75; }
.project-detail-gallery { border: 0; border-radius: var(--radius-lg); background: white; box-shadow: 0 16px 48px rgba(23, 23, 23, .07); }
.project-detail-gallery img { border-radius: var(--radius-md); background: var(--soft); }
.project-detail-gallery figcaption { color: var(--muted); }
.publication-card, .newsletter-showcase img, .project-video-row video { overflow: hidden; border-radius: var(--radius-md); box-shadow: 0 14px 40px rgba(23, 23, 23, .1); }
.project-video-row figcaption { color: var(--muted); }
.project-pagination { margin-top: 4rem; border-color: var(--line); }
.project-pagination a { border-radius: var(--radius-md); transition: background .2s ease; }
.project-pagination a:hover { background: white; }
.project-pagination a + a { border-left-color: var(--line); }
.project-pagination small { color: var(--muted); }
.project-pagination strong { font-family: var(--sans); }

.about-intro { position: relative; min-height: 760px; overflow: hidden; background: var(--cream); }
.about-intro::after { position: absolute; z-index: 0; top: 8%; right: -90px; width: 330px; height: 330px; border-radius: 50%; background: var(--mint); content: ""; }
.about-grid { position: relative; z-index: 1; grid-template-columns: .82fr 1.18fr; }
.about-grid > img { border: 12px solid white; border-radius: var(--radius-lg); box-shadow: 0 22px 60px rgba(23, 23, 23, .11); }
.about-copy {
  padding: clamp(2rem, 4vw, 3.6rem);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 50px rgba(23, 23, 23, .07);
}
.about-copy h1 { color: var(--ink); font-size: clamp(3.3rem, 7vw, 7rem); line-height: .9; }
.date { color: var(--muted); }
.signature { font-family: var(--sans); font-weight: 800; }
.about-section { background: var(--cream); color: var(--ink); }
.about-section .section-title { font-size: clamp(2.8rem, 5vw, 5rem); }
.cards { gap: 1.25rem; }
.card { border: 0; border-radius: var(--radius-md); box-shadow: 0 13px 38px rgba(23,23,23,.07); }
.card:nth-child(3n + 1) { border-top: 5px solid var(--cyan); }
.card:nth-child(3n + 2) { border-top: 5px solid var(--mint); }
.card:nth-child(3n + 3) { border-top: 5px solid var(--orange); }
.soft-list span { border: 1px solid var(--ink); background: transparent; font-weight: 700; }
.skill-track { height: 9px; border-radius: 999px; background: #d9dbd7; }
.skill-fill { border-radius: inherit; background: var(--gradient); }

.contact-section { min-height: 680px; background: var(--cream); }
.contact-copy h1 { color: var(--ink); font-size: clamp(3.5rem, 7vw, 7rem); line-height: .9; }
.contact-form, .map-placeholder { padding: clamp(1.7rem, 3vw, 2.6rem); border-radius: var(--radius-lg); background: white; box-shadow: 0 16px 50px rgba(23,23,23,.08); }
.field input, .field textarea { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(37,183,232,.22); border-color: var(--cyan); }
.contact-form .button { border-radius: 999px; }
.map-placeholder { color: var(--ink); }

.testimonial-card { overflow: hidden; border-radius: var(--radius-md); box-shadow: 0 16px 50px rgba(23,23,23,.08); }

.reveal { animation: rise-in .65s cubic-bezier(.2,.8,.2,1) both; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { width: min(560px, 92%); margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { margin-top: -4rem; }
}

@media (max-width: 680px) {
  .site-header, .header-inner { min-height: 72px; }
  .site-nav { inset: 72px 0 0; padding: 1.2rem; background: rgba(241,242,240,.98); }
  .site-nav ul { height: auto; padding: 1rem; border-radius: var(--radius-md); box-shadow: 0 18px 55px rgba(23,23,23,.12); }
  .site-nav a { width: 100%; padding: .95rem 1.4rem; font-size: 1rem; text-align: center; }
  .hero { min-height: calc(100vh - 72px); padding: 3.2rem 1.25rem 4rem; }
  .hero::before { width: 190px; height: 190px; }
  .hero::after { width: 160px; height: 160px; }
  .hero-copy::before { margin-bottom: 1.25rem; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .hero-visual { width: 100%; transform: rotate(0); }
  .hero-visual::after { right: -10px; width: 62px; height: 62px; }
  .section { padding-block: 4.7rem; }
  .section-title { font-size: clamp(2.7rem, 13vw, 4rem); }
  .project-carousel { grid-template-columns: 38px minmax(0, 1fr) 38px; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-track .project-card { flex-basis: 100%; }
  .journey-card { padding: 1rem; border-radius: var(--radius-md); text-align: left; }
  .journey-copy { padding: 1rem .5rem .7rem; }
  .project-grid { width: min(100% - 1.5rem, var(--max)); }
  .project-title-above h1, .project-detail-heading h1 { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .project-detail-hero { padding: 7px; border-radius: var(--radius-md); }
  .project-detail-hero img { border-radius: calc(var(--radius-md) - 6px); }
  .project-detail-intro { padding: 1.6rem; border-radius: var(--radius-md); }
  .project-pagination { gap: .7rem; }
  .project-pagination a { min-height: 120px; padding: 1.35rem; }
  .project-pagination a + a { border-top-color: var(--line); }
  .about-copy { margin-top: -2rem; padding: 1.7rem; border-radius: var(--radius-md); }
  .about-copy h1, .contact-copy h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .contact-form, .map-placeholder { border-radius: var(--radius-md); }
  .site-footer { border-radius: var(--radius-md) var(--radius-md) 0 0; }
}

/* Ajustements de l'accueil — alignement éditorial et formes décoratives */
.hero {
  align-items: stretch;
  padding-top: clamp(2rem, 3.8vw, 3.5rem);
  padding-bottom: clamp(2rem, 3.8vw, 3.5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.hero-copy::before {
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(3.3rem, 5.7vw, 5.9rem);
}

.hero-copy p { margin-bottom: .8rem; }

.hero-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.hero-visual {
  align-self: stretch;
  min-height: 0;
}

.hero::before,
.hero::after {
  filter: none;
  opacity: .9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 20px 55px rgba(23, 23, 23, .09);
  transform: translateZ(0);
}

.hero::before {
  background: radial-gradient(circle at 34% 28%, #8ae6fb 0%, #46c9ee 26%, #22b2e4 58%, #0794cf 100%);
}

.hero::after {
  background: radial-gradient(circle at 36% 30%, #ffc77e 0%, #ffad57 32%, #ff9238 67%, #ee7428 100%);
}

.hero-visual::after { display: none; }
.projects-preview::before { display: none; content: none; }

@media (max-width: 860px) {
  .hero-copy { display: block; }
  .hero-actions { margin-top: 1.8rem; padding-top: 0; }
  .hero-visual { align-self: auto; }
}

@media (max-width: 680px) {
  .hero { padding: 2.4rem 1.25rem 4rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
}

/* Pages projets — titre et visuel visibles dès le premier écran */
.project-detail {
  padding-top: clamp(2.2rem, 4vw, 3.6rem);
}

.project-title-above {
  width: min(1120px, 100%);
  margin-bottom: 1.4rem;
}

.project-title-above h1,
.project-title-long h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.project-detail-hero {
  width: min(680px, 100%);
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
  padding: 9px;
  border-radius: var(--radius-md);
}

.project-detail-hero img {
  border-radius: calc(var(--radius-md) - 8px);
}

/* Parcours — portrait et présentation regroupés dans le premier écran */
.about-intro {
  min-height: calc(100vh - 88px);
  padding: clamp(2rem, 3vw, 3rem) 1.25rem;
}

.about-grid {
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}

.about-grid > img {
  width: 100%;
  max-height: 610px;
  aspect-ratio: 4 / 5;
}

.about-copy {
  padding: clamp(1.6rem, 2.6vw, 2.5rem);
}

.about-copy h1 {
  margin-bottom: .65rem;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .9;
}

.about-copy p {
  margin-bottom: .5rem;
  font-size: .94rem;
  line-height: 1.45;
}

.about-copy .signature { margin-top: .35rem; }
.about-cv-action { padding-top: .6rem; }

@media (max-width: 860px) {
  .project-title-above h1,
  .project-title-long h1 {
    font-size: clamp(.9rem, 4.15vw, 2.2rem);
  }

  .about-intro { padding-top: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > img { width: min(420px, 82%); max-height: none; }
  .about-copy { margin-top: -2rem; }
}

@media (max-width: 680px) {
  .project-title-above { margin-bottom: 1rem; }
  .project-title-above h1,
  .project-title-long h1 {
    font-size: clamp(.78rem, 4.05vw, 1.35rem);
    letter-spacing: -.045em;
  }
  .project-detail-hero { margin-bottom: 1.5rem; padding: 6px; }
}
