/* ==========================================================================
   LESBONSTIPS — Design system « Graphite & Bleu profond »
   Premium fintech 2026 : anthracite bleuté, cartes claires, Manrope,
   bordures fines, micro-animations discrètes. Mobile-first.
   ========================================================================== */

:root {
  --paper: #101318;
  --paper-2: #151a22;
  --card: #1a2029;
  --card-2: #1e2530;
  --field: #12161d;
  --ink: #eef1f6;
  --ink-soft: #b8c0cd;
  --muted: #7e8798;
  --line: rgba(151, 168, 197, .16);
  --hairline: rgba(238, 241, 246, .07);
  --accent: #3d7bfd;
  --accent-deep: #2b5fd6;
  --accent-soft: rgba(61, 123, 253, .13);
  --accent-glow: rgba(61, 123, 253, .35);
  --ok: #3fd39b;
  --danger: #f07178;
  --nav-bg: rgba(16, 19, 24, .8);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .3);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 55% 40% at 88% -6%, rgba(61, 123, 253, .1), transparent 62%),
    radial-gradient(ellipse 42% 36% at -6% 14%, rgba(43, 95, 214, .06), transparent 60%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: var(--font); }

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: #2a3240; border-radius: 99px; border: 2px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; letter-spacing: -.022em; line-height: 1.14; }

/* ================= NAVBAR ================= */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 clamp(1rem, 4vw, 2.2rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.navbar.scrolled, .navbar--user {
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em;
}
.nav-brand img { height: 34px; width: 34px; border-radius: 10px; border: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 1.3rem; }
.nav-links a {
  font-weight: 700; font-size: .9rem; color: var(--ink-soft);
  padding: .35rem .2rem; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 99px;
  transition: right .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent); color: #fff;
  padding: .55rem 1.15rem; border-radius: 999px;
  font-weight: 800; font-size: .88rem;
  border: 1px solid transparent;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }
.nav-cta--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.nav-cta--ghost:hover { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.nav-cta form { display: contents; }
.nav-cta button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; margin-right: -8px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 99px; transition: .3s var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(8, 10, 14, .6); opacity: 0; pointer-events: none; transition: .3s; }
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* ================= BOUTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.55rem; border-radius: var(--r-md);
  font-size: .92rem; font-weight: 800; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  white-space: nowrap; position: relative;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 6px 22px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost, .btn-outline {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover, .btn-outline:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); transform: translateY(-1px); }

/* ================= SECTIONS ================= */
.section { padding: 4.5rem clamp(1.2rem, 4vw, 2rem); max-width: 1240px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(61, 123, 253, .25);
  border-radius: 999px; padding: .4rem 1rem;
}
.section-title { font-size: clamp(1.8rem, 4.2vw, 2.7rem); margin: .9rem 0 .4rem; }
.section-desc { font-size: 1rem; color: var(--ink-soft); max-width: 560px; line-height: 1.7; margin: .4rem 0 0; }

/* ================= HERO SPLIT (accueil) ================= */
.hero--accueil { position: relative; overflow: hidden; min-height: 88vh; display: flex; align-items: center; padding: 8.5rem clamp(1.2rem, 4vw, 2.5rem) 4rem; }
.hero-fx { position: absolute; inset: 0; pointer-events: none; }
.fx-photo {
  position: absolute; inset: 0; background-size: cover; background-position: center 32%;
  opacity: .45; filter: saturate(.8);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.95), transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.95), transparent 88%);
}
.fx-photo-voile { position: absolute; inset: 0; background: linear-gradient(200deg, rgba(16,19,24,.35), var(--paper) 78%); }
.fx-orbe { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.fx-orbe--a { width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(61,123,253,.3), transparent 68%); }
.fx-orbe--b { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, rgba(43,95,214,.22), transparent 68%); }
.fx-orbe--c { width: 300px; height: 300px; left: 42%; top: 55%; background: radial-gradient(circle, rgba(61,123,253,.14), transparent 70%); }
.fx-voile { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at var(--mx, 60%) var(--my, 20%), rgba(61,123,253,.07), transparent 55%); }
.fx-ligne { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.hero-inner { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; }
.hero-inner--split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 800;
  background: rgba(63, 211, 155, .1); color: var(--ok);
  border: 1px solid rgba(63, 211, 155, .3);
  border-radius: 999px; padding: .42rem 1rem;
}
.hero-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63, 211, 155, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 211, 155, 0); } }

