@font-face {
  font-family: "Archivo";
  src: url("assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* Une seule page courte : le produit, l'achat, quelques images, la date. Rien d'autre. */
:root {
  --black: #000;
  --white: #f3f1ec;
  --mute: #96938c;
  --line: rgba(243, 241, 236, .16);
  --accent: #ffdd00; /* jaune travaux : la teinte exacte du mur des photos, à pleine intensité */
  --on-accent: #000;
  --gut: 16px;
  --tick: 30px;
  --bar: 76px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 15px/1.5 "Archivo", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
}
img { display: block; width: 100%; height: auto; }
figure, h1, h2, p, dl, dd { margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Deux voix seulement : l'étiquette en petites capitales espacées, et la phrase en grand, fine */
.label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; }
.mute { color: var(--mute); }
.say { font-size: clamp(30px, 9vw, 64px); font-weight: 400; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }

/* Bandeau défilant */
.ticker {
  height: var(--tick);
  background: var(--accent);
  color: var(--on-accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
}
.ticker-track { display: flex; align-items: center; flex: none; animation: slide 36s linear infinite; }
.ticker-track span { padding: 0 16px; }
.ticker-track i { width: 1px; height: 12px; background: currentColor; transform: skewX(-24deg); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* En-tête */
.head { display: flex; justify-content: center; padding: 16px var(--gut) 14px; }
.head-logo { width: 124px; }

/* Bouton son : coupé par défaut, ne joue qu'au clic */
.head { position: relative; align-items: center; }
.son {
  position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--mute);
  font: 600 10px/1 "Archivo", sans-serif; text-transform: uppercase; letter-spacing: .2em; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: color .2s, border-color .2s;
}
.son:hover { color: var(--white); border-color: rgba(243, 241, 236, .4); }
.son[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.son-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.son-eq i { width: 2px; height: 30%; background: currentColor; }
.son-eq i:nth-child(2) { height: 60%; } .son-eq i:nth-child(3) { height: 45%; } .son-eq i:nth-child(4) { height: 75%; }
.son[aria-pressed="true"] .son-eq i { animation: eq .82s ease-in-out infinite alternate; }
.son[aria-pressed="true"] .son-eq i:nth-child(2) { animation-duration: .41s; }
.son[aria-pressed="true"] .son-eq i:nth-child(3) { animation-duration: .62s; animation-delay: -.2s; }
.son[aria-pressed="true"] .son-eq i:nth-child(4) { animation-duration: .51s; animation-delay: -.33s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.son.wait .son-eq { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .son[aria-pressed="true"] .son-eq i { animation: none; } }

/* Produit */
.gal-wrap { position: relative; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gal::-webkit-scrollbar { display: none; }
.gal figure { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 4; overflow: hidden; background: #2b2c2b; }
.gal img { height: 100%; object-fit: cover; }
.gal-hint, .gal-count { pointer-events: none; }
.gal-hint {
  position: absolute; left: var(--gut); bottom: 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; opacity: .75;
}
.gal-count {
  position: absolute; right: var(--gut); bottom: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; font-variant-numeric: tabular-nums;
}

.buy { padding: 26px var(--gut) 0; }
.buy-title { margin-top: 10px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.buy-price { margin-top: 20px; font-size: 22px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.buy-price small { font-size: 12px; font-weight: 400; color: var(--mute); margin-left: 6px; }
.buy-note { margin-top: 10px; max-width: 34em; color: var(--accent); }
.buy-gift { margin-top: 16px; display: flex; gap: 12px; align-items: baseline; max-width: 34em; padding: 10px 14px; border: 1px solid var(--accent); font-size: 14px; line-height: 1.4; }
.buy-gift[hidden] { display: none; }
.buy-gift b { flex: none; color: var(--accent); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; }

.buy-box { margin-top: 20px; }
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 20px;
  background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em;
  text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s;
}
a.btn[href]:hover { background: var(--white); color: #000; }
.btn:not([href]) { background: #1a1a1a; color: var(--mute); cursor: default; }
.buy-pay { margin-top: 10px; font-size: 13px; color: var(--mute); }

.specs { margin-top: 28px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--mute); padding-top: 3px; }

/* Les filles : une grande image, puis deux paires décalées */
.looks { padding-top: 56px; }
.looks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.looks-grid figure { overflow: hidden; aspect-ratio: 9 / 16; background: #101010; }
.looks-grid figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.looks-grid figure:first-child img { object-position: 50% 22%; }
.looks-grid figure:nth-child(odd):not(:first-child) { margin-top: 44px; }
.looks-grid img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }

/* Pied de page */
.foot { padding: 72px var(--gut) 36px; color: var(--mute); font-size: 13px; }
.foot-logo { width: 96px; margin-bottom: 16px; }
.foot p + p { margin-top: 4px; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Photo agrandie : un toucher l'ouvre en grande définition, un autre zoome dedans */
img[data-zoom] { cursor: zoom-in; }
.zoom { position: fixed; z-index: 20; inset: 0; background: #000; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.zoom[hidden] { display: none; }
.zoom img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.zoom.is-in img { width: 300%; height: auto; max-width: none; cursor: zoom-out; }
.zoom-close {
  position: fixed; top: 12px; right: 12px;
  padding: 12px 16px; border: 0; background: var(--white); color: #000;
  font: 700 11px/1 "Archivo", sans-serif; text-transform: uppercase; letter-spacing: .22em; cursor: pointer;
}

/* Bouton d'achat flottant */
.bar {
  position: fixed; z-index: 5; inset: auto 0 0;
  padding: 0 var(--gut) calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.bar-btn {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 20px;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.bar-btn span:last-child { letter-spacing: .06em; font-size: 13px; font-variant-numeric: tabular-nums; }
.bar.is-away { transform: translateY(120%); opacity: 0; }
.bar[hidden] { display: none; }

@media (hover: hover) {
  .looks-grid figure:hover img { transform: scale(1.03); }
}

@media (min-width: 960px) {
  :root { --gut: 32px; }
  body { padding-bottom: 0; }
  .head { justify-content: flex-start; padding-top: 22px; padding-bottom: 20px; }
  .head-logo { width: 140px; }

  .pdp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); align-items: start; }
  .gal { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; overflow: visible; }
  .gal-count, .gal-hint { display: none; }
  .zoom.is-in img { width: 220%; }
  .buy { position: sticky; top: 0; padding: 36px var(--gut) 40px 48px; max-width: 560px; }
  .buy-title { font-size: 34px; }

  .looks { padding-top: 64px; }
  .looks-grid { grid-template-columns: repeat(4, 1fr); }
  .looks-grid figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .looks-grid figure:first-child img { object-position: 50% 50%; }
  .looks-grid figure:nth-child(odd):not(:first-child) { margin-top: 0; }

  .foot { padding-top: 120px; }
  .bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  * { transition: none !important; }
}

/* Disposition 2 : les photos en une seule bande, entières, qu'on fait défiler au doigt */
.looks-grid {
  display: flex; gap: 3px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 0 var(--gut); scroll-padding: 0 var(--gut);
}
.looks-grid::-webkit-scrollbar { display: none; }
.looks-grid figure, .looks-grid figure:first-child {
  flex: 0 0 78%; aspect-ratio: 9 / 16; scroll-snap-align: start; margin-top: 0 !important;
}
.looks-grid figure:first-child img { object-position: 50% 50%; }
.looks-count {
  display: flex; justify-content: space-between; padding: 12px var(--gut) 0;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.looks-count b { color: var(--white); font-weight: 600; }

@media (min-width: 960px) {
  .looks-grid { padding: 0; overflow: visible; }
  .looks-grid figure, .looks-grid figure:first-child { flex: 1 1 0; }
  .looks-count { display: none; }
}

/* Plus de cinq photos : sur grand écran, quatre par rangée */
@media (min-width: 960px) {
  .looks-grid { flex-wrap: wrap; }
  .looks-grid figure, .looks-grid figure:first-child { flex: 0 0 calc((100% - 9px) / 4); }
}

/* ---------- Intro : le logo s'ouvre comme un éventail (une fois par visite, toucher pour passer) ---------- */
@property --fan { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.intro { position: fixed; inset: 0; z-index: 1000; background: var(--black); display: grid; place-items: center; cursor: pointer;
  animation: intro-out 2.5s linear forwards; }
.intro-stage { position: relative; width: min(72vw, 440px); aspect-ratio: 640 / 296; }
.intro-logo { position: absolute; inset: 0; background: url("assets/logo.png") center / contain no-repeat;
  -webkit-mask: conic-gradient(from -90deg at 50% 100%, #000 var(--fan), transparent 0); mask: conic-gradient(from -90deg at 50% 100%, #000 var(--fan), transparent 0);
  animation: intro-open 1.1s cubic-bezier(.7, 0, .2, 1) .25s forwards; }
.intro-fan { position: absolute; left: 50%; bottom: 0; width: 108%; aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 999px 999px 0 0;
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(255, 221, 0, .55) 0 .5deg, transparent .5deg 11.25deg);
  -webkit-mask: conic-gradient(from -90deg at 50% 100%, #000 var(--fan), transparent 0); mask: conic-gradient(from -90deg at 50% 100%, #000 var(--fan), transparent 0);
  animation: intro-open 1.1s cubic-bezier(.7, 0, .2, 1) .25s forwards, intro-fade .6s ease 1.45s forwards; }
.intro-rivet { position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent);
  opacity: 0; animation: intro-in .2s ease forwards, intro-fade .6s ease 1.45s forwards; }
@keyframes intro-open { from { --fan: 0deg; } to { --fan: 180deg; } }
@keyframes intro-fade { to { opacity: 0; } }
@keyframes intro-in { to { opacity: 1; } }
@keyframes intro-out { 0%, 82% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .intro { animation-duration: 1.2s; }
  .intro-logo { -webkit-mask: none; mask: none; animation: none; }
  .intro-fan, .intro-rivet { display: none; }
}
