/* SocePiko — démo Atelier 23 (haut de page) */
:root {
  --red: #ff0000;
  --accent: #ff391e;
  --light: #f8f8f8;
  --logo: #e8e9ee;
  --paper: #dddee2;
  --ink: #0b0b0b;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* header : menu à gauche (3 entrées), logo à droite, plus gros */
:root { --pink: #e8157f; --yellow: #ffe600; }
.head {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 14px 0; color: var(--light); transition: color .4s ease;
}
.head.is-dark { color: var(--ink); }
.head__nav { display: flex; gap: 8px; align-items: baseline; font-size: 18.3px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.head__nav a { transition: opacity .3s; }
.head__nav a:hover { opacity: .6; }
.head__nav a.is-active { color: var(--accent); }
.head__nav a.is-active i { display: inline-block; width: 7px; height: 7px; margin: 0 6px 2px 0; border-radius: 50%; background: currentColor; }
.head__logo { position: relative; font-weight: 900; font-stretch: 125%; font-size: 30px; letter-spacing: -0.03em; line-height: 1; padding-right: 14px; }
.head__logo sup { position: absolute; right: 0; top: -2px; font-size: 10px; font-weight: 600; font-stretch: 100%; }
@media (max-width: 600px) { .head__nav { font-size: 12px; gap: 4px; } .head__nav a.is-active i { display: none; } .head__logo { font-size: 18px; padding-right: 10px; } .head__logo sup { font-size: 8px; } }
@media (max-width: 999px) { .studio__visuals { min-height: 118vw; } }

/* hero épinglé sur 2 écrans */
.hero { position: relative; height: 300vh; } /* 100vh d'envol + 100vh où la feuille des sauces glisse par-dessus la vidéo */
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* calque rouge + logo : deux éléments, même mouvement (JS) */
.hero__acetate, .hero__brand { transform-origin: 50% 100%; will-change: transform; }
.hero__acetate { position: absolute; inset: -14%; background: var(--red); mix-blend-mode: multiply; }
.hero__brand { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px 20px; }
.hero__logo {
  position: relative; margin: 0; display: block; color: var(--logo);
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .78; letter-spacing: -0.045em;
  font-size: 15vw; white-space: nowrap; text-align: center;
}
.hero__logo span { display: inline-block; }
.hero__logo sup { position: absolute; right: 0; top: -.95em; font-size: .22em; font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1; }

/* arrivée : le logo monte, lettre par lettre façon préchargement */
.hero__logo span { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.77,0,.18,1) .2s; }
.ready .hero__logo span { clip-path: inset(0 0 0 0); }
.hero__acetate { opacity: 0; transition: opacity .8s ease; }
.ready .hero__acetate { opacity: 1; }

/* STUDIO → LES SAUCES */
.studio { position: relative; z-index: 2; transform-origin: 0 0; will-change: transform; background: var(--light); padding: 18px 0 22vh; margin-top: -100vh; box-shadow: 0 -30px 80px rgba(0,0,0,.35); overflow: hidden; }
.studio__title { margin: 0 0 4vh; padding: 0 10px; font-size: clamp(5rem, 12.2vw, 11rem); font-weight: 400; letter-spacing: -0.065em; line-height: .86; }
.studio__grid { display: grid; grid-template-columns: 1fr; gap: 60px; }
@media (min-width: 1000px) { .studio__grid { grid-template-columns: 1fr 1.08fr; gap: 3vw; } }
.studio__visuals { position: relative; min-height: 120vw; }
@media (min-width: 1000px) { .studio__visuals { min-height: 62vw; } }
.studio__img { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.18); will-change: transform; }
.studio__img img { display: block; width: 100%; height: auto; }
.studio__img--1 { left: -4%; top: 6%; width: 52%; rotate: -6deg; z-index: 1; }
.studio__img--2 { left: 40%; top: 0; width: 46%; rotate: 5deg; z-index: 2; }

.label { margin: 0 0 18px; font-size: 13px; text-transform: uppercase; letter-spacing: .01em; }
.studio__text { padding: 0 10px; }
.studio__lead { margin: 0 0 12vh; max-width: 26ch; font-size: clamp(1.6rem, 2.75vw, 2.65rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 400; }
@media (min-width: 1300px) { .studio__lead { max-width: 30ch; } }
.studio__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.stores b { font-weight: 400; }
.studio__lists ul { list-style: none; margin: 0; padding: 0; font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.38; text-transform: uppercase; letter-spacing: -0.01em; }

/* boutiques : soulignées, la ville glisse au survol */
.stores a { display: inline-flex; gap: 10px; align-items: baseline; border-bottom: 1px solid currentColor; transition: color .25s; }
.stores a span { font-size: .62em; letter-spacing: .06em; opacity: .55; transition: opacity .25s; }
.stores a:hover { color: var(--pink); }
.stores a:hover span { opacity: 1; }

/* la gamme : chaque sauce s'allume comme un autocollant au survol */
.range li { display: table; padding: 0 4px; margin-left: -4px; transition: background-color .2s, color .2s, transform .2s; cursor: default; }
.range li:nth-child(3n+1):hover { background: var(--yellow); color: var(--pink); transform: rotate(-2deg); }
.range li:nth-child(3n+2):hover { background: var(--pink); color: var(--yellow); transform: rotate(1.5deg); }
.range li:nth-child(3n):hover { background: var(--red); color: var(--light); transform: rotate(-1deg); }

/* éventail : pivot sur le coin haut du côté d'où le bloc arrive */
[data-fan] { will-change: transform; }
[data-fan="left"] { transform-origin: 0 0; }
[data-fan="right"] { transform-origin: 100% 0; }
html, body { overflow-x: clip; }

/* LA CARTE (feed) */
.feed { position: relative; z-index: 2; background: var(--light); color: var(--ink); padding: 0 7px 18vh; }
.feed__head { padding: 0 3px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.feed__title { display: flex; justify-content: space-between; align-items: flex-end; margin: 0; font-size: clamp(4.5rem, 12vw, 11.5rem); font-weight: 400; letter-spacing: -0.065em; line-height: .86; padding-bottom: 10px; }
.feed__arrow { font-weight: 300; letter-spacing: 0; }
.feed__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vh 6px; }
.feed__media { position: relative; overflow: hidden; aspect-ratio: 710 / 453; background: #cfd0d4; }
.feed__media video, .feed__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.feed__bottle { position: absolute; left: 50%; top: 14%; height: 76%; width: auto; translate: -50% 0; filter: drop-shadow(0 26px 26px rgba(0,0,0,.35)); will-change: transform; transition: scale .6s cubic-bezier(.2,.7,.2,1); }
.feed__item:hover .feed__media video, .feed__item:hover .feed__bg { transform: scale(1.05); }
.feed__item:hover .feed__bottle { scale: 1.06; }
.feed__meta { display: flex; gap: 8px; align-items: center; margin: 12px 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.feed__hot { display: inline-flex; gap: 3px; align-items: center; }
.feed__hot i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.feed__hot i:first-of-type { margin-left: 5px; }
.feed__hot i.on { background: var(--accent); border-color: var(--accent); }
.feed__name { margin: 0 0 10px; font-size: clamp(2.4rem, 4.6vw, 4.6rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.045em; line-height: .86; text-transform: uppercase; max-width: 12ch; }
.feed__taste { margin: 0 0 10px; max-width: 30ch; font-size: clamp(1.1rem, 1.55vw, 1.55rem); line-height: 1.18; letter-spacing: -0.015em; }
.feed__ing { margin: 0; max-width: 46ch; font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .03em; opacity: .55; }
@media (max-width: 760px) { .feed__grid { grid-template-columns: 1fr; } }

/* FOOTER */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot { position: relative; color: var(--light); }
/* la feuille blanche : fin de page, bord bas penché, passe DEVANT le rouge */
.foot__band { position: relative; z-index: 2; background: var(--light); color: var(--ink); padding: 4vh 0 15vw; margin-bottom: -15vw;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 9vw)); }
.foot__mark { margin: 0; padding: 0 10px; width: 100%; box-sizing: border-box; font-weight: 900; font-stretch: 125%; letter-spacing: -0.04em; line-height: .8; white-space: nowrap; rotate: 4deg; transform-origin: 0 100%; }
.foot__mark span { display: inline-block; }
/* zone rouge épinglée en bas : la feuille blanche la découvre en remontant */
.foot__red { position: sticky; bottom: 0; z-index: 1; padding: 17vw 12px 16px; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.foot__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.25); }
.foot__acetate { position: absolute; inset: 0; z-index: -1; background: var(--accent); mix-blend-mode: multiply; }
.foot__red::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,57,30,.85) 0%, rgba(255,57,30,.25) 40%, rgba(255,57,30,.25) 60%, rgba(255,57,30,.8) 100%); }
.foot .label { color: var(--light); font-size: clamp(13px, 1.1vw, 17px); }
.foot__grid { display: grid; grid-template-columns: 1.9fr 1.25fr .85fr .8fr; gap: 24px; }
.foot__xl { margin: 0; font-size: clamp(1.6rem, 2.75vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; }
.foot__md { margin: 0; font-size: clamp(1.1rem, 1.75vw, 1.85rem); line-height: 1.22; letter-spacing: -0.01em; }
.foot a { transition: color .2s; }
.foot__red a:hover { color: var(--yellow); }
.foot__bottom { margin-top: auto; padding-top: 14vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.foot__news { position: relative; display: flex; align-items: center; width: min(36vw, 640px); min-width: 280px; border-bottom: 2px solid var(--light); }
.foot__news input { flex: 1; min-width: 0; padding: 0 0 6px; border: 0; background: none; color: var(--light); font: inherit; font-size: clamp(3rem, 6vw, 6.2rem); letter-spacing: -0.04em; line-height: 1; outline: none; }
.foot__news input::placeholder { color: var(--light); opacity: 1; }
.foot__news input:focus::placeholder { opacity: .35; }
.foot__news button { border: 0; background: none; color: var(--light); font: inherit; font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: 1; cursor: pointer; transition: transform .3s, color .2s; }
.foot__news button:hover { transform: translateX(8px); color: var(--yellow); }
.foot__thanks { position: absolute; left: 0; top: 100%; margin-top: 8px; font-size: 14px; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.foot__news.is-sent .foot__thanks { opacity: 1; }
.foot__copy { margin: 0; font-size: clamp(1rem, 1.6vw, 1.75rem); text-transform: uppercase; letter-spacing: -0.01em; }
@media (max-width: 900px) {
  .foot__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .foot__reach { grid-column: 1 / -1; }
  .foot__news { width: 100%; }
}


@media (max-width: 760px) {
  .hero__brand { padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo span, .hero__acetate { transition: none; clip-path: none; opacity: 1; }
}