.hero-titre { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.05; margin: 0; }
.titre-iris {
  background: linear-gradient(100deg, var(--accent) 10%, #7aa5ff 55%, #a9c4ff 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 520px; margin: 0; line-height: 1.7; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Bloc commissions transparentes (hero accueil) */
.hero-comm {
  display: flex; flex-direction: column; gap: .6rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(165deg, var(--card-2), var(--card));
  padding: 1rem 1.2rem;
  max-width: 540px;
}
.comm-label {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.comm-paliers { display: flex; flex-wrap: wrap; gap: .45rem; }
.comm-palier {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  background: var(--field); border: 1px solid var(--hairline);
  border-radius: 999px; padding: .35rem .85rem;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.comm-palier:hover { border-color: rgba(61, 123, 253, .5); transform: translateY(-2px); }
.comm-palier b { font-weight: 800; color: var(--accent); }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 700; color: var(--muted); }
.hero-points i { color: var(--accent); }

/* Carte « marque à la une » */
.hero-stage { position: relative; }
.stage-card {
  position: relative; border-radius: 20px;
  background: linear-gradient(165deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.stage-eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stage-brand {
  position: relative; overflow: hidden;
  min-height: 190px; border-radius: var(--r-md);
  background: #fff; padding: 1.4rem;
}
.stage-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  padding: 1.2rem;
  transition: transform .48s var(--ease), opacity .48s var(--ease);
  will-change: transform, opacity;
}
.stage-slide.is-active { transform: translateY(0); opacity: 1; }
.stage-slide.is-leaving { transform: translateY(-105%); opacity: 0; }
.stage-slide.is-entering { transform: translateY(105%); opacity: 0; transition: none; }
.stage-slide img {
  max-height: 105px; max-width: 65%; object-fit: contain;
  animation: fondu-doux .45s var(--ease);
}
@keyframes fondu-doux { from { opacity: 0; transform: scale(.96); } }
.stage-brand-initial { font-size: 3rem; font-weight: 800; color: var(--accent-deep); }
.stage-brand-nom { font-size: 1.15rem; font-weight: 800; color: #14181f; }
.stage-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.stage-stats > div {
  display: flex; flex-direction: column; gap: .1rem;
  background: var(--field); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: .8rem .9rem;
}
.stage-stats b { font-size: 1.35rem; font-weight: 800; }
.stage-stats span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.stage-float {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 800;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem .95rem;
  box-shadow: var(--shadow-md);
  animation: flotter 5s ease-in-out infinite;
}
.stage-float i { color: var(--accent); }
.stage-float--a { top: -16px; right: 22px; }
.stage-float--b { bottom: -16px; left: 22px; animation-delay: 1.6s; }
@keyframes flotter { 50% { transform: translateY(-7px); } }

/* ================= MARQUEE ================= */
.marquee {
  overflow: hidden; padding: 1.15rem 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: rgba(21, 26, 34, .6);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 2.2rem; width: max-content; animation: defiler 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes defiler { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 2.2rem; font-size: .92rem; font-weight: 800; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.mq-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; }

/* ================= PROCESS ================= */
.process-head { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; margin-bottom: 2.2rem; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.process-step--gold {
  border-color: rgba(61, 123, 253, .55);
  background: linear-gradient(165deg, var(--accent-soft), var(--card) 60%);
}
.process-step--gold .step-num { background: var(--accent); color: #fff; }
.process-step--gold:hover { border-color: var(--accent); box-shadow: 0 14px 40px var(--accent-glow); }
.process-step {
  position: relative; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  padding: 1.7rem 1.5rem;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.process-step:hover { transform: translateY(-4px); border-color: rgba(61, 123, 253, .4); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex; font-size: .8rem; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border-radius: 8px; padding: .3rem .6rem;
  margin-bottom: 1rem;
}
.process-step h3 { font-size: 1.08rem; margin: 0 0 .4rem; }
.process-step p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }

/* ================= STATS BAND ================= */
.stats-band { padding-top: 0; }
.fs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.fs-stats--band { max-width: 100%; }
.fs-stat {
  display: flex; flex-direction: column; gap: .15rem;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  transition: transform .25s var(--ease), border-color .25s;
}
.fs-stat:hover { transform: translateY(-3px); border-color: rgba(61, 123, 253, .35); }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.stat-lbl { font-size: .84rem; font-weight: 600; color: var(--muted); }

/* ================= HERO BOUTIQUE (page /refund) ================= */
.bx-photo--page { position: relative; overflow: hidden; }
.bx-img-heavybag-dark {
  background:
    radial-gradient(ellipse 62% 85% at 82% 0%, rgba(61, 123, 253, .14), transparent 58%),
    radial-gradient(ellipse 45% 60% at 4% 100%, rgba(43, 95, 214, .1), transparent 62%),
    var(--paper);
}
.page-hero { padding: 9.5rem clamp(1.2rem, 4vw, 2rem) 2.6rem; max-width: 1240px; margin: 0 auto; position: relative; }
.page-hero--lbt .section-title { font-size: clamp(2rem, 4.6vw, 3rem); }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(61, 123, 253, .25);
  border-radius: 999px; padding: .42rem 1rem;
}
.bx-band { position: relative; }
.bx-band--glow::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 42% at 10% 0%, rgba(61, 123, 253, .06), transparent 70%);
}

/* ================= FILTRES / RECHERCHE ================= */
.vc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.2rem; margin-bottom: 1.5rem; }
.vc-filtres { display: flex; flex-wrap: wrap; gap: .5rem; }
.vc-filtre {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); font-size: .86rem; font-weight: 700;
  cursor: pointer; transition: .18s var(--ease);
}
.vc-filtre span {
  font-size: .68rem; font-weight: 800;
  background: var(--field); color: var(--muted);
  border-radius: 999px; padding: .08rem .5rem;
}
.vc-filtre:hover { color: var(--ink); border-color: rgba(61, 123, 253, .45); transform: translateY(-1px); }
.vc-filtre.is-on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 16px var(--accent-glow); }
.vc-filtre.is-on span { background: rgba(255, 255, 255, .2); color: #fff; }

.vc-cherche {
  display: flex; align-items: center; gap: .6rem; flex: 1 1 260px; max-width: 380px;
  padding: .72rem 1rem; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--card);
  transition: .2s var(--ease);
}
.vc-cherche:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vc-cherche i { color: var(--muted); }
.vc-cherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--font); font-size: .94rem; font-weight: 600; }
.vc-cherche input::placeholder { color: var(--muted); font-weight: 500; }

