/* L'Arbre aux Papiers, première version */

@font-face {
  font-family: "Special Elite";
  src: url("fonts/special-elite-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/alegreya-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/alegreya-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/alegreya-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --moutarde: #E2A94E;
  --ecorce: #431C13;
  --ecorce-2: #5E2A1C;
  --kraft: #C4AA84;
  --papier: #ECE9E3;
  --encre: #1F1B18;
  --gris: #5F574F;

  --display: "Special Elite", "Courier New", monospace;
  --sans: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;

  --wrap: 1400px;
  --gut: 16px;
  --radius: 2px;
  --bar: 0px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
  padding-bottom: var(--bar);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ecorce); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ecorce); color: var(--papier); padding: 8px 16px;
}
.skip:focus { left: 8px; z-index: 50; }

:focus-visible { outline: 2px solid var(--ecorce); outline-offset: 3px; }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}
.h2 {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}
.h3 { font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1.2; }
.lead { font-size: 19px; line-height: 1.45; }
.small { font-size: 14px; line-height: 1.45; }
.muted { color: var(--gris); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--sans); font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius);
  transition: background-color .3s, color .3s;
}
.btn-main { background: var(--ecorce); color: var(--papier); }
.btn-line { color: var(--ecorce); box-shadow: inset 0 0 0 2px var(--ecorce); }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-main:hover { background: var(--ecorce-2); }
  .btn-line:hover { background: var(--ecorce); color: var(--papier); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--papier);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; }
.brand img { width: 36px; height: 35px; }
.brand span { font-size: 20px; line-height: 1; }
.nav { display: none; }
.nav a { color: var(--encre); text-decoration: none; font-size: 17px; }
.nav a[aria-current="page"] { text-decoration: underline; }
.top-tel { display: none; }
.menu-btn {
  appearance: none; border: 0; background: none; color: var(--encre);
  font: 700 16px/1 var(--sans); padding: 12px 0 12px 12px; min-height: 48px; cursor: pointer;
}
.menu {
  display: none;
  border-top: 1px solid rgba(31, 27, 24, .15);
  padding: 8px var(--gut) 24px;
}
.menu.open { display: block; }
.menu a { display: block; padding: 12px 0; font-size: 22px; color: var(--encre); text-decoration: none; }
.menu a.btn { display: flex; margin-top: 16px; color: var(--papier); font-size: 17px; }

/* Hero */
.hero { display: flex; flex-direction: column; min-height: calc(100svh - 64px); }
.hero-photo { position: relative; height: 40svh; min-height: 240px; overflow: hidden; background: var(--kraft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px var(--gut) 28px; }
.hero h1 { font-size: 46px; margin-bottom: 16px; }
.hero h1 .l1 { white-space: nowrap; }
.hero h1 .l2 { display: block; }
.hero .lead { margin-bottom: 20px; max-width: 34em; }
.hero .actions { margin-bottom: 20px; }
.hero .actions { gap: 8px; }
.hero .actions .btn { flex: 1 1 auto; padding: 12px 14px; }
.hero-meta { display: grid; gap: 4px; font-size: 15px; color: var(--gris); }
.hero-meta strong { color: var(--encre); font-weight: 700; }

/* The band */
.band { background: var(--moutarde); color: var(--ecorce); }
.band .wrap { display: grid; gap: 24px; padding-top: 48px; padding-bottom: 48px; align-items: center; }
.band-tree { width: 168px; margin: 0 auto; }
.band blockquote { margin: 0; }
.band q { display: block; font-family: var(--sans); font-style: italic; font-size: 26px; line-height: 1.3; quotes: "« " " »"; }
.band cite { display: block; margin-top: 16px; font-style: normal; font-size: 16px; }
.band-label { display: grid; gap: 2px; font-size: 16px; line-height: 1.3; padding-top: 16px; border-top: 1px solid rgba(67, 28, 19, .35); }
.band-label b { font-family: var(--display); font-weight: 400; font-size: 22px; }

/* Sections */
.sec { padding: 64px 0; }
.sec-head { margin-bottom: 32px; max-width: 46em; }
.sec-head .h2 { margin-bottom: 16px; }

/* Papeterie on home */
.wide-photo { margin: 0 0 32px; }
.wide-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wide-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--gris); }
.families { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.families a { color: var(--encre); text-decoration: none; display: block; }
.families img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--kraft); }
.families b { display: block; margin-top: 10px; font-size: 18px; line-height: 1.25; }
.families span { display: block; font-size: 15px; color: var(--gris); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) {
  .families a:hover b { text-decoration: underline; text-underline-offset: 3px; }
}

