/* Cafetero Importation Corp. — correspondance aérienne */

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
}
@font-face {
  font-family: "Anybody";
  src: url("/assets/fonts/anybody-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 50% 150%;
  font-display: swap;
}

:root {
  --pelure: #e6ebee;
  --pelure-2: #d6dee3;
  --pelure-3: #c7d1d8;
  --feuille: #f4f6f7;
  --encre: #15202b;
  --encre-2: #3b4855;
  --encre-3: #5a6773;
  --cerise: #a3232c;
  --cerise-2: #861b23;
  --marine: #1d3a5e;
  --jade: #4e5e41;
  --jade-clair: #8fa07c;
  --nuit: #0f1820;
  --nuit-2: #18242f;
  --sur-nuit: #e6ebee;
  --sur-nuit-2: #b6c2cb;

  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --label: "Anybody", "Arial Narrow", sans-serif;

  --gout: clamp(1.25rem, 5vw, 4.5rem);
  --max: 82rem;
  --section: clamp(5rem, 11vw, 10rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ombre: 0 1px 2px rgba(21, 32, 43, .06), 0 18px 40px -18px rgba(21, 32, 43, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--pelure);
  color: var(--encre);
  font-family: var(--serif);
  font-size: clamp(1.02rem, .97rem + .25vw, 1.14rem);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--cerise); color: var(--feuille); }
:focus-visible { outline: 2px solid var(--cerise); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--encre-3) var(--pelure-2); }

.defs { position: absolute; }
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--encre); color: var(--feuille); padding: .6rem 1rem;
  font-family: var(--label); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Bande « par avion » */
.airmail {
  height: 6px;
  background: repeating-linear-gradient(-45deg,
    var(--cerise) 0 12px, var(--feuille) 12px 20px,
    var(--marine) 20px 32px, var(--feuille) 32px 40px);
}

/* Libellés */
.label, .menu a, .btn, .pays, .nom-latin, .acteurs li, dt, .tropique, .footer-inner nav a {
  font-family: var(--label);
  font-stretch: 78%;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--feuille);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.bar {
  max-width: calc(var(--max) + 2 * var(--gout));
  margin: 0 auto;
  padding: 1.1rem var(--gout);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: block; position: relative; width: clamp(6.5rem, 8.5vw, 8.5rem); transform: scale(1.3); }