/* Filtre déroulant mobile */
.rf-cat { display: none; position: relative; flex: 1 1 100%; }
.rf-cat-btn {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .78rem 1rem; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: .92rem; font-weight: 700; cursor: pointer;
}
.rf-cat-btn span { flex: 1; text-align: left; }
.rf-cat-btn em { font-style: normal; font-size: .7rem; font-weight: 800; background: var(--field); color: var(--muted); border-radius: 999px; padding: .1rem .55rem; }
.rf-cat-ic { color: var(--accent); }
.rf-cat-fleche { font-size: .7rem; color: var(--muted); transition: transform .25s var(--ease); }
.rf-cat.is-open .rf-cat-fleche { transform: rotate(180deg); }
.rf-cat.is-filtre .rf-cat-btn { border-color: var(--accent); background: var(--accent-soft); }
.rf-cat-menu {
  position: absolute; z-index: 50; top: calc(100% + .5rem); left: 0; right: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .45rem;
  padding: .55rem; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--card-2);
  box-shadow: var(--shadow-lg);
  animation: pop-in .2s var(--ease);
}
.rf-cat-menu[hidden] { display: none; }
.rf-cat-opt {
  display: flex; align-items: center; gap: .5rem;
  padding: .72rem .8rem; border-radius: var(--r-sm);
  border: 1px solid transparent; background: var(--field);
  color: var(--ink-soft); font-size: .86rem; font-weight: 700; text-align: left; cursor: pointer;
}
.rf-cat-opt i { width: 1rem; color: var(--muted); }
.rf-cat-opt span { flex: 1; color: var(--ink); }
.rf-cat-opt em { font-style: normal; font-size: .7rem; color: var(--muted); }
.rf-cat-opt:hover { background: var(--card-2); }
.rf-cat-opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.rf-cat-opt.is-on i, .rf-cat-opt.is-on em { color: var(--accent); }
.rf-cat-opt[data-cat="tous"] { grid-column: 1 / -1; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.rf-astuce { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem; font-size: .87rem; font-weight: 600; color: var(--muted); }
.rf-astuce i { color: var(--accent); }

/* ================= GRILLE BOUTIQUES ================= */
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1.15rem; }

