/* ========================================
   JEAN PLANÇON — Site personnel V3
   style.css

   Direction artistique :
   - Papier vieilli + encre + bordeaux + pierre
   - EB Garamond (display) + Outfit (body)
   - Radius 0 (éditorial strict)
   - Video hero, visits catalogue, book carousel,
     contributions, conférences, JP Édition
   ======================================== */


/* ----------------------------------------
   0. CUSTOM PROPERTIES
   ---------------------------------------- */
:root {
  --color-bg:           #f4f1ec;
  --color-bg-alt:       #ebe7e1;
  --color-surface:      #faf8f4;
  --color-text:         #1e1e22;
  --color-text-muted:   #6d6862;
  --color-accent:       #7a3040;
  --color-accent-dark:  #5e2432;
  --color-accent-light: #9b4d5e;
  --color-border:       #d6d1ca;
  --color-border-light: #e4e0da;

  --font-display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;

  --nav-height:    68px;
  --section-py:    clamp(4rem, 10vw, 8rem);
  --inner-max:     1200px;
  --inner-px:      clamp(1.25rem, 4vw, 3rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.4s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:           #1a1918;
    --color-bg-alt:       #222120;
    --color-surface:      #2a2827;
    --color-text:         #e8e4df;
    --color-text-muted:   #a09a94;
    --color-accent:       #d88494;
    --color-accent-dark:  #e8a0ae;
    --color-accent-light: #c06878;
    --color-border:       #3d3a37;
    --color-border-light: #33302e;
  }
}


/* ----------------------------------------
   1. RESET & BASE
   ---------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--color-accent-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

address { font-style: normal; }

ul[role="list"],
ol[role="list"] { list-style: none; }

::selection {
  background-color: var(--color-accent);
  color: #fff;
}


/* ----------------------------------------
   2. NAVIGATION
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.nav--scrolled {
  background-color: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px);
  height: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.nav:not(.nav--scrolled) .nav__logo { color: #fff; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease-out);
}

.nav:not(.nav--scrolled) .nav__links a { color: rgba(255,255,255,0.8); }
.nav__links a:hover { color: var(--color-text); }
.nav:not(.nav--scrolled) .nav__links a:hover { color: #fff; }

.nav__cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid currentColor;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s var(--ease-out),
              opacity 0.3s var(--ease-out);
}

.nav:not(.nav--scrolled) .nav__burger span { background-color: #fff; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
  z-index: 90;
}

.nav-overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 767px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: calc(var(--nav-height) + 1.5rem) var(--inner-px) 2rem;
    background-color: var(--color-bg);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 95;
    overflow-y: auto;
  }

  .nav__links.open { transform: translateX(0); }

  .nav__links a {
    color: var(--color-text) !important;
    font-size: 1.05rem;
    padding: 0.75rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav__cta {
    border: none;
    padding: 0.75rem 0;
    color: var(--color-accent) !important;
  }

  .nav__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}


/* ----------------------------------------
   3. HERO — Video Background
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero--video-loaded .hero__fallback { display: none; }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.15) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px) clamp(3rem, 8vw, 6rem);
}

.hero__content { max-width: 640px; }

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero__body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ----------------------------------------
   4. BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              transform 0.15s var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
}
.btn--primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.btn--accent {
  background-color: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
}
.btn--accent:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: #fff;
}

.btn--light {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn--light:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn--secondary:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-text); }

.btn--sm {
  font-size: 0.75rem;
  padding: 0.625rem 1.25rem;
}

.btn--full {
  width: 100%;
  text-align: center;
}


/* ----------------------------------------
   5. SECTIONS — Common layout
   ---------------------------------------- */
.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px);
}

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 55ch;
}


/* ----------------------------------------
   6. À PROPOS — Portrait + Bio
   ---------------------------------------- */
.apropos-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.apropos-content .section__title { margin-bottom: 1.25rem; }

.apropos-text {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  max-width: 55ch;
}

.apropos-text:last-of-type { margin-bottom: 0; }

.apropos-portrait {
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.apropos-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}


/* ----------------------------------------
   6b. CONFIANCE — Presse & institutions
   ---------------------------------------- */
.trust {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.trust__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px);
  text-align: center;
}

.trust__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.trust__lead {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

.trust__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.35rem 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.trust__track {
  display: flex;
  width: max-content;
  animation: trust-marquee 28s linear infinite;
}

.trust__marquee:hover .trust__track {
  animation-play-state: paused;
}

.trust__group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-right: clamp(2.5rem, 5vw, 5rem);
}

.trust__logo {
  flex: 0 0 auto;
  opacity: 0.9;
  filter: none;
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.trust__logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.trust__logo img {
  height: clamp(34px, 4vw, 46px);
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

@keyframes trust-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .trust__group {
    gap: 2.25rem;
    padding-right: 2.25rem;
  }

  .trust__logo img {
    max-width: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust__marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .trust__track {
    width: auto;
    animation: none;
    overflow-x: auto;
  }

  .trust__group[aria-hidden="true"] {
    display: none;
  }
}

/* ----------------------------------------
   7. VISITES GUIDÉES — Catalogue complet
   ---------------------------------------- */
.visits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.visit-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease-out);
}

