/* Swippez · swippez.com · Design system « Sorbet tampon » (voir 07_DESIGN) */

@font-face { font-family: "Nunito"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/nunito-500.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-800.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/nunito-900.woff2") format("woff2"); }

:root {
  --bg: #F6F3F9;
  --surface: #FFFFFF;
  --fill: #ECE8F0;
  --line: #DCD6E2;
  --text: #2B2633;
  --text-2: #5C5666;
  --text-3: #736D7D;
  --tint: #7B5CC4;
  --delete: #FF4757; --delete-text: #C81E30; --delete-soft: #FFE1E4;
  --keep: #2EC4A0;   --keep-text: #0F7058;   --keep-soft: #CFF3E2;
  --fav: #FFC93C;    --fav-text: #7A5B00;    --fav-soft: #FFF1B8;
  --peach: #FFDCCF; --lilac: #E7DEFA; --mint: #CFF3E2;
  --shadow-card: 0 30px 60px -20px rgba(43, 38, 51, .28), 0 8px 18px -8px rgba(43, 38, 51, .18);
  --shadow-soft: 0 10px 30px -12px rgba(43, 38, 51, .22);
  --radius-card: 32px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 8px; }

/* Langue : les deux versions sont dans la page, on masque celle qui n'est pas active */
html[data-lang="en"] .fr, html[data-lang="fr"] .en { display: none !important; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 14px; border-radius: 999px; }

/* ---------- En-tête ---------- */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 22px 24px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-weight: 900; font-size: 26px; letter-spacing: -.02em; }
.lang {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-soft);
}
.lang button {
  font: inherit; font-weight: 800; font-size: 13px; letter-spacing: .06em;
  border: 0; cursor: pointer; padding: 7px 12px; border-radius: 999px;
  background: transparent; color: var(--text-3);
}
html[data-lang="fr"] .lang [data-set="fr"], html[data-lang="en"] .lang [data-set="en"] { background: var(--text); color: var(--bg); }

/* ---------- Hero (page d'accueil) ---------- */
.home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; pointer-events: none; z-index: 0; }
.blob.b1 { width: 520px; height: 520px; background: var(--peach); top: -160px; left: -140px; }
.blob.b2 { width: 560px; height: 560px; background: var(--lilac); bottom: -220px; right: -120px; }
.blob.b3 { width: 360px; height: 360px; background: var(--mint); top: 30%; right: 32%; opacity: .5; }

.hero {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 24px 12px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); box-shadow: var(--shadow-soft);
  padding: 8px 16px 8px 10px; border-radius: 999px;
  font-weight: 800; font-size: 14px; color: var(--text-2);
}
.eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--keep); box-shadow: 0 0 0 4px var(--keep-soft); }
h1 {
  margin: 22px 0 18px;
  font-weight: 900; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.02; letter-spacing: -.035em;
}
h1 em { font-style: normal; color: var(--tint); }
.lead { margin: 0 0 30px; font-size: clamp(17px, 1.6vw, 21px); color: var(--text-2); max-width: 30em; }
.lead strong { color: var(--text); font-weight: 800; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .2s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 56px; width: auto; }
.badge-fallback { display: none; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; }
.badge-fallback svg { width: 26px; height: 26px; }
.badge-fallback small { display: block; font-size: 11px; font-weight: 700; line-height: 1; opacity: .9; }
.badge-fallback b { display: block; font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.badge.nobadge img { display: none !important; }
.badge.nobadge .badge-fallback { display: inline-flex; }
.free { font-weight: 700; font-size: 15px; color: var(--text-3); }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--surface); font-weight: 800; font-size: 14px; box-shadow: var(--shadow-soft);
}
.trust svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; }
.trust .t1 svg { background: var(--keep-soft); color: var(--keep-text); }
.trust .t2 svg { background: var(--fav-soft); color: var(--fav-text); }
.trust .t3 svg { background: var(--lilac); color: var(--tint); }

