/* Pauline Mersant, site C "La semelle, 3 mm". Tokens from design.md; no hex below :root. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-var-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --mur: #F3F3F0;
  --mur-2: #E9E8E3;
  --chene: #D6C3A5;
  --fauteuil: #BF5538;
  --fauteuil-fonce: #A0452C;
  --denim: #93AFCB;
  --encre: #1E2023;
  --encre-2: #4A4D50;
  --encre-30: rgb(30 32 35 / 0.3);
  --encre-voile: rgb(30 32 35 / 0.55);
  --ombre-semelle: 0 10px 18px rgb(30 32 35 / 0.18);
  --ombre-semelle-0: 0 10px 18px rgb(30 32 35 / 0);
  --ombre-carte: 0 12px 28px rgb(30 32 35 / 0.10);
  --ombre-paire: 0 4px 8px rgb(30 32 35 / 0.18);
  --ombre-barre: 0 -8px 20px rgb(30 32 35 / 0.08);
  --lumiere: rgb(255 255 255 / 0.6);
  --chene-0: rgb(214 195 165 / 0);

  --f-titre: "Schibsted Grotesk", "Arial Narrow", Arial, sans-serif;
  --f-texte: "Atkinson Hyperlegible Next", Verdana, sans-serif;

  /* seven sizes: number, hero, section, card, price, text, small */
  --t-num: 72px;
  --t-hero: 34px;
  --t-h2: 28px;
  --t-h3: 24px;
  --t-price: 40px;
  --t-body: 17px;
  --t-small: 15px;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 104px;
  --gutter: 20px;
  --band: var(--s-5);
  --r-1: 10px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* the insole of the hero, and its place in the first card (scale 0.45) */
  --sole-w: 106px;
  --sole-h: 340px;
  --sole-rot: 0deg;
  --land: 0.45;
}

@media (min-width: 900px) {
  :root {
    --t-num: 120px;
    --t-hero: 56px;
    --t-h2: 40px;
    --t-body: 18px;
    --gutter: 40px;
    --band: var(--s-6);
    --sole-w: 162px;
    --sole-h: 520px;
    --sole-rot: 60deg;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mur);
  color: var(--encre);
  font: 400 var(--t-body)/1.6 var(--f-texte);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
p, li { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 36rem; }
.small { font: 600 var(--t-small)/1.5 var(--f-texte); }
.muted { color: var(--encre-2); }

/* ---------- surfaces ---------- */
.band { position: relative; padding-block: var(--band); }
.band > .wrap { position: relative; z-index: 1; }
.band--chene { background: var(--chene); }
.band--chene::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("img/parquet.webp") center / cover; opacity: 0.12;
}
.band--mur { background: var(--mur); }
.band--store::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("img/lumiere-store.webp") center / cover; mix-blend-mode: multiply; opacity: 0.18;
}
.band--store::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 30% 20%, var(--lumiere), transparent);
}

/* ---------- type ---------- */
.num {
  font: 700 var(--t-num)/0.9 var(--f-titre);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.h2 { font: 700 var(--t-h2)/1.1 var(--f-titre); letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font: 600 var(--t-h3)/1.2 var(--f-titre); text-wrap: balance; }
.num--decimal { font-variant-numeric: normal; }
.price { font: 700 var(--t-price)/1 var(--f-titre); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- actions ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: var(--r-pill);
  background: var(--fauteuil); color: var(--mur);
  font: 600 var(--t-body)/1.2 var(--f-texte); text-decoration: none; text-align: center;
  transition: background-color 200ms ease-out, transform 200ms ease-out;
}
.btn:active { transform: translateY(0); transition-duration: 100ms; }
.link {
  text-decoration: none;
  background:
    linear-gradient(var(--encre), var(--encre)) 0 100% / 0 2px no-repeat,
    linear-gradient(var(--encre-30), var(--encre-30)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 300ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--fauteuil-fonce); transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .link:hover { background-size: 100% 2px, 100% 1px; }
}

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 30; height: 64px; }
.top .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.top__logo { margin-right: auto; display: block; }
.top__logo img { height: 28px; width: auto; }
.top__nav { display: none; }
.top__nav a { text-decoration: none; }
.menu-btn {
  font: 600 var(--t-small)/1 var(--f-texte); color: var(--encre);
  background: none; border: 0; padding: 12px 4px; cursor: pointer;
}
.menu {
  position: absolute; top: 64px; left: 0; right: 0; z-index: 40;
  background: var(--mur); padding: var(--s-3) var(--gutter) var(--s-4);
  box-shadow: var(--ombre-carte);
}
.menu[hidden] { display: none; }
.menu ul { display: grid; gap: var(--s-2); }
.menu a { font: 600 var(--t-h3)/1.2 var(--f-titre); text-decoration: none; }

