/* Snaky — site 2026. Mobile d'abord. Aucune dépendance.
   Polices : substituts libres (OFL) de la charte en attendant les fichiers
   Cafery → Rammetto One (titres) ; Fieldwork → Outfit (texte). */

@font-face {
  font-family: "Snaky Display";
  src: url("/fonts/rammetto-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Snaky Text";
  src: url("/fonts/outfit-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #be1823;
  --red-d: #7f000b;
  --yellow: #faaa1f;
  --ink: #212121;
  --cream: #f8f0dc;
  --cream-d: #efe2c2;
  --white: #fff;
  --muted: #6b6259;
  --f-display: "Snaky Display", "Arial Black", system-ui, sans-serif;
  --f-text: "Snaky Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(60, 20, 0, 0.28), 0 2px 6px rgba(60, 20, 0, 0.06);
  --hdr-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 0.8em; }
h1, h2, h3 { margin: 0; }

.sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 800;
}
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* ---------- Typo ---------- */
.h1, .h2, .hero-year, .door-h, .stat-num, .band-h {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h1 { font-size: clamp(32px, 8.6vw, 62px); line-height: 1.06; margin-bottom: 18px; }
.h2 { font-size: clamp(26px, 6.6vw, 46px); line-height: 1.08; margin-bottom: 14px; }
.h3 { font-family: var(--f-text); font-weight: 800; font-size: 21px; line-height: 1.2; margin-bottom: 8px; }
.h1 em, .h2 em { font-style: normal; color: var(--yellow); }
.lead { font-size: 18px; line-height: 1.5; max-width: 60ch; }
.on-red, .on-dark { color: var(--white); }
.kicker {
  display: inline-block; margin-bottom: 10px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
.kicker-yellow { color: var(--yellow); }
.kicker-dark { color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.pill-dark { background: var(--ink); color: var(--white); }
.flag { width: 1.5em; height: 1em; border-radius: 2px; flex: none; }
.sec-head { margin-bottom: 28px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 0;
  font-family: var(--f-text); font-weight: 800; font-size: 16px; line-height: 1.15; text-decoration: none; text-align: center;
  cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s;
}
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); }
.btn-big { width: 100%; min-height: 58px; font-size: 18px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 2px var(--white); }
}

/* ---------- Sections / fonds ---------- */
.sec { position: relative; overflow: hidden; padding: 64px 0; }
.sec-red { background: var(--red); color: var(--white); position: relative; overflow: hidden; }
.sec-cream { background: var(--cream); }
.sec-yellow { background: var(--yellow); color: var(--ink); }
.sec-dark { background: var(--ink); color: var(--white); }

/* Mots géants de fond qui défilent */
.bgwords {
  position: absolute; inset: -10% -20%; z-index: 0; pointer-events: none; user-select: none;
  display: flex; flex-direction: column; justify-content: center;
  transform: rotate(-7deg);
  font-family: var(--f-text); font-weight: 900; text-transform: uppercase;
  font-size: clamp(76px, 21vw, 230px); line-height: 0.88; letter-spacing: -0.02em;
}
.bgw-row { white-space: nowrap; }
.bgw-track { display: inline-flex; animation: bgw 70s linear infinite; will-change: transform; }
.bgw-row.rev .bgw-track { animation-direction: reverse; animation-duration: 85s; }
.bgw-track span { padding-right: 0.28em; }
@keyframes bgw { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bgw-red { color: rgba(127, 0, 11, 0.34); }
.bgw-red .o { color: transparent; -webkit-text-stroke: 2px rgba(127, 0, 11, 0.42); }
.bgw-cream { color: rgba(190, 150, 70, 0.1); }
.bgw-cream .o { color: transparent; -webkit-text-stroke: 2px rgba(190, 150, 70, 0.16); }
.bgw-yellow { color: rgba(255, 255, 255, 0.2); }
.bgw-yellow .o { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.34); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: var(--red); color: var(--white);
  box-shadow: 0 1px 0 rgba(127, 0, 11, 0.6);
}
.hdr-in {
  display: flex; align-items: center; gap: 10px;
  max-width: 1200px; height: var(--hdr-h); margin: 0 auto; padding: 0 12px 0 16px;
}
.hdr-logo { flex: none; margin-right: auto; }
.hdr-logo img { width: 78px; height: auto; margin: 6px 0 -18px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25)); transition: transform 0.25s var(--ease); }
@media (hover: hover) { .hdr-logo:hover img { transform: rotate(-6deg) scale(1.05); } }
.hdr-nav { display: none; }
.hdr-nav a {
  text-decoration: none; font-weight: 800; font-size: 16px; padding: 8px 14px; border-radius: 999px;
}
.hdr-nav a[aria-current="page"] { background: var(--ink); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--red-d); text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: 0.06em;
}
.lang-switch span { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 999px; }
.lang-cur { background: var(--yellow); color: var(--ink); }
.lang-other { color: var(--white); }
@media (hover: hover) { .lang-switch:hover .lang-other { background: rgba(255, 255, 255, 0.16); } }
.hdr-burger {
  display: grid; align-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 12px;
  border: 0; border-radius: 999px; background: var(--ink); cursor: pointer;
}
.hdr-burger i { display: block; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.hdr-burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
.hdr-burger[aria-expanded="true"] i:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }
.hdr.open .hdr-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: var(--hdr-h); left: 0; right: 0;
  padding: 14px 16px 20px; background: var(--red-d);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}
