/* MyRelance — style iOS simple */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #8e8e93;
  --line: #e5e5ea;
  --blue: #007aff;
  --green: #34c759;
  --red: #ff3b30;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 999px; padding: 12px 22px;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  background: var(--blue); color: #fff; transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:hover { opacity: .9; }
.btn-light { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(0,122,255,.1); color: var(--blue); }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* Barre de navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(242,242,247,.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; font-size: 19px; color: var(--text); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.pill {
  display: inline-block; background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Téléphone */
.phone {
  width: 280px; margin: 52px auto 0; background: #fff; border-radius: 40px;
  padding: 18px 14px 24px; box-shadow: 0 30px 60px rgba(0,0,0,.12); border: 8px solid #1c1c1e;
}
.phone-notch { width: 90px; height: 22px; background: #1c1c1e; border-radius: 0 0 14px 14px; margin: -18px auto 14px; }
.phone-head { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.bubble {
  max-width: 85%; padding: 9px 13px; border-radius: 18px; font-size: 14px; margin-bottom: 8px; text-align: left;
}
.bubble.in { background: #e9e9eb; border-bottom-left-radius: 5px; }
.bubble.out { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
#preview { white-space: pre-line; }

/* Sections */
section { padding: 56px 0; }
.section-title { text-align: center; font-size: 30px; letter-spacing: -.01em; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .emoji { font-size: 34px; margin-bottom: 10px; display: block; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}

.price { font-size: 38px; font-weight: 700; margin: 8px 0; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.card ul { list-style: none; margin: 14px 0 20px; }
.card li { padding: 5px 0; font-size: 15px; }
.card.featured { border: 2px solid var(--blue); }

.cta { text-align: center; background: var(--blue); color: #fff; border-radius: 28px; padding: 48px 24px; }
.cta h2 { font-size: 28px; margin-bottom: 8px; }
.cta p { opacity: .85; margin-bottom: 22px; }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 32px 0 48px; }

/* Formulaires */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,122,255,.15); }
textarea { resize: vertical; min-height: 110px; }

/* Connexion */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 380px; text-align: center; }
.auth h1 { font-size: 26px; margin: 8px 0 4px; }
.auth .sub { color: var(--muted); margin-bottom: 24px; }
.auth form { text-align: left; }

/* ============ Espace membre ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: #fff; border-right: 1px solid var(--line);
  padding: 20px 14px; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { display: block; padding: 0 10px 20px; }
.tab {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: none; background: none; border-radius: 12px;
  font: inherit; font-size: 15px; color: var(--text); cursor: pointer; text-align: left; margin-bottom: 2px;
}
.tab:hover { background: var(--bg); }
.tab.active { background: rgba(0,122,255,.1); color: var(--blue); font-weight: 600; }
.tab .ico { font-size: 18px; }
.tab-label-short { display: none; }

.main { flex: 1; padding: 28px; max-width: 980px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; letter-spacing: -.01em; }
.view { display: none; }
.view.active { display: block; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .n { font-size: 26px; font-weight: 700; }
.stat .l { font-size: 13px; color: var(--muted); }

/* Liste style iOS */
.list { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.row .info { flex: 1; min-width: 0; }
.row .name { font-weight: 600; font-size: 15px; }
.row .meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .del { border: none; background: none; cursor: pointer; font-size: 16px; opacity: .5; padding: 6px; }
.row .del:hover { opacity: 1; }
.empty { padding: 36px; text-align: center; color: var(--muted); }

.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tag.sms { background: rgba(0,122,255,.1); color: var(--blue); }
.tag.ok { background: rgba(52,199,89,.15); color: #248a3d; }
.tag.wait { background: rgba(255,149,0,.15); color: #c76a00; }

/* Filtres pays */
.toolbar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 180px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.chip {
  border: none; background: #fff; border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow);
}
.chip.active { background: var(--text); color: #fff; }

/* Segmented control iOS */
.segmented { display: flex; background: #e3e3e8; border-radius: 10px; padding: 3px; }
.segmented button {
  flex: 1; border: none; background: none; font: inherit; font-size: 14px; font-weight: 500;
  padding: 8px; border-radius: 8px; cursor: pointer; color: var(--text);
}
.segmented button.active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Modale (feuille iOS) */
.sheet-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.3); display: none;
  align-items: flex-end; justify-content: center; z-index: 50;
}
.sheet-bg.open { display: flex; }
.sheet {
  background: #fff; width: 100%; max-width: 460px; border-radius: 22px 22px 0 0;
  padding: 10px 20px 28px; animation: up .25s ease-out;
}
.sheet-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 20px; margin-bottom: 16px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 22px; }
}

.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(28,28,30,.92); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* Mobile : barre d'onglets en bas comme sur iPhone */
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .two-col, .row-2 { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; bottom: 0; top: auto; left: 0; right: 0; width: 100%; height: auto;
    display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-right: none; border-top: 1px solid var(--line);
    background: rgba(255,255,255,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 20;
  }
  .sidebar .logo, .sidebar .logout { display: none; }
  .tab { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 4px; align-items: center; text-align: center; margin: 0; }
  .tab.active { background: none; }
  .tab .ico { font-size: 22px; }
  .tab-label { display: none; }
  .tab-label-short { display: inline; }
  .main { padding: 20px 16px 100px; }
  .page-head h1 { font-size: 26px; }
}

/* ============ Animations de la vitrine ============ */

/* Fond vivant : blobs flous qui dérivent */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.bg-blobs span:nth-child(1) { width: 480px; height: 480px; background: #7ab8ff; top: -120px; left: -120px; }
.bg-blobs span:nth-child(2) { width: 420px; height: 420px; background: #8ff0b0; top: 30%; right: -140px; animation-duration: 26s; animation-delay: -6s; }
.bg-blobs span:nth-child(3) { width: 380px; height: 380px; background: #d4b4ff; bottom: -140px; left: 25%; animation-duration: 30s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(120px, 80px) scale(1.15); }
  100% { transform: translate(-60px, 140px) scale(.9); }
}

.hero { position: relative; overflow: clip; }
.grad {
  background: linear-gradient(90deg, #007aff, #25d366, #af52de, #007aff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }

/* Téléphone en 3D qui suit la souris */
.stage { perspective: 1100px; margin-top: 52px; padding: 20px 0 40px; }
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px); } }
.tilt {
  position: relative; width: 280px; margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -16deg));
  transition: transform .25s ease-out;
}
.tilt .phone { margin: 0; width: 100%; }

.notif {
  --z: 70px;
  position: absolute; white-space: nowrap; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px; border-radius: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.12);
  animation: bob 5s ease-in-out infinite;
}
.notif small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.notif.n1 { top: 60px; left: -150px; }
.notif.n2 { bottom: 70px; right: -160px; --z: 110px; animation-delay: -2.5s; }
.emoji3d {
  --z: 140px;
  position: absolute; font-size: 46px; filter: drop-shadow(0 12px 14px rgba(0,0,0,.2));
  animation: bob 4s ease-in-out infinite;
}
.emoji3d.e1 { top: -30px; right: -50px; }
.emoji3d.e2 { bottom: -20px; left: -60px; --z: 100px; animation-delay: -1.5s; }
.emoji3d.e3 { top: 45%; right: -90px; --z: 40px; font-size: 34px; animation-delay: -3s; }
@keyframes bob {
  0%, 100% { transform: translateZ(var(--z)) translateY(0) rotate(0); }
  50%      { transform: translateZ(var(--z)) translateY(-12px) rotate(6deg); }
}

/* Cubes 3D qui tournent */
.cube-wrap { position: absolute; perspective: 600px; pointer-events: none; }
.cube-wrap.c1 { top: 120px; left: 6%; }
.cube-wrap.c2 { top: 420px; right: 7%; transform: scale(.7); }
.cube { width: 70px; height: 70px; position: relative; transform-style: preserve-3d; animation: spin 14s linear infinite; }
.cube-wrap.c2 .cube { animation-duration: 18s; animation-direction: reverse; }
.cube div {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px;
  border-radius: 14px; background: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 0 20px rgba(0,122,255,.12);
}
.cube div:nth-child(1) { transform: translateZ(35px); }
.cube div:nth-child(2) { transform: rotateY(180deg) translateZ(35px); }
.cube div:nth-child(3) { transform: rotateY(90deg) translateZ(35px); }
.cube div:nth-child(4) { transform: rotateY(-90deg) translateZ(35px); }
.cube div:nth-child(5) { transform: rotateX(90deg) translateZ(35px); }
.cube div:nth-child(6) { transform: rotateX(-90deg) translateZ(35px); }
@keyframes spin { from { transform: rotateX(-20deg) rotateY(0); } to { transform: rotateX(-20deg) rotateY(360deg); } }

/* Cartes : apparition au scroll + inclinaison 3D au survol */
.reveal { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.tilt-card { transition: opacity .7s ease, transform .3s ease-out, box-shadow .2s; will-change: transform; }
.tilt-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,.1); }

.cta { background: linear-gradient(120deg, #007aff, #5856d6, #25d366, #007aff); background-size: 300% 300%; animation: wave 12s ease infinite; }
@keyframes wave { 50% { background-position: 100% 50%; } }

@media (max-width: 760px) {
  .cube-wrap { display: none; }
  .notif.n1 { left: -60px; top: -10px; }
  .notif.n2 { right: -50px; bottom: 30px; }
  .emoji3d.e3 { display: none; }
}

/* ============ Espace membre vivant ============ */
.member .sidebar {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.member .card, .member .stat, .member .list { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.side-balance {
  margin-top: auto; color: #fff; border-radius: 18px; padding: 16px;
  background: linear-gradient(135deg, #007aff, #5856d6, #af52de); background-size: 200% 200%;
  animation: wave 10s ease infinite; box-shadow: 0 10px 24px rgba(88,86,214,.3);
}
.side-balance .l { font-size: 13px; opacity: .85; }
.side-balance .n { font-size: 30px; font-weight: 800; line-height: 1.2; }
.side-balance .btn { background: #fff; color: var(--blue); margin-top: 12px; }
.member .logout { margin-top: 8px; }
.member .main { min-width: 0; overflow-x: clip; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 6px; border: none; font: inherit; font-size: 15px; cursor: pointer;
  background: #fff; padding: 6px 6px 6px 14px; border-radius: 999px; box-shadow: var(--shadow); transition: transform .15s;
}
.balance-pill:hover { transform: translateY(-1px); }
.balance-pill .plus {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.balance-pill.low { animation: pulse 1.8s infinite; }
.balance-pill.low .plus { background: var(--red); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,48,.45); }
  70% { box-shadow: 0 0 0 12px rgba(255,59,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}
.bump { animation: bump .5s ease !important; }
@keyframes bump { 40% { transform: scale(1.12); } }

.banner {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 16px;
  border-radius: var(--radius); background: linear-gradient(135deg, #fff4e5, #ffe3d1); box-shadow: var(--shadow);
}
.banner[hidden] { display: none; }
.banner .txt { flex: 1; font-size: 14px; }

/* Transitions entre onglets */
.view.active { animation: viewIn .45s cubic-bezier(.2,.8,.2,1); }
.view.active .stat, .view.active .card { animation: viewIn .55s cubic-bezier(.2,.8,.2,1) both; }
.view.active .stat:nth-child(2), .view.active .card:nth-child(2) { animation-delay: .07s; }
.view.active .stat:nth-child(3), .view.active .card:nth-child(3) { animation-delay: .14s; }
.view.active .stat:nth-child(4), .view.active .card:nth-child(4) { animation-delay: .21s; }
.member .list .row { animation: viewIn .4s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } }

.stat { transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.08); }
.stat .ico { font-size: 22px; margin-bottom: 2px; }

/* Numéros */
.numbers { max-height: 200px; overflow: auto; box-shadow: none; border: 1px solid var(--line); }
.numbers .row { padding: 8px 12px; }
.numbers .avatar { width: 32px; height: 32px; font-size: 17px; }
.row.excluded { opacity: .35; }
.chip.off { opacity: .5; text-decoration: line-through; }
.cost {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px;
  background: var(--bg); padding: 10px 14px; border-radius: 12px; margin-bottom: 12px;
}

/* Paramètres */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.settings-grid .card h3 { margin-bottom: 14px; }
.big-balance {
  font-size: 48px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  background: linear-gradient(90deg, #007aff, #af52de); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.set-row:last-child { border-bottom: none; }

/* Interrupteur iOS */
.switch { position: relative; width: 51px; height: 31px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #e9e9eb; border-radius: 999px; cursor: pointer; transition: .25s; }
.switch span::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: .25s;
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

/* Recharge */
.packs { display: grid; gap: 10px; margin-bottom: 16px; }
.pack {
  display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 16px; transition: .2s;
}
.pack:hover { transform: translateY(-2px); }
.pack.active { border-color: var(--blue); background: rgba(0,122,255,.06); }
.pack .ico { font-size: 28px; }
.pack .info { flex: 1; }
.pack .t { font-weight: 600; }
.pack .d { font-size: 13px; color: var(--muted); }
.pack .p { font-weight: 700; font-size: 18px; }
.btn-dark { background: #000; color: #fff; }

.confetti { position: fixed; top: -40px; font-size: 24px; pointer-events: none; z-index: 70; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (max-width: 760px) {
  .member .sidebar { flex-direction: row; }
  .side-balance { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .hello { font-size: 14px; }
}

/* ============ Téléphone & tablette ============ */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
button, .btn, .tab, .chip, .pack { touch-action: manipulation; }
.sheet { max-height: 92vh; overflow-y: auto; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

/* Écrans tactiles : le téléphone 3D se balance tout seul */
@media (hover: none) {
  .tilt { animation: sway 8s ease-in-out infinite; }
  @keyframes sway {
    0%, 100% { transform: rotateX(8deg) rotateY(-16deg); }
    50%      { transform: rotateX(4deg) rotateY(12deg); }
  }
}

/* Tablette */
@media (max-width: 1024px) {
  .cube-wrap.c2 { display: none; }
  .cube-wrap.c1 { left: 3%; top: 90px; }
}
@media (min-width: 561px) and (max-width: 1024px) {
  .grid-2t { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .sidebar { width: 88px; padding: 20px 8px; }
  .sidebar .logo { text-align: center; padding: 0 0 20px; }
  .logo-text { display: none; }
  .tab { flex-direction: column; gap: 2px; font-size: 11px; padding: 10px 4px; align-items: center; text-align: center; }
  .tab .ico { font-size: 22px; }
  .tab-label { display: none; }
  .tab-label-short { display: inline; }
  .side-balance { display: none; }
  .member .logout { margin-top: auto; }
  .main { padding: 24px; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Téléphone */
@media (max-width: 760px) {
  .hero { padding: 44px 0 24px; }
  .hero p { font-size: 16px; }
  section { padding: 40px 0; }
  .section-title { font-size: 24px; }
  .section-sub { margin-bottom: 24px; }
  .stage { margin-top: 32px; }
  .notif { font-size: 12px; padding: 8px 11px; }
  .cta { padding: 36px 20px; border-radius: 22px; }
  .cta h2 { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 14px; }
  .stat .n { font-size: 22px; }
  .tag-ch { display: none; }
  .page-head { margin-bottom: 16px; }
  .big-balance { font-size: 40px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions .btn { width: 100%; }
  .tilt { width: 240px; }
  .notif.n1 { left: -30px; }
  .notif.n2 { right: -30px; }
  .emoji3d { font-size: 36px; }
  .emoji3d.e1 { right: -24px; }
  .emoji3d.e2 { left: -24px; }
  .card { padding: 20px; }
  .price { font-size: 32px; }
  .nav-links .btn { padding: 8px 12px; }
  .balance-pill { font-size: 14px; }
  .page-head .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