.rf-card {
  display: flex; flex-direction: column; text-align: left; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); color: var(--ink);
  cursor: pointer; overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.rf-card:hover, .rf-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(61, 123, 253, .5);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-soft);
  outline: none;
}
.rf-card:active { transform: translateY(-1px); }

.rf-card--row { flex-direction: row; align-items: stretch; }
.rf-logo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; background: linear-gradient(180deg, #ffffff, #f4f6fa);
  border-bottom: 1px solid var(--hairline);
}
.rf-logo img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; transition: transform .3s var(--ease); }
.rf-card:hover .rf-logo img { transform: scale(1.07); }
.rf-logo b { font-size: 2.1rem; font-weight: 800; color: var(--accent-deep); }

.rf-body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem; flex: 1; min-width: 0; }
.rf-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.rf-row--foot { margin-top: auto; padding-top: .55rem; border-top: 1px solid var(--hairline); }
.rf-nom { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.rf-desc {
  font-size: .8rem; color: var(--ink-soft); line-height: 1.55; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em;
}
.rf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.rf-max, .rf-delai {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .3rem .68rem; border-radius: 999px;
  font-size: .74rem; font-weight: 800;
}
.rf-max { background: var(--accent-soft); color: #8fb4ff; border: 1px solid rgba(61, 123, 253, .3); }
.rf-max i { color: var(--accent); }
.rf-delai { background: var(--field); color: var(--muted); border: 1px solid var(--hairline); }
.rf-voir {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .55rem; padding-top: .65rem; border-top: 1px dashed var(--hairline);
  font-size: .78rem; font-weight: 800; color: var(--accent);
}
.rf-voir i { font-size: .6rem; transition: transform .25s var(--ease); }
.rf-card:hover .rf-voir i { transform: translateX(4px); }

.rf-vide {
  margin: 2.2rem auto 0; max-width: 540px; text-align: center;
  color: var(--ink-soft); font-size: .93rem; font-weight: 500;
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--r-lg); padding: 1.5rem 1.6rem;
}
.rf-vide i { color: var(--accent); }
.rf-vide a { color: var(--accent); font-weight: 800; }

.rf-autre {
  display: flex; align-items: center; gap: .95rem;
  margin-top: 1.6rem; padding: 1.1rem 1.25rem;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card-2), var(--card));
  color: var(--ink); transition: .22s var(--ease);
}
.rf-autre:hover { transform: translateY(-3px); border-color: rgba(61, 123, 253, .5); box-shadow: var(--shadow-md); }
.rf-autre-ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 4px 14px var(--accent-glow);
}
.rf-autre-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.rf-autre-txt strong { font-size: .95rem; }
.rf-autre-txt small { font-size: .82rem; color: var(--muted); font-weight: 500; }
.rf-autre > .fa-chevron-right { color: var(--muted); }

/* ================= MODALE FICHE ================= */
.rf-fiche {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; background: rgba(6, 8, 12, .66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.rf-fiche[hidden] { display: none; }
.rf-fiche-box {
  position: relative; display: grid; grid-template-columns: 300px 1fr;
  width: min(840px, 100%); max-height: 90vh;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card-2);
  box-shadow: var(--shadow-lg);
  animation: fiche-in .3s var(--ease);
}
@keyframes fiche-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.rf-fiche-x {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: rgba(16, 19, 24, .6); color: var(--ink-soft);
  font-size: .95rem; backdrop-filter: blur(8px); transition: .2s var(--ease);
}
.rf-fiche-x:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }
.rf-fiche-logo {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-right: 1px solid var(--hairline); padding: 1.6rem;
}
.rf-fiche-logo img { width: 100%; height: auto; }
.rf-fiche-corps { padding: 1.9rem 1.9rem 1.7rem; overflow-y: auto; }
.rf-fiche-cat {
  display: inline-block; font-size: .66rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(61, 123, 253, .25);
  border-radius: 999px; padding: .3rem .78rem;
}
.rf-fiche-corps h2 { font-size: 1.8rem; margin: .7rem 0 .35rem; }
.rf-fiche-desc { color: var(--ink-soft); font-size: .92rem; margin: 0 0 1.2rem; font-weight: 500; }
.rf-fiche-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.rf-fiche-chiffres > div {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .85rem .95rem; border-radius: var(--r-sm);
  background: var(--field); border: 1px solid var(--hairline);
}
.rf-fiche-chiffres small { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rf-fiche-chiffres b { font-size: 1.02rem; font-weight: 800; }
.rf-fiche-chiffres > div:first-child b { color: var(--ok); }
.rf-fiche-note {
  display: flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--field); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: .7rem .9rem; margin: 0 0 1.1rem;
}
.rf-fiche-note i, .rf-fiche-note b { color: var(--accent); }
.rf-fiche-corps h3 {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin: 0 0 .7rem;
}
.rf-fiche-cond { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1.5rem; }
.rf-fiche-cond li { display: flex; align-items: center; gap: .6rem; font-size: .89rem; font-weight: 500; }
.rf-fiche-cond li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 19px; height: 19px; border-radius: 6px;
  font-size: .58rem; color: #fff; background: var(--ok);
}
.rf-fiche-go { width: 100%; padding: 1rem; font-size: .98rem; }