.hdr.open .hdr-nav a { font-size: 20px; padding: 12px 16px; }
@media (min-width: 860px) {
  .hdr-nav { display: flex; gap: 4px; margin-right: 8px; }
  .hdr-burger { display: none; }
  .hdr-logo img { width: 92px; margin-bottom: -26px; }
  @media (hover: hover) { .hdr-nav a:hover { background: rgba(0, 0, 0, 0.18); } }
}

/* ---------- Hero accueil ---------- */
.hero { padding: 34px 0 26px; }
.hero-in { display: grid; gap: 8px; align-items: center; }
.hero-h1 { margin: 16px 0 14px; line-height: 0.92; }
.hero-cat {
  display: block; font-family: var(--f-text); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 13.4vw, 96px); letter-spacing: -0.015em; color: var(--white);
}
.hero-year {
  display: block; font-size: clamp(76px, 25vw, 176px); line-height: 0.95; color: var(--yellow);
  text-shadow: 0 6px 0 var(--red-d);
}
.hero-lead { font-size: 17.5px; max-width: 46ch; color: rgba(255, 255, 255, 0.94); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-pic { margin: 0 -14px; }
.hero-pic img { width: 100%; max-width: 680px; margin: 0 auto; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(0.6deg); } }
.pillbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 16px 0 0;
  padding: 11px 20px; border-radius: 999px; background: var(--ink);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
}
@media (min-width: 900px) {
  .hero { padding: 48px 0 36px; }
  .hero-in { grid-template-columns: 1fr 1.08fr; gap: 24px; }
  .hero-pic { margin: -20px -40px -30px 0; }
  .pillbar { justify-content: space-between; }
}

/* ---------- Portes ---------- */
.doors-sec { padding-top: 56px; }
.doors { display: grid; gap: 18px; margin-top: 22px; }
.door {
  position: relative; display: block; min-height: 330px; padding: 26px 22px; overflow: hidden;
  border-radius: 30px; text-decoration: none; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.door-pro { background: var(--ink); color: var(--white); }
.door-fun { background: var(--yellow); color: var(--ink); }
.door-splash {
  position: absolute; right: -60px; bottom: -40px; width: 270px; z-index: 0;
  transition: transform 0.5s var(--ease);
}
.door-img {
  position: absolute; right: -6px; bottom: -34px; height: 88%; width: auto; z-index: 1;
  transition: transform 0.45s var(--ease);
  transform-origin: bottom center;
}
.door-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 60%; min-height: 278px; }
.door-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.door-h { font-size: clamp(25px, 6.8vw, 42px); line-height: 1.04; }
.door-pro .door-h { color: var(--yellow); }
.door-fun .door-h { color: var(--red); }
.door-txt { font-size: 16px; line-height: 1.45; }
.door .btn { margin-top: auto; }
@media (hover: hover) {
  .door:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 24px 40px -18px rgba(60, 20, 0, 0.45); }
  .door:hover .door-img { transform: rotate(-5deg) scale(1.06); }
  .door:hover .door-splash { transform: scale(1.18) rotate(18deg); }
}
@media (min-width: 760px) {
  .doors { grid-template-columns: 1fr 1fr; gap: 24px; }
  .door { min-height: 400px; padding: 34px 32px; }
  .door-body { min-height: 332px; max-width: 58%; }
  .door-splash { width: 360px; }
}