@media (prefers-color-scheme: dark) {
  .visit-card { background-color: var(--color-surface); }
}

.visit-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
  .visit-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
}

.visit-card__image { overflow: hidden; }

.visit-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.visit-card:hover .visit-card__image img {
  transform: scale(1.03);
}

.visit-card__content {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.visit-card__number {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.visit-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw + 0.4rem, 1.35rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.625rem;
}

.visit-card__text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.visit-card__meta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

/* Visits practical info */
.visits-info {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  .visits-info { background-color: var(--color-surface); }
}

.visits-info__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.visits-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.visits-info__item h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.visits-info__item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ----------------------------------------
   8. OUVRAGES — Grandes cartes défilantes
   ---------------------------------------- */
.books-section {
  background: #121212;
  overflow: hidden;
}

.books-section .section__title {
  color: #fff;
  text-align: center;
}

.books-section .section__lead {
  color: rgba(255,255,255,0.72);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.books-section .section__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.books-featured {
  position: relative;
  width: 100%;
  margin: 0;
  padding-left: clamp(1.5rem, 3.5vw, 4rem);
  padding-right: clamp(1.5rem, 3.5vw, 4rem);
  box-sizing: border-box;
}

.books-featured__controls {
  position: absolute;
  left: clamp(0.75rem, 2vw, 2.25rem);
  right: clamp(0.75rem, 2vw, 2.25rem);
  top: 50%;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.books-featured__arrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(18,18,18,0.38);
  color: #f3e8d2;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  transition: background-color var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              transform 0.15s var(--ease-out);
}

.books-featured__arrow:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}

.books-featured__arrow:active {
  transform: translateY(1px);
}

.books-featured__arrow span {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  transform: translateY(-1px);
}

.books-featured__viewport {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.books-featured__viewport::-webkit-scrollbar {
  display: none;
}

.books-featured__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  padding-right: 0;
}

.book-featured-card {
  position: relative;
  flex: 0 0 clamp(330px, 30vw, 460px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  scroll-snap-align: start;
  background-color: #1b1b1b;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.book-featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.book-featured-card:hover img {
  transform: scale(1.035);
}

.book-featured-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.46) 48%,
    rgba(0,0,0,0.12) 100%
  );
}

.book-featured-card__content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(86%, 360px);
  padding: 0;
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

.book-featured-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.75vw, 1.75rem);
  font-weight: 400;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 0.65rem;
}

.book-featured-card__subtitle {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.84);
  margin-bottom: 0.55rem;
}

.book-featured-card__meta {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.btn--book {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.58);
}

.btn--book:hover {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

@media (min-width: 1200px) {
  .books-featured {
    padding-left: clamp(2rem, 3vw, 4rem);
    padding-right: clamp(2rem, 3vw, 4rem);
  }

  .books-featured__controls {
    left: clamp(0.75rem, 1.4vw, 1.75rem);
    right: clamp(0.75rem, 1.4vw, 1.75rem);
  }
}

@media (max-width: 960px) {
  .book-featured-card {
    flex-basis: clamp(300px, 42vw, 380px);
  }
}

@media (max-width: 767px) {
  .books-featured {
    padding-left: clamp(1rem, 4.5vw, 1.5rem);
    padding-right: clamp(1rem, 4.5vw, 1.5rem);
  }

  .books-featured__controls {
    left: 0.45rem;
    right: 0.45rem;
  }

  .books-featured__arrow {
    width: 34px;
    height: 34px;
  }

  .book-featured-card {
    flex-basis: min(78vw, 310px);
  }

  .book-featured-card__content {
    width: min(84%, 290px);
  }
}

/* ----------------------------------------
   9. CONTRIBUTIONS — Composition éditoriale
   ---------------------------------------- */
.contrib-editorial {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
}

.contrib-feature {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  align-self: start;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  .contrib-feature {
    background-color: var(--color-surface);
  }
}

.contrib-feature__cover {
  margin-bottom: 1.5rem;
  overflow: hidden;
  background-color: var(--color-surface);
}

.contrib-feature__cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.contrib-feature:hover .contrib-feature__cover img {
  transform: scale(1.025);
}

.contrib-feature__label,
.contrib-entry__year {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.contrib-feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contrib-feature__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.contrib-feature__text {
  font-size: 0.975rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.contrib-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contrib-timeline::before {
  content: "";
  position: absolute;
  left: 54px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-border);
}

.contrib-entry {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  min-height: 150px;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--color-border);
}

.contrib-entry:first-child {
  border-top: 1px solid var(--color-border);
}

.contrib-entry::before {
  content: "";
  position: absolute;
  left: 49px;
  top: 50%;
  width: 11px;
  height: 11px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-accent);
  transform: translateY(-50%);
  z-index: 1;
}