.brand img { width: 100%; height: auto; transition: opacity .4s var(--ease); }
.brand-noir { position: absolute; inset: 0; opacity: 0; }
.menu ul { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.menu a {
  font-size: .86rem; font-weight: 600; text-decoration: none;
  padding: .35rem 0; position: relative;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.menu a:hover::after, .menu a[aria-current="true"]::after { transform: scaleX(1); }
.menu-cta a { border: 1px solid currentColor; padding: .55rem 1rem; }
.menu-cta a::after { display: none; }
.menu-cta a:hover { background: var(--feuille); color: var(--encre); }
.menu-toggle { display: none; }

.site-header.is-scrolled {
  background: rgba(230, 235, 238, .94);
  color: var(--encre);
  box-shadow: 0 1px 0 rgba(21, 32, 43, .08);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(230, 235, 238, .82); backdrop-filter: saturate(1.2) blur(14px); }
}
.site-header.is-scrolled .bar { padding-block: .55rem; }
.site-header.is-scrolled .brand { transform: none; }
.site-header.is-scrolled .brand-blanc { opacity: 0; }
.site-header.is-scrolled .brand-noir { opacity: 1; }
.site-header.is-scrolled .menu-cta a:hover { background: var(--encre); color: var(--feuille); }
.brand { transform-origin: left top; transition: transform .45s var(--ease); }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .85rem 1rem; }
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .88rem; font-weight: 650; text-decoration: none;
  padding: 1rem 1.4rem; line-height: 1.2;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn::after {
  content: ""; width: 1.1rem; height: .7rem; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h19M13 1l7 6-7 6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h19M13 1l7 6-7 6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .35s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
.btn-clair { background: var(--feuille); color: var(--encre); }
.btn-clair:hover { background: var(--cerise); color: var(--feuille); }
.btn-ligne { border: 1px solid rgba(244, 246, 247, .7); color: var(--feuille); }
.btn-ligne:hover { background: rgba(244, 246, 247, .12); border-color: var(--feuille); }
.btn-plein { background: var(--cerise); color: var(--feuille); }
.btn-plein:hover { background: var(--cerise-2); }
.btn-ligne-encre { border: 1px solid var(--encre); color: var(--encre); }
.btn-ligne-encre:hover { background: var(--encre); color: var(--feuille); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(40rem, 100svh);
  display: flex; align-items: flex-end;
  color: var(--feuille);
  background: var(--nuit);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
  animation: lever 2.4s var(--ease) both;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 24, 32, .55) 0%, rgba(15, 24, 32, 0) 22%),
    linear-gradient(0deg, rgba(15, 24, 32, .88) 0%, rgba(15, 24, 32, .35) 45%, rgba(15, 24, 32, 0) 70%);
}
@keyframes lever { from { transform: scale(1.08); filter: brightness(.7); } to { transform: scale(1); filter: none; } }
.hero-inner {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gout));
  margin: 0 auto;
  padding: 9rem var(--gout) clamp(4rem, 9vh, 7rem);
}
.hero-title {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem);
  line-height: 1.02;
  font-weight: 340;
  letter-spacing: -.025em;
  max-width: 14ch;
  font-variation-settings: "opsz" 72;
}
.hero-lead {
  max-width: 44ch;
  margin: 1.6rem 0 2.2rem;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem);
  line-height: 1.55;
  color: #dfe5e9;
}
.hero-title, .hero-lead, .hero .actions { animation: monter 1.2s var(--ease) both; }
.hero-lead { animation-delay: .15s; }
.hero .actions { animation-delay: .3s; }
@keyframes monter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Oblitérations */
.postmark { overflow: visible; }
.pm-ring { fill: none; stroke: var(--cerise); stroke-width: 3; }
.pm-thin { stroke-width: 1.5; }
.pm-text {
  font-family: var(--label); font-size: 15.5px; font-weight: 700; font-stretch: 70%;
  letter-spacing: .14em; fill: var(--cerise);
}
.pm-num { font-family: var(--serif); font-size: 64px; font-weight: 400; fill: var(--cerise); }
.postmark-hero {
  position: absolute; right: clamp(1.25rem, 7vw, 7rem); bottom: 0;
  width: clamp(7.5rem, 13vw, 11.5rem); transform: translateY(50%) rotate(-14deg);
  z-index: 3;
  background: radial-gradient(circle, var(--pelure) 0 63%, transparent 63.5%);
  border-radius: 50%;
  animation: frappe .9s var(--ease) 1s both;
}
@keyframes frappe {
  0% { opacity: 0; transform: translateY(50%) rotate(-24deg) scale(1.35); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(50%) rotate(-14deg) scale(1); }
}

/* ---------- Lettre ---------- */
.lettre-wrap {
  position: relative;
  max-width: 58rem;
  margin: 0 auto;
  padding: var(--section) var(--gout) calc(var(--section) * .8);
}
.feuillet-dos {
  position: absolute; inset: calc(var(--section) - 1rem) calc(var(--gout) - .6rem) calc(var(--section) * .8 - 1.2rem);
  background: var(--pelure-2);
  transform: rotate(-1.4deg);
  box-shadow: var(--ombre);
}
.lettre {
  position: relative;
  background: var(--feuille);
  padding: clamp(2rem, 6vw, 4.75rem) clamp(1.5rem, 6vw, 5rem);
  box-shadow: var(--ombre);
}
.lettre-ouverture {
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.05rem);
  line-height: 1.38;
  font-weight: 350;
  font-style: italic;
  letter-spacing: -.01em;
  margin-bottom: 1.4em;
  color: var(--encre);
}
.lettre p:not(.lettre-ouverture):not(.lettre-signature) { max-width: 62ch; color: var(--encre-2); }
.lettre-signature {
  margin: 2.2em 0 0 auto;
  max-width: 30ch;
  text-align: right;
  font-style: italic;
  font-size: 1.12em;
  color: var(--marine);
}

/* ---------- Mise en page commune ---------- */
.entreprise, .importation, .cafes, .traitements, .origines, .contact {
  max-width: calc(var(--max) + 2 * var(--gout));
  margin: 0 auto;
  padding: var(--section) var(--gout);
}
h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 360;
  font-variation-settings: "opsz" 60;
  margin-bottom: 1.6rem;
}
h3 {
  font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem);
  line-height: 1.2;
  font-weight: 450;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.accroche { font-size: 1.22em; line-height: 1.45; color: var(--encre); font-style: italic; }