/* ---------- Cartes génériques ---------- */
.card { background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Chiffres ---------- */
.stats-top { display: grid; gap: 14px; margin-bottom: 26px; }
.stat { padding: 20px 20px 16px; }
.stat-num { display: flex; align-items: baseline; flex-wrap: wrap; margin: 0 0 4px; color: var(--red); font-size: clamp(38px, 10vw, 56px); line-height: 1; }
.stat-unit { font-size: 0.5em; margin-left: 0.08em; }
.stat-txt { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 500; }
.stat-big .stat-num { font-size: clamp(48px, 14vw, 76px); }
.stat-big .stat-txt { font-size: 16.5px; }
.stat-yellow { background: var(--ink); color: var(--white); }
.stat-yellow .stat-num { color: var(--yellow); }
.stats-regions { display: grid; gap: 26px; }
.region-name {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px;
}
.crest { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 3px 0 rgba(127, 0, 11, 0.6)); }
.region-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.region-cards .stat-num { font-size: clamp(32px, 9vw, 46px); }
.region-cards .stat-txt { font-size: 14px; }
@media (min-width: 760px) {
  .stats-top { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stats-regions { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- Aperçu gamme ---------- */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cats > li { display: flex; }
.cats > li > a { flex: 1; }
.cat {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 10px 12px 14px;
  text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.cat-pic { aspect-ratio: 1; margin-bottom: 6px; }
.cat-num { font-weight: 800; font-size: 12px; letter-spacing: 0.12em; color: var(--red); }
.cat-name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.cat-count { margin-top: 4px; font-size: 13px; color: var(--muted); }
.cat-all {
  justify-content: center; align-items: flex-start; gap: 6px; padding: 18px;
  border-radius: var(--radius); background: var(--red); color: var(--white); box-shadow: var(--shadow);
}
.cat-all-num { font-family: var(--f-display); font-size: 58px; line-height: 1; color: var(--yellow); }
.cat-all .cat-name { font-size: 18px; }
.cat-arrow { font-size: 26px; font-weight: 800; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* Splash qui éclabousse au survol : il jaillit de derrière la carte (les packshots sont sur fond blanc) */
.splash-host { position: relative; z-index: 0; }
.splash-host > .splash {
  position: absolute; left: 50%; top: 42%; width: 136%; max-width: none; z-index: -1; pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3) rotate(-30deg); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.2s;
}
.cat-pic, .pcard-pic { position: relative; display: block; }
.prod { width: 100%; height: 100%; object-fit: contain; transition: transform 0.35s var(--ease); }
@media (hover: hover) {
  .splash-host:hover > .splash { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(8deg); }
  .splashy:hover, .pcard:hover { transform: translateY(-4px) rotate(-0.8deg); box-shadow: 0 22px 36px -18px rgba(60, 20, 0, 0.4); }
  .splashy:hover .prod, .pcard:hover .prod { transform: scale(1.06) rotate(-2deg); }
  .cat-all:hover { transform: translateY(-4px) rotate(-1deg); }
}
.splash-host.splat > .splash { animation: splat 0.9s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes splat {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-30deg); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(8deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1) rotate(12deg); }
}

/* ---------- Ce que commandent vos clients ---------- */
.orders { display: grid; gap: 18px; }
.order { padding: 20px 20px 10px; background: var(--cream); }
.order-pic { width: 100%; height: 170px; object-fit: contain; margin: -6px auto 6px; }
.bars { list-style: none; margin: 10px 0 0; padding: 0; }
.bar { margin-bottom: 14px; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 5px; }
.bar-name { font-weight: 800; font-size: 17px; }
.bar-val { font-family: var(--f-display); color: var(--red); font-size: 20px; }
.bar-track { height: 14px; border-radius: 999px; background: var(--cream-d); overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), #f2901a);
  transition: width 1.3s var(--ease);
}
.in .bar-fill { width: var(--v, 0); }
.bar:nth-child(2) .bar-fill { transition-delay: 0.12s; }
.bar:nth-child(3) .bar-fill { transition-delay: 0.24s; }
.bar:nth-child(4) .bar-fill { transition-delay: 0.36s; }
.orders-note { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
@media (min-width: 760px) { .orders { grid-template-columns: 1fr 1fr; gap: 24px; } .order { padding: 26px 30px 14px; } }

/* ---------- Teaser jeu ---------- */
.teaser-in { display: grid; gap: 10px; align-items: center; }
.teaser-pic { position: relative; width: min(300px, 80%); margin: 0 auto; }
.teaser-pic .splash { position: absolute; left: -6%; top: 14%; width: 112%; max-width: none; transform: rotate(-12deg); }
.teaser-mascot { position: relative; width: 70%; margin: 0 auto; animation: wave 3.4s ease-in-out infinite; transform-origin: bottom center; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-6px); } }
.teaser-txt { position: relative; z-index: 1; }
.teaser-txt .lead { font-weight: 500; }
.teaser-txt .h2 { color: var(--red); }
@media (min-width: 760px) { .teaser-in { grid-template-columns: 0.8fr 1fr; gap: 40px; } .teaser-pic { width: 100%; max-width: 360px; } }

/* ---------- Bandeau catalogue ---------- */
.band-sec { padding-top: 40px; }
.band {
  position: relative; display: grid; overflow: hidden; border-radius: 34px;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow);
}
.band-pic { width: 100%; max-width: 420px; margin: -10px auto -30px; }
.band-txt { position: relative; padding: 0 24px 30px; }
.band-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 6px; }
.band-h { font-size: clamp(28px, 7.6vw, 46px); line-height: 1.05; color: var(--yellow); margin-bottom: 12px; }
.band-p { max-width: 46ch; }
@media (min-width: 760px) {
  .band { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .band-pic { margin: 0 0 -60px -20px; max-width: none; }
  .band-txt { padding: 40px 44px 40px 10px; }
}

/* ---------- En-tête des pages internes ---------- */
.phero { padding: 40px 0 44px; }
.phero-in { display: grid; gap: 20px; align-items: center; }
.phero-pic { display: none; }
.phero-slim { padding: 36px 0 20px; }
.pro-intro2 { max-width: 60ch; opacity: 0.92; }
.phero .btn { margin-top: 10px; }
@media (min-width: 760px) {
  .phero { padding: 56px 0 60px; }
  .phero-in { grid-template-columns: 1.4fr 0.8fr; gap: 40px; }
  .phero-pic { display: block; width: 100%; max-width: 380px; justify-self: center; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.25)); }
  .phero-mascot { max-width: 250px; margin-bottom: -60px; }
}