/* ================= AUTH ================= */
.auth-section { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 7.5rem 1.2rem 3rem; }
.auth-shell {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  max-width: 1040px; width: 100%; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-lg);
}
.auth-visual {
  position: relative; display: flex; align-items: flex-end;
  min-height: 580px; padding: 2.1rem;
  background:
    radial-gradient(ellipse 75% 55% at 78% 6%, rgba(61, 123, 253, .4), transparent 60%),
    radial-gradient(ellipse 55% 45% at 6% 92%, rgba(43, 95, 214, .32), transparent 62%),
    linear-gradient(200deg, #141926, var(--paper) 82%);
  background-image:
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    radial-gradient(ellipse 75% 55% at 78% 6%, rgba(61, 123, 253, .4), transparent 60%),
    radial-gradient(ellipse 55% 45% at 6% 92%, rgba(43, 95, 214, .32), transparent 62%);
  background-size: 24px 24px, auto, auto;
  color: #fff;
}
.auth-visual-inner { display: flex; flex-direction: column; gap: .95rem; }
.auth-visual-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.18rem; }
.auth-visual-brand img { height: 34px; width: 34px; border-radius: 10px; }
.auth-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: .38rem .85rem; color: #cdd6e4;
}
.auth-visual h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.auth-visual ul { display: flex; flex-direction: column; gap: .5rem; }
.auth-visual li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; color: #c4cdda; }
.auth-visual li i { color: var(--accent); }
.auth-trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.auth-trust span {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .73rem; font-weight: 700; color: #b9c3d2;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: .38rem .8rem;
}
.auth-card { padding: 2.5rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem;
  background: var(--field); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .32rem; margin-bottom: 1.7rem;
}
.auth-tabs a {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem .8rem; border-radius: var(--r-sm);
  font-size: .86rem; font-weight: 800; color: var(--muted);
  transition: .2s var(--ease);
}
.auth-tabs a.active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }
.auth-head h1 { font-size: 1.8rem; margin: 0 0 .3rem; }
.auth-head p { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.auth-info {
  display: flex; align-items: center; gap: .6rem;
  padding: .78rem 1rem; margin-bottom: 1.2rem;
  border-radius: var(--r-sm); font-size: .85rem; font-weight: 600;
  background: var(--accent-soft); border: 1px solid rgba(61, 123, 253, .3);
}
.auth-info i { color: var(--accent); }
.ctc-field { margin-bottom: 1.05rem; }
.ctc-label { display: block; font-size: .8rem; font-weight: 800; margin-bottom: .42rem; }
.ctc-input-wrap { position: relative; }
.ctc-input-wrap > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; }
.ctc-input {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--field); color: var(--ink);
  font-family: var(--font); font-size: .94rem; font-weight: 600;
  transition: .18s var(--ease);
}
.ctc-input--icon { padding-left: 2.6rem; padding-right: 2.9rem; }
.ctc-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; }
.auth-forgot { font-size: .76rem; font-weight: 700; color: var(--accent); }
.auth-forgot:hover { text-decoration: underline; }
.auth-eye {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; font-size: .85rem; transition: .2s;
}
.auth-eye:hover { color: var(--ink); background: var(--card-2); }
.auth-hint { font-size: .74rem; color: var(--muted); font-weight: 600; margin-top: .35rem; }
.auth-caps { color: var(--danger); min-height: 1.1em; }
.auth-submit { width: 100%; margin-top: .4rem; padding: .95rem; font-size: .97rem; }
.auth-note { max-width: 1040px; margin: 1.4rem auto 0; text-align: center; font-size: .84rem; color: var(--muted); font-weight: 500; }
.auth-note a { color: var(--accent); font-weight: 800; }
.auth-note i { color: var(--accent); }