/* Timbre perforé */
.timbre {
  --trou: 4.6px;
  --pas: 13px;
  padding: 13px;
  background: var(--feuille);
  filter: drop-shadow(0 12px 22px rgba(21, 32, 43, .22));
  -webkit-mask:
    conic-gradient(#000 0 0) content-box,
    radial-gradient(circle var(--trou), #0000 96%, #000) calc(var(--pas) / -2) calc(var(--pas) / -2) / var(--pas) var(--pas) round;
          mask:
    conic-gradient(#000 0 0) content-box,
    radial-gradient(circle var(--trou), #0000 96%, #000) calc(var(--pas) / -2) calc(var(--pas) / -2) / var(--pas) var(--pas) round;
}
.timbre img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Entreprise ---------- */
.entreprise { padding-top: calc(var(--section) * .4); }
.entreprise-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;
}
.entreprise-texte p { max-width: 60ch; color: var(--encre-2); }
.entreprise-texte p:first-of-type { color: var(--encre); font-size: 1.12em; }
.timbre-grand { transform: rotate(2.2deg); max-width: 27rem; justify-self: end; width: 100%; }
.timbre-grand img { aspect-ratio: 3 / 4; }

.terrain {
  margin-top: var(--section);
  display: grid; gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}
.terrain-photo { position: relative; }
.terrain-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--ombre); }
.terrain-texte { padding-top: clamp(0rem, 4vw, 3rem); }
.terrain-texte p:not(.accroche) { max-width: 58ch; color: var(--encre-2); }

/* Acteurs : ligne annotée */
.acteurs {
  list-style: none; margin: clamp(3.5rem, 7vw, 6rem) 0 0; padding: 2.6rem 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
  position: relative;
}
.acteurs::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--encre) 0 10px, transparent 10px 16px);
  opacity: .5;
}
.acteurs li {
  position: relative; font-size: .84rem; font-weight: 650; color: var(--encre);
  line-height: 1.3; padding-top: .9rem;
}
.acteurs li::before {
  content: ""; position: absolute; top: -2.6rem; left: 0; width: 1px; height: 3.3rem;
  background: var(--encre-3);
}
.acteurs li::after {
  content: ""; position: absolute; top: -2.6rem; left: -5px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--pelure); border: 2px solid var(--cerise);
  transform: translateY(-50%);
}

.relations {
  margin-top: var(--section);
  display: grid; gap: 1rem clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.relations h3 { grid-column: 1 / -1; }
.citation { margin: 0; }
.citation p {
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.9rem);
  line-height: 1.15; letter-spacing: -.02em; font-weight: 340;
  color: var(--marine);
  font-variation-settings: "opsz" 60;
}
.relations-texte p { color: var(--encre-2); max-width: 54ch; }

/* ---------- Importation ---------- */
.importation { position: relative; }
.importation::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: var(--pelure-2);
}
.importation-tete {
  display: grid; gap: 1rem clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
}
.importation-tete h2 { margin-bottom: 0; }
.importation-tete p:not(.accroche) { color: var(--encre-2); max-width: 56ch; margin-bottom: 0; }
.route {
  list-style: none; margin: clamp(4rem, 8vw, 6.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem);
  position: relative;
}
.route::before {
  content: ""; position: absolute; top: clamp(3.3rem, 5vw, 4.4rem); left: 2rem; right: 2rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--marine) 0 14px, transparent 14px 22px);
  opacity: .45;
}
.etape { position: relative; }
.etape p { color: var(--encre-2); font-size: .97em; }
.postmark-etape {
  width: clamp(6.6rem, 10vw, 8.8rem); display: block; margin-bottom: 1.8rem;
  background: radial-gradient(circle, var(--pelure-2) 0 64%, transparent 64.5%);
  border-radius: 50%;
  transform: rotate(-10deg);
  transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease);
}
.etape:nth-child(2) .postmark-etape { transform: rotate(7deg); }
.etape:nth-child(3) .postmark-etape { transform: rotate(-4deg); }
/* Fantômes avant le passage */
.js .etape:not(.is-stamped) .postmark-etape { opacity: .16; filter: grayscale(1); transform: rotate(-22deg) scale(1.25); }
.js .etape:not(.is-stamped) h3, .js .etape:not(.is-stamped) p { opacity: .45; }
.etape h3, .etape p { transition: opacity .8s var(--ease) .15s; }