/* ---------- Gamme : filtres ---------- */
.gamme-sec { padding-top: 28px; }
.filters { display: grid; gap: 14px; margin-bottom: 18px; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 56px;
  border-radius: 999px; background: var(--white); box-shadow: var(--shadow); border: 2px solid transparent;
}
.search:focus-within { border-color: var(--red); }
.search svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: 500 17px var(--f-text); color: var(--ink);
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; scroll-snap-align: start;
  min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--white); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.chip b { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--cream); font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.chip[aria-pressed="true"] b { background: var(--yellow); color: var(--ink); }
@media (hover: hover) { .chip:hover { transform: translateY(-2px); } }
.toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ink); }
.seg button {
  min-height: 38px; padding: 6px 13px; border: 0; border-radius: 999px; background: transparent;
  color: var(--white); font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #d8ccaf; transition: background-color 0.2s; }
.switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s var(--ease);
}
.switch input:checked + .switch-ui { background: #2e7d32; }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--yellow); outline-offset: 2px; }
.result-count { font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
@media (min-width: 760px) {
  .filters { grid-template-columns: 1fr; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}

/* ---------- Gamme : cartes produit ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* minmax(0, 1fr) + min-width: 0 : sans ça, Safari élargit les colonnes à la taille
   intrinsèque des photos (480 px) dès qu'elles ont chargé, et la gamme « grossit » seule. */
.grid > *, .cats > * { min-width: 0; }
.pcard {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.pcard-pic { aspect-ratio: 1; padding: 8px; background: var(--white); }
/* Photo sortie du flux : sa taille intrinsèque ne pèse plus sur la carte (Safari). */
.cat-pic .prod { position: absolute; inset: 0; }
.pcard-pic .prod { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.pcard-badges { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.badge {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white);
}
.b-surgele { background: #1c5db0; }
.b-frais { background: #2e7d32; }
.b-ambiant { background: var(--ink); }
.b-halal { background: #0f6b45; }
.b-xtra { background: var(--yellow); color: var(--ink); }
.pcard-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.pcard-name { font-weight: 800; font-size: 15.5px; line-height: 1.2; margin: 0; }
.pcard-fmt { font-size: 14px; color: var(--muted); margin: 0; }
.pcard-ref {
  margin: auto 0 0; padding-top: 8px; border-top: 1px solid #efe6d0;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.pcard-ref b { font-size: 13.5px; letter-spacing: 0.06em; color: var(--ink); }
.pcard.enter { animation: pop 0.4s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .pcard-name { font-size: 17px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.empty { text-align: center; padding: 20px 0 30px; }
.empty img { width: 150px; margin: 0 auto 10px; animation: wave 2.6s ease-in-out infinite; }

/* ---------- Avantages (pro) ---------- */
.advs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.adv { position: relative; padding: 22px 22px 16px 22px; }
.adv p { margin: 0; font-size: 16px; line-height: 1.5; color: #3a3530; }
.adv-n {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-family: var(--f-display); font-size: 19px;
}
.adv:nth-child(even) .adv-n { background: var(--red); color: var(--white); }
.adv-logo { display: grid; place-items: center; padding: 10px; }
.adv-logo img { width: 70%; max-width: 260px; animation: float 6s ease-in-out infinite; }
@media (min-width: 700px) { .advs { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1040px) { .advs { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Formulaires ---------- */
.form-sec { padding: 64px 0; }
.form-wrap { display: grid; gap: 24px; align-items: start; }
.cat-cover {
  position: relative; display: none; width: 280px; margin: 24px 0 0 10px; padding: 16px 16px 58px; border-radius: 18px;
  background: var(--red); transform: rotate(-4deg); box-shadow: 0 24px 40px -18px rgba(60, 20, 0, 0.55);
}
.cat-cover span {
  position: absolute; left: 16px; bottom: 16px; color: var(--white);
  font-weight: 900; text-transform: uppercase; font-size: 22px; letter-spacing: 0.01em;
}
.cat-cover b { font-family: var(--f-display); font-weight: 400; color: var(--yellow); font-size: 30px; }
@media (min-width: 900px) {
  .form-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
  .cat-cover { display: block; }
}
.lead-form { padding: 22px 18px 24px; }
.fld-grid { display: grid; gap: 14px; margin-bottom: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld-l { font-weight: 700; font-size: 15px; }
.fld-l abbr { color: var(--red); text-decoration: none; }
.fld-l small { font-weight: 500; color: var(--muted); font-size: 13px; }
.fld-hint { font-size: 13px; color: var(--muted); }
.fld input, .fld select {
  width: 100%; height: 52px; padding: 0 14px; border-radius: 14px; border: 2px solid #e4d9bf; background: #fffcf4;
  font: 500 16px var(--f-text); color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fld select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
.fld input:focus, .fld select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(250, 170, 31, 0.45); }
.fld [aria-invalid="true"] { border-color: var(--red); background: #fff0f0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 12px; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }
.form-legal { font-size: 13px; color: var(--muted); line-height: 1.45; }
.form-legal a { color: var(--red); font-weight: 700; }
.form-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff4d6; border-left: 5px solid var(--yellow); font-weight: 600; }
.form-msg.err { background: #ffe9e9; border-left-color: var(--red); }
.form-msg a { color: var(--red); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 560px) {
  .lead-form { padding: 30px 30px 32px; }
  .fld-grid { grid-template-columns: 1fr 1fr; }
  .fld-full { grid-column: 1 / -1; }
}

/* ---------- Partenaires ---------- */
.partners { display: grid; gap: 16px; align-items: center; }
.partners-pic { width: 130px; }
.contact-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (min-width: 760px) { .partners { grid-template-columns: 200px 1fr; gap: 40px; } .partners-pic { width: 100%; } }

/* ---------- Jeu ---------- */
.game-sec { padding: 34px 0 60px; }
.game-wrap { display: grid; gap: 20px; }
.game-intro .lead { font-size: 17px; }
.game-best { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--ink); font-weight: 700; }
.game-best b { color: var(--yellow); font-family: var(--f-display); font-weight: 400; }
.game-mascot { display: none; }
.game-frame { width: 100%; max-width: 520px; margin: 0 auto; }
#snaky-game {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 3 / 4; margin: 0 auto;
  border-radius: 26px; overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 6px var(--ink), 0 30px 50px -20px rgba(0, 0, 0, 0.55);
}
#snaky-game.game-missing { display: grid; place-items: center; padding: 30px; text-align: center; color: var(--white); font-weight: 700; font-size: 18px; }
.consumer-form { max-width: 520px; margin: 24px auto 0; color: var(--ink); }
.consumer-form:not([hidden]) { animation: pop 0.5s var(--ease) both; }
.consumer-score { margin: 0 0 6px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.consumer-score b { font-family: var(--f-display); font-weight: 400; font-size: 34px; color: var(--red); letter-spacing: 0; vertical-align: -4px; margin-left: 4px; }
.jeu-more { text-align: center; }
.jeu-more-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
@media (min-width: 900px) {
  .game-sec { padding: 56px 0 80px; }
  .game-wrap { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
  .game-intro { position: sticky; top: calc(var(--hdr-h) + 30px); }
  .game-mascot { display: block; width: 190px; margin-top: 16px; animation: wave 3.4s ease-in-out infinite; transform-origin: bottom center; }
}

/* ---------- Mentions légales ---------- */
.prose { max-width: 820px; padding: 26px 22px; }
.prose .h3 { margin-top: 26px; color: var(--red); }
.prose .h3:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.65; }
.prose a { color: var(--red); font-weight: 600; }
@media (min-width: 760px) { .prose { padding: 44px 50px; } }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: var(--white); padding-bottom: 90px; }
.ftr-flag { display: grid; grid-template-columns: repeat(3, 1fr); height: 8px; }
.ftr-flag i:nth-child(1) { background: #000; }
.ftr-flag i:nth-child(2) { background: var(--yellow); }
.ftr-flag i:nth-child(3) { background: var(--red); }
.ftr-in { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 24px; }
.ftr-brand img { width: 130px; margin-bottom: 10px; }
.ftr-brand p { max-width: 30ch; font-weight: 600; }
.ftr-h { font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.ftr-col p { line-height: 2; }
.ftr a { text-decoration: none; }
@media (hover: hover) { .ftr a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; } }
.ftr-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.ftr-bottom p { display: flex; align-items: center; gap: 10px; }
@media (min-width: 760px) { .ftr-in { grid-template-columns: 1.4fr 1fr 1fr; } .ftr { padding-bottom: 30px; } }

/* ---------- Mascotte compagnon ---------- */
.buddy {
  position: fixed; right: 10px; bottom: 10px; z-index: 30; width: 62px; pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}
.buddy-body { width: 100%; transform-origin: bottom center; animation: bob 4s ease-in-out infinite; transition: opacity 0.2s, transform 0.3s var(--ease); }
.buddy-face {
  position: absolute; left: -6%; bottom: 8%; width: 112%; opacity: 0;
  transform: scale(0.4) rotate(-20deg); transition: opacity 0.2s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.buddy.mood .buddy-body { opacity: 0; transform: scale(0.6); animation: none; }
.buddy.mood .buddy-face { opacity: 1; transform: none; }
.buddy-bubble {
  position: absolute; right: 88%; bottom: 72%; margin: 0; padding: 8px 12px; border-radius: 16px 16px 4px 16px;
  background: var(--white); color: var(--ink); font-weight: 800; font-size: 14px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); opacity: 0; transform: translateY(6px) scale(0.9);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.buddy.mood .buddy-bubble:not(:empty) { opacity: 1; transform: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-2deg); } }
@media (min-width: 760px) { .buddy { width: 86px; right: 18px; bottom: 16px; } }
@media (max-width: 899px) { .page-jeu .buddy { display: none; } }

/* ---------- Apparition à l'écran ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.05s !important; } .d2 { transition-delay: 0.1s !important; } .d3 { transition-delay: 0.15s !important; }
.d4 { transition-delay: 0.2s !important; } .d5 { transition-delay: 0.25s !important; } .d6 { transition-delay: 0.3s !important; }
.d7 { transition-delay: 0.35s !important; } .d8 { transition-delay: 0.4s !important; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bar-fill { width: var(--v, 0); }
}