@media (min-width: 900px) {
  .menu-btn, .menu { display: none !important; }
  .top__nav { display: flex; gap: var(--s-3); margin-right: var(--s-3); }
}

/* ---------- 1 hero ---------- */
.hero { position: relative; z-index: 2; padding: calc(64px + var(--s-2)) 0 var(--s-5); }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: linear-gradient(var(--chene-0), var(--mur));
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: var(--s-3); }
.hero h1 { font: 700 var(--t-hero)/1.05 var(--f-titre); letter-spacing: -0.02em; text-wrap: balance; }
.object {
  display: grid; grid-template-columns: var(--sole-w) 1fr; align-items: center;
  gap: var(--s-3); padding-left: 20px; height: var(--sole-h);
}
.sole-slot { width: var(--sole-w); height: var(--sole-h); }
.sole {
  position: relative; z-index: 20; width: var(--sole-w); height: var(--sole-h);
  transform-origin: 50% 50%;
  transform:
    translate(calc(var(--dx, 0px) * var(--p, 0)), calc(var(--dy, 0px) * var(--p, 0)))
    rotate(calc(var(--sole-rot) * (1 - var(--p, 0))))
    scale(calc(1 - (1 - var(--land)) * var(--p, 0)));
  will-change: transform;
}
.sole__fill { width: 100%; height: 100%; filter: drop-shadow(var(--ombre-semelle)); }
.sole img { width: 100%; height: 100%; }
.sole svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.sole path { fill: none; stroke: var(--encre); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.specs { display: grid; gap: var(--s-3); align-content: center; }
.spec__label { display: block; margin-top: var(--s-1); }
.spec--price .spec__label { margin: 0 0 4px; }
.spec--price strong { display: block; font: 600 var(--t-h3)/1.1 var(--f-titre); white-space: nowrap; }
.hero .btn { width: 100%; }
.hero__addr { max-width: 36rem; }

@media (min-width: 900px) {
  .hero { padding: calc(64px + var(--s-5)) 0 var(--s-6); min-height: min(100svh, 900px); }
  .hero .wrap {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "title sole" "specs sole" "cta sole" "addr sole";
    column-gap: var(--s-5); row-gap: var(--s-4); align-content: center;
  }
  .hero h1 { grid-area: title; }
  .object { display: contents; }
  .sole-slot { grid-area: sole; align-self: center; justify-self: center; }
  .specs { grid-area: specs; grid-template-columns: auto auto; justify-content: start; column-gap: var(--s-5); align-items: end; }
  .hero .btn { grid-area: cta; width: auto; justify-self: start; }
  .hero__addr { grid-area: addr; margin-top: calc(-1 * var(--s-3)); }
}

/* the moment on arrival, 0 to 1800 ms */
@media (prefers-reduced-motion: no-preference) {
  .sole svg { opacity: 1; animation: fade-out 300ms ease-out 1300ms forwards; }
  .sole path { stroke-dasharray: 1 1; stroke-dashoffset: 0.96; animation: draw 1100ms var(--ease) forwards; }
  .sole img { animation: fill 700ms var(--ease) 600ms both; }
  .sole__fill { animation: shade 300ms ease-out 1200ms both; }
  .spec { animation: slide-in 380ms var(--ease) both; }
  .spec--thick { animation-delay: 1300ms; }
  .spec--price { animation-delay: 1420ms; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fill { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes shade { from { filter: drop-shadow(var(--ombre-semelle-0)); } to { filter: drop-shadow(var(--ombre-semelle)); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* ---------- 2 la carte ---------- */
.carte { z-index: 1; }
.carte .h2 { margin-bottom: var(--s-4); }
.cards { display: grid; gap: var(--s-2); }
.card {
  background: var(--mur-2); border-radius: var(--r-1); padding: var(--s-3);
  transition: transform 250ms ease-out, box-shadow 250ms ease-out;
}
.card img { transition: transform 600ms ease-out; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--ombre-carte); }
  .card:hover .card__photo img { transform: scale(1.03); }
}
.card .h3 { margin-bottom: var(--s-2); }
.card--big { display: grid; gap: var(--s-3); }
.pair {
  position: relative; height: calc(var(--sole-h) * var(--land) + var(--s-4));
  display: flex; align-items: center; justify-content: center; gap: 14px;
  border-radius: var(--r-1); overflow: hidden;
}
.pair__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pair__landing, .pair__right { display: none; }
.pair__landing { width: calc(var(--sole-w) * var(--land)); height: calc(var(--sole-h) * var(--land)); }
.pair__right { width: calc(var(--sole-w) * var(--land)); height: calc(var(--sole-h) * var(--land)); filter: drop-shadow(var(--ombre-paire)); }
.flight .pair { overflow: visible; }
.flight .pair__photo { display: none; }
.flight .pair__landing, .flight .pair__right { display: block; }
.card--big .price { margin-bottom: var(--s-3); }
.ticks { display: grid; gap: var(--s-1); margin-bottom: var(--s-3); }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 2px; background: var(--encre); }
.card--mid { padding: 0; overflow: hidden; }
.card--mid .card__photo { overflow: hidden; }
.card--mid img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card--mid .card__body { padding: var(--s-3); }
.smalls { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.card--small .h3 { margin-bottom: var(--s-1); }
.carte__notes { display: grid; gap: var(--s-2); margin-top: var(--s-4); }

@media (min-width: 900px) {
  .cards { grid-template-columns: 7fr 5fr; gap: var(--s-3); align-items: stretch; }
  .card--big { grid-template-columns: 220px 1fr; column-gap: var(--s-4); padding: var(--s-4); grid-row: span 2; align-content: center; }
  .pair { height: auto; min-height: calc(var(--sole-h) * var(--land) + var(--s-5)); align-self: stretch; }
  .right-col { display: grid; gap: var(--s-3); }
  .card--mid { display: grid; grid-template-columns: 0.8fr 1.2fr; }
  .card--mid img { height: 100%; aspect-ratio: auto; }
  .card--mid .card__body { align-self: center; }
  .carte__notes { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
}

/* ---------- 3 les semelles, 3 mm ---------- */
.opener { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.tranche { border-radius: var(--r-1); overflow: hidden; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
.tranche img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-2); margin-top: var(--s-2); }
.duo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-1); aspect-ratio: 1; }
.three { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.three strong { display: block; font: 600 var(--t-h3)/1.2 var(--f-titre); margin-bottom: 4px; }

@media (min-width: 900px) {
  .opener { grid-template-columns: auto 1fr; align-items: end; column-gap: var(--s-5); }
  .opener .h2 { max-width: 16em; padding-bottom: 10px; }
  .tranche { margin-inline: 0; border-radius: var(--r-1); }
  .semelles .wrap > * { max-width: 1024px; }
  .duo { grid-template-columns: 1.5fr 1fr; gap: var(--s-3); margin-top: var(--s-3); }
  .duo img { aspect-ratio: auto; height: 420px; }
  .three { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-5); margin-top: var(--s-5); }
}

/* ---------- 4 le bilan ---------- */
.bilan .h2 { margin-bottom: var(--s-2); }
.bilan__lead { font-size: var(--t-body); margin-bottom: var(--s-5); }
.steps { display: grid; gap: var(--s-5); }
.step p { margin-bottom: var(--s-2); max-width: 30rem; }
.step strong { display: block; font: 600 var(--t-h3)/1.2 var(--f-titre); margin-bottom: 4px; }
.step img { border-radius: var(--r-1); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bilan__who { margin-top: var(--s-5); font: 700 var(--t-h2)/1.1 var(--f-titre); }

@media (min-width: 900px) {
  .steps { grid-template-columns: 1.3fr 1fr 1fr; column-gap: var(--s-4); align-items: start; }
  .step:nth-child(2) { margin-top: var(--s-6); }
  .step:nth-child(3) { margin-top: var(--s-5); }
}

/* ---------- 5 les avis, 4,8 ---------- */
.avis__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.quotes { display: grid; gap: var(--s-5); }
.quote blockquote { font: 600 var(--t-h3)/1.35 var(--f-titre); max-width: 34rem; }
.quote figcaption { margin-top: var(--s-2); }
.avis__more { margin-top: var(--s-5); }

@media (min-width: 900px) {
  .avis .wrap { display: grid; grid-template-columns: 4fr 8fr; column-gap: var(--s-6); }
  .avis__head { margin: 0; align-content: start; }
  .quotes { gap: var(--s-6); }
  .quote:nth-child(2) { margin-left: var(--s-6); }
}

/* ---------- 6 elle, 2016 ---------- */
.elle__text { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.elle__text .h3 { margin-top: var(--s-1); }
.elle__photos { display: grid; gap: var(--s-4); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-1); }
.salle img { width: 100%; aspect-ratio: 1100 / 1285; object-fit: cover; border-radius: var(--r-1); }
.salle p { margin-bottom: var(--s-2); }

@media (min-width: 900px) {
  .elle .wrap { display: grid; grid-template-columns: 4fr 4fr 4fr; column-gap: var(--s-4); align-items: start; }
  .elle__text { margin: 0; }
  .elle__photos { display: contents; }
  .portrait { margin-top: var(--s-5); }
}

/* ---------- 7 venir, 2e ---------- */
.venir__title { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: var(--s-1); row-gap: var(--s-1); margin-bottom: var(--s-4); }
.path { display: grid; gap: var(--s-3); counter-reset: step; margin-bottom: var(--s-4); }
.path li { position: relative; padding-left: 44px; counter-increment: step; }
.path li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  font: 700 var(--t-h3)/1.2 var(--f-titre);
}
.contact { display: grid; gap: var(--s-3); align-content: start; }
.contact .btn { width: 100%; }
.contact__tel { font: 600 var(--t-h3)/1.2 var(--f-titre); }
.hours { display: grid; gap: 2px; max-width: 22rem; }
.hours div { display: flex; justify-content: space-between; gap: var(--s-2); }
.hours dt { font-weight: 600; }
.hours .off { color: var(--encre-2); }

@media (min-width: 900px) {
  .venir .wrap { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--s-6); }
  .venir__title { grid-column: 1 / -1; }
  .contact .btn { width: auto; justify-self: start; }
}

/* ---------- footer ---------- */
.foot { background: var(--mur); padding: var(--s-5) 0 calc(var(--s-5) + 72px); }
.foot .wrap { display: grid; gap: var(--s-3); }
.foot__logo img { height: 28px; width: auto; }
.foot__legal { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 900px) {
  .foot { padding-bottom: var(--s-5); }
  .foot .wrap { grid-template-columns: auto 1fr auto; align-items: center; column-gap: var(--s-5); }
}

/* ---------- the action under the thumb, phone only ---------- */
.thumb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--mur); box-shadow: var(--ombre-barre);
  transform: translateY(110%); transition: transform 250ms var(--ease);
}
.thumb .btn { width: 100%; }
.thumb.is-on { transform: none; }
@media (min-width: 900px) { .thumb { display: none; } }

/* ---------- grain on generated pictures ---------- */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- reveals: the numbers and the photos, never the text ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- reduced motion: everything in place, 150 ms fades ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sole, .spec, .reveal { animation: fade-in 150ms linear both; }
  .thumb { transition: opacity 150ms linear; transform: none; opacity: 0; pointer-events: none; }
  .thumb.is-on { opacity: 1; pointer-events: auto; }
  .btn, .card, .card img, .link { transition-duration: 150ms; }
  .btn:hover, .card:hover { transform: none !important; }
  .card:hover .card__photo img { transform: none !important; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