/* Bandeau */
.bandeau { height: clamp(16rem, 42vw, 34rem); overflow: hidden; position: relative; }
.bandeau img { width: 100%; height: 130%; object-fit: cover; object-position: 50% 45%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bandeau img { animation: derive linear both; animation-timeline: view(); }
    @keyframes derive { from { transform: translateY(-14%); } to { transform: translateY(0); } }
  }
}

/* ---------- Cafés verts ---------- */
.cafes-corps {
  display: grid; gap: clamp(3rem, 6vw, 6rem);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
}
.cafes-intro { position: sticky; top: 7rem; }
.cafes-intro p { color: var(--encre-2); max-width: 46ch; }
.specimens { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.specimen {
  display: grid; grid-template-columns: clamp(7.5rem, 14vw, 11rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start;
}
.specimen .timbre { transform: rotate(-2deg); }
.specimen:nth-child(even) .timbre { transform: rotate(2.4deg); }
.specimen .timbre img { aspect-ratio: 4 / 5; }
.specimen p { color: var(--encre-2); max-width: 60ch; }
.specimen h3 { margin-bottom: .35rem; }
.nom-latin {
  font-size: .8rem; font-weight: 600; color: var(--jade); margin-bottom: 1rem !important;
  letter-spacing: .1em;
}
.cafes-fin {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem);
  line-height: 1.35; font-style: italic; font-weight: 350;
  max-width: 40ch; margin: 0 auto; text-align: center; color: var(--marine);
  padding-top: clamp(4rem, 8vw, 7rem);
}

/* ---------- Traitements ---------- */
.traitements { padding-top: calc(var(--section) * .5); }
.traitements-intro {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem clamp(2.5rem, 6vw, 6rem);
  align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem);
}
.traitements-intro h2 { grid-row: span 2; margin-bottom: 0; }
.traitements-intro p { color: var(--encre-2); max-width: 54ch; margin: 0; }
.procedes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: start; }
.procede:nth-child(2) { margin-top: clamp(0rem, 7vw, 6rem); }
.procede:nth-child(3) { margin-top: clamp(0rem, 3vw, 2.5rem); }
.procede figure { margin-bottom: 1.6rem; overflow: hidden; background: var(--nuit); }
.procede img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.procede:hover img { transform: scale(1.04); }
.procede p { color: var(--encre-2); font-size: .97em; }

/* ---------- Origines ---------- */
.origines-intro { max-width: 52rem; }
.origines-intro p { color: var(--encre-2); max-width: 62ch; }
.zone {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(4rem, 7vw, 6rem) 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.zone::before, .zone::after {
  content: ""; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); height: 1px;
  background: repeating-linear-gradient(90deg, var(--marine) 0 8px, transparent 8px 14px);
  opacity: .55;
}
.zone::before { top: 1.6rem; }
.zone::after { bottom: 1.6rem; }
.tropique {
  position: absolute; left: 0; font-size: .74rem; font-weight: 600; color: var(--marine);
  letter-spacing: .14em; background: var(--pelure); padding-right: .8rem;
}
.tropique-nord { top: calc(1.6rem - .55rem); }
.tropique-sud { bottom: calc(1.6rem - .6rem); }
.region .timbre { margin-bottom: 1.8rem; max-width: 17rem; }
.region:nth-child(3) .timbre { transform: rotate(-3deg); }
.region:nth-child(4) { margin-top: clamp(0rem, 6vw, 5rem); }
.region:nth-child(4) .timbre { transform: rotate(2.5deg); }
.region:nth-child(5) { margin-top: clamp(0rem, 2.5vw, 2rem); }
.region:nth-child(5) .timbre { transform: rotate(-1.5deg); }
.region .timbre img { aspect-ratio: 5 / 6; }
.pays { font-size: .8rem; font-weight: 600; color: var(--cerise); letter-spacing: .08em; line-height: 1.6; }
.region p:not(.pays) { color: var(--encre-2); font-size: .97em; }