/* ================= FOOTER ================= */
.footer { margin-top: 4rem; border-top: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(21, 26, 34, .5), transparent 30%); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 3.2rem clamp(1.2rem, 4vw, 2rem) 1.5rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; }
.footer-brand img { height: 34px; width: 34px; border-radius: 10px; }
.footer-tagline { margin: 1rem 0 1.4rem; font-size: .92rem; color: var(--muted); max-width: 460px; font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { font-size: .88rem; font-weight: 700; color: var(--ink-soft); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-rule { height: 1px; background: var(--hairline); margin: 1.8rem 0; }
.footer-band { background: var(--paper-2); border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; }
.footer-col h4 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: .3rem 0 1rem; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--ink-soft); font-size: .9rem; font-weight: 600; transition: .2s; }
.footer-col a:hover { color: var(--accent); padding-left: 3px; }
.footer-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; color: var(--ok); }
.footer-status .hero-live { background: var(--ok); }
.footer-tg {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .84rem; font-weight: 800; color: #fff;
  background: #2aabee; border-radius: 999px; padding: .52rem 1.1rem;
  transition: .2s var(--ease);
}
.footer-tg:hover { background: #229ed6; transform: translateY(-1px); }
.footer-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 1.4rem 0; border-top: 1px solid var(--hairline); }
.footer-trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.footer-trust i { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; border-top: 1px solid var(--hairline); }
.footer-copy { margin: 0; font-size: .8rem; color: var(--muted); font-weight: 600; }
.footer-top { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 800; color: var(--ink-soft); }
.footer-top:hover { color: var(--accent); }