/* ---------- Pile de cartes ---------- */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.deck {
  --cw: min(330px, 62vw);
  position: relative; width: var(--cw); aspect-ratio: 354 / 500;
  user-select: none; -webkit-user-select: none;
}
.deck::before, .deck::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); z-index: 0;
}
.deck::before { background: var(--mint); transform: rotate(-7deg) translate(-14px, 10px); }
.deck::after { background: var(--lilac); transform: rotate(6deg) translate(16px, 12px); }
.card {
  position: absolute; inset: 0; z-index: 1;
  border-radius: var(--radius-card); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-card);
  transform-origin: 50% 85%;
  will-change: transform;
}
.card .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .ring {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 6px var(--ring, transparent); opacity: var(--ringo, 0);
}
.pill {
  position: absolute; left: 16px;
  font-weight: 800; font-size: 12px; color: #2B2633;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: 999px;
}
.pill.date { top: 16px; }
.pill.size { bottom: 16px; }
.stamp {
  position: absolute; z-index: 3; pointer-events: none;
  font-weight: 900; font-size: clamp(20px, 2.1vw, 28px); letter-spacing: .06em; text-transform: uppercase;
  color: #2B2633; padding: 4px 16px; border-radius: 14px; border: 5px solid;
  opacity: 0; transform: scale(.5) rotate(var(--r));
}
.stamp.s-del  { top: 22px; right: 22px; --r: 10deg;  background: #FFE1E4; border-color: var(--delete); }
.stamp.s-keep { top: 22px; left: 22px;  --r: -10deg; background: #CFF3E2; border-color: var(--keep); }
.stamp.s-fav  { bottom: 22px; left: 50%; --r: -4deg; background: #FFF1B8; border-color: var(--fav); translate: -50% 0; }

.gestures { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.g {
  display: grid; place-items: center; border: 0; cursor: pointer; border-radius: 50%;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.g svg { width: 24px; height: 24px; }
.g.big { width: 64px; height: 64px; }
.g.small { width: 52px; height: 52px; }
.g.del { background: var(--delete-soft); color: var(--delete-text); }
.g.fav { background: var(--fav-soft); color: var(--fav-text); }
.g.alb { background: var(--lilac); color: var(--tint); }
.g.keep { background: var(--keep-soft); color: var(--keep-text); }
.g:hover { transform: scale(1.06); }
.g.on.del { background: var(--delete); color: #fff; transform: scale(1.1); }
.g.on.keep { background: var(--keep); color: #fff; transform: scale(1.1); }
.g.on.fav { background: var(--fav); color: #2B2633; transform: scale(1.1); }
.g.on.alb { background: var(--tint); color: #fff; transform: scale(1.1); }
.hint { margin: -12px 0 0; font-size: 13px; font-weight: 700; color: var(--text-3); }

/* ---------- Pied de page ---------- */
.foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px;
  padding: 14px 24px 22px; font-size: 14px; font-weight: 700; color: var(--text-3);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Pages légales ---------- */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 24px 24px 40px; }
.legal-wrap .back { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; color: var(--tint); text-decoration: none; margin: 18px 0 8px; }
.legal-wrap h1 { font-size: clamp(36px, 6vw, 54px); margin: 10px 0 6px; }
.updated { color: var(--text-3); font-weight: 700; margin: 0 0 26px; }
.summary {
  background: var(--surface); border-radius: 24px; padding: 20px 24px; margin: 0 0 30px;
  box-shadow: var(--shadow-soft); border-left: 6px solid var(--keep);
}
.summary p { margin: 0; color: var(--text); font-weight: 700; }
.legal-wrap h2 { font-size: 22px; font-weight: 900; letter-spacing: -.01em; margin: 34px 0 10px; }
.legal-wrap p, .legal-wrap li { color: var(--text-2); font-size: 17px; }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap li { margin: 6px 0; }
.legal-wrap strong { color: var(--text); }
.legal-wrap a { color: var(--tint); font-weight: 700; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .topbar { padding-top: 14px; }
  .brand img { width: 34px; height: 34px; } .brand span { font-size: 23px; }
  .hero { grid-template-columns: 1fr; text-align: center; gap: 0; padding-top: 8px; }
  .copy { display: flex; flex-direction: column; align-items: center; }
  .eyebrow { font-size: 13px; padding: 6px 12px 6px 8px; }
  h1 { margin: 12px 0 10px; }
  .lead { margin-bottom: 18px; font-size: 16px; }
  .lead .long { display: none; }
  .cta { justify-content: center; }
  .free { display: none; }
  .copy .trust { display: none; }
  .stage { order: 2; gap: 16px; margin-top: 22px; }
  .deck { --cw: min(206px, 54vw); }
  .m-only { display: flex !important; }
  .trust { justify-content: center; margin-top: 18px; gap: 6px; }
  .trust li { font-size: 12px; padding: 5px 10px 5px 5px; gap: 6px; }
  .trust svg { width: 22px; height: 22px; padding: 4px; }
  .g.big { width: 54px; height: 54px; } .g.small { width: 44px; height: 44px; }
  .stamp { font-size: 17px; border-width: 4px; padding: 2px 10px; border-radius: 10px; }
  .pill { font-size: 10px; left: 12px; }
  .pill.date { top: 12px; } .pill.size { bottom: 12px; }
  .hint { display: none; }
}
@media (min-width: 901px) { .m-only { display: none !important; } }
@media (max-width: 900px) and (max-height: 760px) {
  .deck { --cw: min(170px, 46vw); }
  .eyebrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