/* ---------- Philosophie ---------- */
.philosophie {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--nuit); color: var(--sur-nuit);
  padding: var(--section) var(--gout);
}
.philosophie-media { position: absolute; inset: 0; z-index: -1; }
.philosophie-media img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.philosophie-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--nuit) 0%, rgba(15, 24, 32, .9) 42%, rgba(15, 24, 32, .45) 100%), linear-gradient(180deg, var(--nuit) 0%, rgba(15, 24, 32, 0) 30%, rgba(15, 24, 32, 0) 70%, var(--nuit) 100%);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .philosophie-media img { animation: approche linear both; animation-timeline: view(); }
    @keyframes approche { from { transform: scale(1.18); } to { transform: scale(1); } }
  }
}
.philosophie-inner { max-width: var(--max); margin: 0 auto; }
.philosophie h2 { color: var(--sur-nuit); max-width: 18ch; }
.philosophie-these {
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.8rem);
  line-height: 1.18; font-weight: 330; letter-spacing: -.02em;
  max-width: 26ch; margin: clamp(2rem, 4vw, 3rem) 0 1.2rem;
}
.philosophie-choix { font-style: italic; color: var(--jade-clair); font-size: 1.2em; }
.philosophie-p { max-width: 62ch; color: var(--sur-nuit-2); margin-top: 2rem; }
.philosophie-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(230, 235, 238, .18);
}
.philosophie-cols h3 { color: var(--sur-nuit); }
.philosophie-cols p { color: var(--sur-nuit-2); max-width: 56ch; }
.philosophie ::selection { background: var(--feuille); color: var(--nuit); }