/* Imprimerie on home */
.stamp { font-family: var(--display); font-size: min(14.5vw, 96px); line-height: .9; color: var(--encre); margin-bottom: 24px; white-space: nowrap; }
.print-grid { display: grid; gap: 32px; }
.print-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid rgba(31, 27, 24, .2); }
.print-list li { padding: 12px 0; border-bottom: 1px solid rgba(31, 27, 24, .2); font-size: 18px; }
.print-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.print-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--gris); }

/* Qui */
.qui { background: var(--kraft); }
.qui .wrap { display: grid; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.year { font-family: var(--display); font-size: 96px; line-height: .85; color: var(--ecorce); }
.qui .h2 { margin: 16px 0 0; font-size: 32px; line-height: 1.05; max-width: 9em; }
.qui-cols { display: grid; gap: 24px; }
.qui-cols h3 { margin-bottom: 8px; }
.qui-cols p { margin-bottom: 0; }
.qui a { color: var(--ecorce); }

/* Nous trouver */
.find { display: grid; gap: 40px; }
.find address { font-style: normal; font-size: 22px; line-height: 1.35; margin-bottom: 8px; }
.find .postal { font-size: 15px; color: var(--gris); margin-bottom: 24px; }
.hours { width: 100%; border-collapse: collapse; font-size: 17px; }
.hours th { text-align: left; font-weight: 400; padding: 10px 16px 10px 0; width: 7em; }
.hours td { padding: 10px 0; }
.hours tr { border-bottom: 1px solid rgba(31, 27, 24, .2); }
.hours td span + span::before { content: ", "; }
.hours .off { color: var(--gris); }
.hours tr.today th, .hours tr.today td { font-weight: 700; }
.hours-src { margin-top: 12px; font-size: 14px; color: var(--gris); }
.contact-lines { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 19px; }

/* Close */
.close { padding: 64px 0 72px; border-top: 1px solid rgba(31, 27, 24, .2); }
.close .h2 { margin-bottom: 24px; max-width: 14em; }

/* Footer */
.foot { background: var(--encre); color: var(--papier); padding: 40px 0 32px; font-size: 15px; }
.foot a { color: var(--papier); }
.foot .wrap { display: grid; gap: 24px; }
.foot .brand { color: var(--papier); }
.foot .brand img { filter: brightness(0) invert(.92); }
.foot-lines { display: grid; gap: 4px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; color: rgba(236, 233, 227, .75); }
.foot-legal a { color: rgba(236, 233, 227, .75); }

/* Phone call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom));
  background: var(--papier);
  border-top: 1px solid rgba(31, 27, 24, .15);
}
.callbar .btn { width: 100%; }
.callbar { transition: transform .3s; }
.js .callbar.away { transform: translateY(110%); }
body { --bar: 72px; }

/* Sub-pages */
.page-head { padding: 48px 0 40px; }
.page-head h1 { font-size: min(14.5vw, 96px); margin-bottom: 20px; white-space: nowrap; }
.page-head .lead { max-width: 36em; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a {
  display: inline-block; padding: 8px 14px; min-height: 40px;
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(31, 27, 24, .35);
  color: var(--encre); text-decoration: none; font-size: 16px;
}
.family { padding: 48px 0; border-top: 1px solid rgba(31, 27, 24, .2); scroll-margin-top: 72px; }
.family-head { display: grid; gap: 12px; margin-bottom: 28px; max-width: 46em; }
.family-head p { margin: 0; }
.products { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.products img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--kraft); margin-bottom: 10px; }
.products b { display: block; font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
.products span { display: block; font-size: 15px; line-height: 1.4; color: var(--gris); }
.note { background: var(--kraft); padding: 32px 0; }
.note .wrap { display: grid; gap: 16px; }
.note p { margin: 0; font-size: 19px; max-width: 40em; }

.two { display: grid; gap: 32px; }
.wide-band { margin: 0 auto 64px; }
.wide-band img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%; }
.plain-list { margin: 0 0 16px; padding-left: 20px; }
.plain-list li { margin-bottom: 6px; }

/* Reveal */
.js .reveal > * { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in > * { opacity: 1; transform: none; }
.js .reveal.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal.is-in > *:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal > * { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Tablet */
@media (min-width: 640px) {
  :root { --gut: 32px; }
  .families { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .hero .actions .btn { flex: 0 0 auto; padding: 12px 24px; }
  .hero-photo { height: 50svh; }
  .hero h1 { font-size: 72px; }
  .hero-text { justify-content: flex-start; padding-top: 40px; }
  .band .wrap { grid-template-columns: 200px 1fr; gap: 40px; }
  .band-tree { width: 200px; margin: 0; }
  .qui-cols { grid-template-columns: 1fr 1fr; }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --gut: 48px; }
  body { font-size: 18px; --bar: 0px; }
  .callbar { display: none; }
  .nav { display: flex; gap: 32px; }
  .top-tel { display: inline-flex; min-height: 44px; padding: 10px 18px; }
  .menu-btn, .menu, .menu.open { display: none; }
  .top .wrap { height: 72px; }

  .h2 { font-size: 64px; }
  .h3 { font-size: 26px; }
  .lead { font-size: 22px; }

  .hero { flex-direction: row-reverse; min-height: calc(100vh - 72px); }
  .hero-photo { width: 54%; height: auto; min-height: 0; }
  .hero-photo img { position: absolute; inset: 0; object-position: 52% 50%; }
  .hero-text {
    justify-content: center;
    width: 46%;
    padding: 48px 48px 48px max(48px, calc((100vw - var(--wrap)) / 2 + 48px));
  }
  .hero h1 { font-size: min(104px, calc((46vw - 120px) / 6.8)); margin-bottom: 28px; }
  .hero .lead { margin-bottom: 32px; }
  .hero .actions { margin-bottom: 28px; }
  .hero-meta { font-size: 16px; }

  .band .wrap { grid-template-columns: 360px 1fr 260px; gap: 64px; padding-top: 72px; padding-bottom: 72px; }
  .band-tree { width: 360px; }
  .band q { font-size: 40px; line-height: 1.22; }
  .band cite { font-size: 18px; }
  .band-label { border-top: 0; border-left: 1px solid rgba(67, 28, 19, .35); padding: 0 0 0 32px; }
  .band-label b { font-size: 26px; }

  .sec { padding: 112px 0; }
  .sec-head { margin-bottom: 48px; }

  .pap-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .pap-grid .wide-photo { position: sticky; top: 104px; margin: 0; }
  .pap-grid .wide-photo img { aspect-ratio: 4 / 5; }
  .families { gap: 40px 24px; }

  .stamp { font-size: min(168px, 14vw); margin-bottom: 40px; }
  .print-grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; }

  .qui .wrap { grid-template-columns: 4fr 8fr; gap: 72px; padding-top: 112px; padding-bottom: 112px; }
  .qui .h2 { font-size: 44px; }
  .year { font-size: 184px; }
  .qui-cols { gap: 40px 48px; }

  .find { grid-template-columns: 5fr 6fr; gap: 96px; }
  .find address { font-size: 28px; }

  .close { padding: 112px 0; }
  .close .wrap { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
  .close .h2 { margin: 0; font-size: 52px; max-width: 16em; }

  .foot .wrap { grid-template-columns: 1fr 1fr 1fr; align-items: start; }

  .page-head { padding: 80px 0 56px; }
  .page-head h1 { font-size: min(136px, 12vw); }
  .family { padding: 80px 0; }
  .family .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .family-head { position: sticky; top: 104px; }
  .products { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .note { padding: 56px 0; }
  .note .wrap { grid-template-columns: 8fr 4fr; align-items: center; gap: 48px; }
  .note p { font-size: 24px; }
  .two { grid-template-columns: 1fr 1fr; gap: 72px; }
  .wide-band img { aspect-ratio: 16 / 7; }
  .products:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
}
.hours-src:empty { display: none; }