/* ================= ADMIN ================= */
.adm-back-wrap { max-width: 1240px; margin: 0 auto; padding: 8rem clamp(1.2rem, 4vw, 2rem) 3rem; }
.adm-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.adm-top h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0; }
.adm-sub { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); font-weight: 600; }
.adm-top-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.adm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.adm-card--flush { padding: 0; }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.adm-table th {
  text-align: left; padding: .9rem 1.1rem;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); background: var(--paper-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.adm-table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr { transition: background .15s; }
.adm-table tbody tr:hover { background: rgba(61, 123, 253, .05); }
.adm-table .num { text-align: right; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-table td b { font-weight: 800; }
.adm-sub-td { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: .1rem; }
.adm-bq-logo {
  width: 78px; height: 44px; border-radius: 9px; background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.adm-bq-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.adm-bq-logo span { font-size: 1.15rem; font-weight: 800; color: var(--accent-deep); }
.adm-pill {
  display: inline-flex; align-items: center; gap: .4rem; cursor: default;
  padding: .28rem .72rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800;
  background: var(--field); color: var(--muted); border: 1px solid var(--hairline);
}
.adm-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.adm-pill.is-ok { background: rgba(63, 211, 155, .12); color: var(--ok); border-color: rgba(63, 211, 155, .35); }
.adm-pill.is-ok::before { background: var(--ok); }
.adm-pill--toggle { cursor: pointer; font-family: var(--font); transition: .18s; }
.adm-pill--toggle:hover { border-color: var(--accent); }
.adm-actions { white-space: nowrap; text-align: right; }
.adm-actions .adm-btn { margin-left: .4rem; }
.adm-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--card-2);
  color: var(--ink); font-size: .78rem; font-weight: 800; cursor: pointer;
  transition: .18s var(--ease);
}
.adm-btn:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.adm-btn--danger:hover { border-color: var(--danger); color: var(--danger); background: rgba(240, 113, 120, .08); }
.adm-empty { padding: 2rem 1.4rem; text-align: center; color: var(--muted); font-size: .9rem; font-weight: 600; margin: 0; }

/* Modale admin */
.adm-form-box { grid-template-columns: 1fr; width: min(660px, 100%); }
.adm-form-box .rf-fiche-logo { display: none; }
.adm-form-box .rf-fiche-corps { padding: 1.8rem; max-height: 88vh; }
.adm-form-box h2 { font-size: 1.5rem; margin: .6rem 0 1.2rem; }
#admForm .adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
#admForm textarea.ctc-input { resize: vertical; min-height: 92px; line-height: 1.55; }
#admForm select.ctc-input {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.ctc-file { padding: .6rem .8rem !important; font-size: .8rem !important; color: var(--muted); }
.ctc-file::file-selector-button {
  margin-right: .8rem; padding: .45rem .85rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--field);
  color: var(--ink); font-family: var(--font); font-size: .78rem; font-weight: 800; cursor: pointer;
  transition: .18s;
}
.ctc-file::file-selector-button:hover { border-color: var(--accent); color: #fff; }
.adm-logo-preview {
  position: relative; margin-top: .6rem; width: 138px; height: 78px;
  border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.adm-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.adm-logo-preview button {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px;
  border-radius: 7px; border: 1px solid var(--line);
  background: var(--card); color: var(--danger);
  font-size: .68rem; cursor: pointer; display: grid; place-items: center;
}
.adm-check {
  display: flex; align-items: center; gap: .6rem;
  margin: .3rem 0 1.2rem; font-size: .88rem; font-weight: 700;
  color: var(--ink-soft); cursor: pointer; user-select: none;
}
.adm-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
#admSubmit { width: 100%; }

/* ================= CTA TELEGRAM STICKY (mobile) ================= */
.tg-sticky {
  position: fixed; z-index: 950;
  left: .8rem; right: .8rem; bottom: calc(.8rem + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: .8rem;
  padding: .7rem .9rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #2aabee, #1d8fd1);
  color: #fff;
  box-shadow: 0 12px 34px rgba(42, 171, 238, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
  animation: tg-in .5s var(--ease);
}
@keyframes tg-in { from { opacity: 0; transform: translateY(20px); } }
.tg-sticky-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.15rem;
  background: rgba(255, 255, 255, .18);
}
.tg-sticky-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tg-sticky-txt b { font-size: .88rem; font-weight: 800; }
.tg-sticky-txt small { font-size: .72rem; opacity: .85; font-weight: 600; }
.tg-sticky-go {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 800;
  background: #fff; color: #1d8fd1;
  border-radius: 999px; padding: .45rem .85rem;
}

/* ================= ANIMATIONS ================= */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }
.mx-mag { will-change: transform; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .hero-inner--split { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-stage { max-width: 460px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 250px; }
  .auth-visual ul, .auth-trust { display: none; }
  .rf-fiche-box { grid-template-columns: 1fr; max-height: 92vh; }
  .rf-fiche-logo { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 1.2rem; max-height: 170px; }
  .rf-fiche-logo img { max-height: 130px; width: auto; }
}
@media (max-width: 760px) {
  .tg-sticky { display: flex; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .footer-inner { padding-bottom: .8rem; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 76px; left: .8rem; right: .8rem; z-index: 990;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--card-2); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: .7rem;
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: .28s var(--ease);
    backdrop-filter: blur(18px);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: .75rem .9rem; border-radius: var(--r-sm); }
  .nav-links a:hover { background: var(--field); }
  .nav-links a::after { display: none; }
  .nav-cta { justify-content: center; margin-top: .3rem; }

  .vc-filtres { display: none; }
  .rf-cat { display: block; }
  .rf-grid { grid-template-columns: 1fr; }
  .rf-card--row { flex-direction: column; }
  .rf-card--row .rf-logo { width: 100%; border-right: 0; border-bottom: 1px solid var(--hairline); aspect-ratio: 16 / 7; }

  .page-hero { padding-top: 8rem; }
  .rf-fiche { padding: 0; align-items: flex-end; }
  .rf-fiche-box { border-radius: 20px 20px 0 0; max-height: 94vh; }
  .rf-fiche-corps { padding: 1.3rem 1.1rem 1.4rem; }
  .rf-fiche-chiffres { gap: .4rem; }
  .rf-fiche-chiffres b { font-size: .92rem; }
  .adm-back-wrap { padding-top: 6.5rem; }
  #admForm .adm-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .adm-form-box .rf-fiche-corps { padding: 1.3rem 1.1rem 1.4rem; }
  .adm-actions .adm-btn { margin: .2rem 0 0; }
  .fs-stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .auth-card { padding: 1.7rem 1.3rem; }
  .stage-float--a { top: -14px; right: 10px; }
  .stage-float--b { bottom: -14px; left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}