/* ---------- Contact ---------- */
.contact-intro { max-width: 52rem; }
.contact-intro p { color: var(--encre-2); max-width: 62ch; }
.enveloppe {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--feuille);
  padding: clamp(2.25rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  box-shadow: var(--ombre);
  border: 12px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--cerise) 0 12px, var(--feuille) 12px 20px, var(--marine) 20px 32px, var(--feuille) 32px 40px) 12;
}
.enveloppe h3 { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); font-weight: 400; margin-bottom: .6rem; }
.devise { font-style: italic; color: var(--marine); font-size: 1.15em; margin-bottom: 2rem; }
.question { color: var(--encre); font-size: 1.08em; }
.enveloppe-corps p:not(.devise):not(.question) { color: var(--encre-2); max-width: 58ch; }
.enveloppe .actions { margin-top: 2rem; }
.adresse { font-style: normal; align-self: end; border-left: 1px solid var(--pelure-3); padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.adresse dl { margin: 0; display: grid; gap: 1.6rem; }
dt { font-size: .76rem; font-weight: 650; color: var(--encre-3); letter-spacing: .12em; margin-bottom: .3rem; }
dd { margin: 0; font-size: clamp(1rem, .92rem + .3vw, 1.18rem); }
dd a { text-decoration: none; background: linear-gradient(var(--cerise), var(--cerise)) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
dd a:hover { background-size: 100% 1px; color: var(--cerise); }
.postmark-contact {
  position: absolute; top: clamp(-3.5rem, -5vw, -2.5rem); right: clamp(1rem, 5vw, 4rem);
  width: clamp(6.5rem, 10vw, 8.5rem); transform: rotate(12deg);
  background: radial-gradient(circle, var(--feuille) 0 63%, transparent 63.5%); border-radius: 50%;
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: var(--sur-nuit-2); }
.footer-inner {
  max-width: calc(var(--max) + 2 * var(--gout)); margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gout) 2.5rem;
  display: grid; grid-template-columns: auto 1fr; gap: 2rem 4rem; align-items: start;
}
.footer-logo { width: 11rem; grid-row: span 2; }
.footer-devise { font-style: italic; color: var(--sur-nuit); font-size: 1.15rem; margin: 0; }
.footer-inner nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-inner nav a { font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--sur-nuit-2); }
.footer-inner nav a:hover { color: var(--feuille); }
.footer-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-top: 2rem; border-top: 1px solid rgba(230, 235, 238, .14); }
.footer-contact a { color: var(--sur-nuit); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; font-size: .85rem; margin: 0; color: #8f9ca7; }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .timbre.reveal { transform: translateY(26px) rotate(0deg); }
.js .timbre-grand.reveal.is-in { transform: rotate(2.2deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .etape:not(.is-stamped) .postmark-etape, .js .etape:not(.is-stamped) h3, .js .etape:not(.is-stamped) p { opacity: 1; filter: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .acteurs { grid-template-columns: repeat(3, 1fr); row-gap: 3.6rem; }
}
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .7rem;
    background: none; border: 0; color: inherit; cursor: pointer; padding: .5rem 0;
    font-family: var(--label); font-stretch: 78%; font-weight: 650; font-size: .86rem;
    letter-spacing: .08em; text-transform: uppercase;
  }
  .menu-icon { display: grid; gap: 6px; width: 22px; }
  .menu-icon span { height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu {
    position: fixed; inset: 0; z-index: -1;
    background: var(--nuit); color: var(--sur-nuit);
    display: flex; align-items: flex-end;
    padding: 7rem var(--gout) 3rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .7s var(--ease), visibility 0s .7s;
    visibility: hidden;
  }
  .menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease); }
  .menu ul { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .menu a { font-family: var(--serif); font-stretch: 100%; text-transform: none; letter-spacing: -.01em; font-weight: 350; font-size: clamp(2rem, 8vw, 2.8rem); }
  .menu a::after { display: none; }
  .menu-cta { margin-top: 1rem; }
  .menu-cta a { font-family: var(--label); font-stretch: 78%; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; padding: .9rem 1.3rem; }
  body.menu-ouvert .site-header { color: var(--sur-nuit); background: transparent; box-shadow: none; backdrop-filter: none; }
  body.menu-ouvert .brand-blanc { opacity: 1; }
  body.menu-ouvert .brand-noir { opacity: 0; }

  .entreprise-grid, .terrain, .relations, .importation-tete, .cafes-corps, .traitements-intro, .philosophie-cols, .enveloppe { grid-template-columns: 1fr; }
  .timbre-grand { justify-self: center; max-width: 22rem; }
  .philosophie-media::after { background: linear-gradient(180deg, var(--nuit) 0%, rgba(15, 24, 32, .82) 30%, rgba(15, 24, 32, .9) 100%); }
  .terrain-photo img { aspect-ratio: 3 / 2; }
  .cafes-intro { position: static; }
  .route { grid-template-columns: 1fr; gap: 3rem; }
  .etape { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1.25rem; align-content: start; }
  .etape .postmark-etape { grid-column: 1; grid-row: 1 / span 4; width: 5.5rem; margin: 0; }
  .etape > :not(svg) { grid-column: 2; }
  .route::before { top: 3rem; bottom: 3rem; left: 2.75rem; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--marine) 0 14px, transparent 14px 22px); }
  .procedes { grid-template-columns: 1fr 1fr; }
  .procede:nth-child(2) { margin-top: 4rem; }
  .procede:nth-child(3) { margin-top: 0; }
  .zone { grid-template-columns: 1fr 1fr; }
  .region:nth-child(4) { margin-top: 4rem; }
  .region:nth-child(5) { margin-top: 0; }
  .adresse { border-left: 0; padding-left: 0; border-top: 1px solid var(--pelure-3); padding-top: 2rem; }
}
@media (max-width: 640px) {
  .acteurs { grid-template-columns: 1fr; gap: 1.4rem; padding: 0 0 0 2.2rem; margin-top: 3rem; }
  .acteurs::before { top: 0; bottom: 0; left: 0; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--encre) 0 10px, transparent 10px 16px); }
  .acteurs li { padding-top: 0; }
  .acteurs li::before { top: .65em; left: -2.2rem; width: 1.6rem; height: 1px; }
  .acteurs li::after { top: .65em; left: calc(-2.2rem - 4.5px); }
  .hero-inner { padding-top: 7.5rem; }
  .hero .btn { width: 100%; justify-content: space-between; }
  .postmark-hero { right: 1.25rem; }
  .specimen { grid-template-columns: 5.8rem minmax(0, 1fr); gap: 1.25rem; }
  .procedes, .zone { grid-template-columns: 1fr; }
  .procede:nth-child(2), .region:nth-child(4) { margin-top: 0; }
  .procede img { aspect-ratio: 3 / 2; }
  .region .timbre { max-width: 13rem; }
  .enveloppe { border-width: 9px; padding: 2rem 1.4rem 2.25rem; }
  .enveloppe .btn { width: 100%; justify-content: space-between; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-logo { grid-row: auto; width: 9rem; }
  .tropique { font-size: .66rem; }
}

/* ---------- 404 ---------- */
.introuvable { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 2rem; padding: var(--gout); text-align: center; }
.introuvable img { width: 12rem; }