.contrib-entry__cover {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.contrib-entry__cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.contrib-entry:hover .contrib-entry__cover img {
  transform: scale(1.035);
}

.contrib-entry__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--color-text);
  margin-bottom: 0.35rem;
  max-width: 34ch;
}

.contrib-entry__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

@media (max-width: 960px) {
  .contrib-editorial {
    grid-template-columns: 1fr;
  }

  .contrib-feature {
    position: static;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: center;
  }

  .contrib-feature__cover {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .contrib-feature {
    display: block;
  }

  .contrib-feature__cover {
    max-width: 220px;
    margin-bottom: 1.25rem;
  }

  .contrib-timeline::before {
    left: 38px;
  }

  .contrib-entry {
    grid-template-columns: 76px 1fr;
    gap: 1rem;
    padding-left: 0;
  }

  .contrib-entry::before {
    left: 33px;
  }
}

/* ----------------------------------------
   10. CONFÉRENCES — Image + Texte
   ---------------------------------------- */
.conf-section {
  background-color: var(--color-bg);
  overflow: hidden;
}

.conf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(520px, 56vw, 760px);
  align-items: stretch;
}

.conf-split__image {
  overflow: hidden;
  min-height: 100%;
}

.conf-split__image img {
  width: 100%;
  height: 100%;
  min-height: clamp(520px, 56vw, 760px);
  object-fit: cover;
}

.conf-split__content {
  display: flex;
  align-items: center;
  padding: var(--section-py) max(var(--inner-px), 6vw);
}

.conf-split__content-inner {
  max-width: 520px;
}

.conf-split__content .section__title { margin-bottom: 1.25rem; }

.conf-split__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 45ch;
}

@media (max-width: 767px) {
  .conf-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .conf-split__image img {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }

  .conf-split__content {
    padding: clamp(3rem, 10vw, 5rem) var(--inner-px);
  }
}

/* ----------------------------------------
   11. JP ÉDITION — Full-bleed image
   ---------------------------------------- */
.edition {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) 0;
  overflow: hidden;
}

.edition__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.edition__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edition__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(30,30,34,0.88) 0%,
    rgba(30,30,34,0.75) 100%
  );
}

.edition__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--inner-px);
  text-align: center;
}

.edition__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.5rem;
}

.edition__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.edition__text em {
  font-style: italic;
  color: rgba(255,255,255,0.95);
}

.edition__book {
  margin: 2rem auto;
  max-width: 220px;
}

.edition__book img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.edition__inner > .btn { margin-top: 0.5rem; }


/* ----------------------------------------
   12. CONTACT — Info + Form
   ---------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-details {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.contact-details p { margin-bottom: 0.375rem; }

.contact-details a {
  color: var(--color-text);
  text-decoration-color: var(--color-accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  transition: border-color var(--duration) var(--ease-out);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236d6862' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group--error input,
.form-group--error select,
.form-group--error textarea { border-color: #c0392b; }

.form-error {
  font-size: 0.8125rem;
  color: #c0392b;
  min-height: 1.1em;
}

.form-success {
  padding: 1rem;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text);
}


/* ----------------------------------------
   13. FOOTER
   ---------------------------------------- */
.footer {
  background-color: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.footer__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.footer__nav ul { display: flex; gap: 1.5rem; }

.footer__nav a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-out);
}

.footer__nav a:hover { color: #fff; }

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}


/* ----------------------------------------
   14. SCROLL-REVEAL
   ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ----------------------------------------
   15. RESPONSIVE
   ---------------------------------------- */

/* Tablet */
@media (max-width: 960px) {
  .visits-grid { grid-template-columns: 1fr 1fr; }

  .apropos-layout { grid-template-columns: 1fr 0.7fr; }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --nav-height: 60px; }

  .hero__title { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .hero__body { font-size: 1rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }

  .apropos-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .apropos-portrait {
    order: -1;
    max-width: 280px;
    position: static;
  }

  .trust__logo img { height: 28px; }

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

  .visits-info__grid { grid-template-columns: 1fr; }

  .books-showcase { grid-template-columns: 1fr; }

  .contrib-list { grid-template-columns: 1fr; }

  .contrib-item { grid-template-columns: 80px 1fr; }


  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .btn { padding: 0.75rem 1.25rem; }
}


/* ----------------------------------------
   16. REDUCED MOTION
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ----------------------------------------
   17. PRINT
   ---------------------------------------- */
@media print {
  .nav,
  .nav-overlay,
  .hero__video,
  .btn,
  .contact-form,
  .footer { display: none !important; }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero__overlay { display: none; }

  .hero__title,
  .hero__subtitle,
  .hero__body { color: #000 !important; }

  .section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }

  .edition { background: none; padding: 1.5rem 0; }
  .edition__overlay { display: none; }
  .edition__title,
  .edition__text { color: #000 !important; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  a { color: #000; text-decoration: underline; }
  img { max-width: 100%; break-inside: avoid; }
}
