/* ============================================================
   ALPINEFLOW — Swiss Editorial Design System
   Inspiration : International Typographic Style / Helvetica
   Palette : blanc pur, noir profond, or unique
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --black:   #0a0a0a;
  --ink:     #1c1c1e;
  --body:    #48484a;
  --muted:   #8e8e93;
  --line:    #e5e5ea;
  --subtle:  #f9f9f9;
  --white:   #ffffff;
  --gold:    #c8960c;
  --gold-bg: rgba(200,150,12,.08);
  --gold-bd: rgba(200,150,12,.25);

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', -apple-system, sans-serif;
  --mono:  'DM Mono', 'SF Mono', monospace;

  --nav-h: 64px;
  --max:   1160px;
  --r:     12px;
  --ease:  cubic-bezier(.25,.46,.45,.94);
  --ease2: cubic-bezier(.22,.61,.36,1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--sans); }

/* TYPOGRAPHIE */
h1, h2, h3, h4 {
  color: var(--black);
  line-height: 1.05;
  letter-spacing: -.03em;
}
h1 { font-family: var(--serif); font-weight: 400; font-style: italic; }
h2 { font-family: var(--serif); font-weight: 400; }
h3 { font-family: var(--sans); font-weight: 600; }
p { color: var(--body); }

.label {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}
.label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line);
  flex-shrink: 0;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background .3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.025em;
  color: var(--black);
  flex-shrink: 0;
}
.nav-logo svg { width: 24px; height: 16px; flex-shrink: 0; }
.nav-logo .logo-mark { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--body);
  letter-spacing: -.005em;
}
.nav-links a {
  white-space: nowrap;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--black); }
.nav-links a.active {
  color: var(--black);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px;
}
.nav-lang a {
  color: var(--muted);
  padding: .4rem .65rem;
  border-radius: 100px;
  transition: all .2s;
  line-height: 1;
}
.nav-lang a:hover { color: var(--black); }
.nav-lang a.active { color: var(--white); background: var(--black); }

.nav-cta {
  background: var(--black);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: 100px;
  transition: all .2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--black); }

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
}
.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--black);
  transition: .3s var(--ease2);
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { padding: 0 1.3rem; }
  .nav-links, .nav-lang, .nav-cta, .nav-right { display: none; }
  .burger { display: flex; }
}

/* MOBILE MENU */
.m-menu {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 1.5rem) 1.8rem 2rem;
  visibility: hidden;
  opacity: 0;
  overflow-x: hidden;
  transition: opacity .3s var(--ease), visibility 0s .3s;
}
.m-menu.open {
  visibility: visible;
  opacity: 1;
  transition: opacity .3s var(--ease), visibility 0s;
}
.m-menu a {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--black);
  font-size: 1.55rem;
  font-weight: 700;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -.02em;
  transition: color .2s;
}
.m-menu a small {
  font-family: var(--mono);
  font-size: .62rem;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.m-menu a:hover { color: var(--gold); }
.m-cta-menu {
  margin-top: 1.5rem;
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 1rem !important;
  border-radius: 100px !important;
  text-align: center !important;
  font-family: var(--sans) !important;
  font-style: normal !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  border-bottom: none !important;
}
.m-lang {
  display: flex;
  gap: .8rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.m-lang a { transition: color .2s; }
.m-lang a:hover, .m-lang a.active { color: var(--black); }
.m-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--body);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
body.m-open { overflow: hidden; }

/* FOOTER */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 5rem 2.5rem 2.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-logo svg { width: 20px; height: 20px; }
.footer-brand p {
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(255,255,255,.45);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: .32rem 0;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
}
.footer-bottom a { color: rgba(255,255,255,.25); transition: color .2s; }
.footer-bottom a:hover { color: var(--gold); }
@media (max-width: 700px) {
  .footer { padding: 3.5rem 1.3rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* STICKY BAR */
.sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: .7rem 2.5rem calc(.7rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform .4s var(--ease2);
}
.sticky.on { transform: translateY(0); }
.sticky-text { font-size: .85rem; color: var(--body); }
.sticky-text strong { color: var(--black); font-weight: 700; }
.sticky-btn {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: .85rem;
  padding: .7rem 1.4rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px -4px rgba(200,150,12,.45);
  animation: sticky-pulse 2.5s ease-in-out infinite;
  transition: background .2s;
}
.sticky-btn:hover { background: #a87a0a; }
@keyframes sticky-pulse {
  0%, 100% { box-shadow: 0 4px 16px -4px rgba(200,150,12,.45); }
  50%       { box-shadow: 0 6px 24px -4px rgba(200,150,12,.7); }
}
@media (max-width: 600px) {
  .sticky { padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); }
  .sticky-text { display: none; }
  .sticky-btn { flex: 1; text-align: center; font-size: .92rem; padding: .85rem; }
}
body { padding-bottom: 72px; }

/* BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 100px;
  padding: .85rem 1.6rem;
  transition: all .25s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 6px 20px -6px rgba(200,150,12,.45);
}
.btn-gold:hover { background: #a87a0a; transform: translateY(-1px); }
.btn-gold svg { width: 16px; height: 16px; transition: transform .25s; }
.btn-gold:hover svg { transform: translateX(3px); }
.btn-black {
  background: var(--black);
  color: var(--white);
}
.btn-black:hover { background: #333; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--black); }

/* REVEAL */
.r {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.r.in { opacity: 1; transform: none; }
.r.d1 { transition-delay: .1s; }
.r.d2 { transition-delay: .2s; }
.r.d3 { transition-delay: .3s; }

/* SECTION BASE */
.sec {
  padding: 7rem 2.5rem;
  overflow-x: hidden;
}
.sec-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  color: var(--black);
  margin-bottom: 1rem;
  font-weight: 400;
}
.sec-title em { font-style: italic; color: inherit; }
.sec-sub {
  font-size: 1.05rem;
  color: var(--body);
  line-height: 1.6;
  max-width: 560px;
}
@media (max-width: 700px) {
  .sec { padding: 5rem 1.3rem; }
  .sec-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
}

/* FORMULAIRE */
.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1.5px solid var(--gold);
  box-shadow: 0 12px 40px -12px rgba(200,150,12,.12);
}
.fg { margin-bottom: 1.3rem; }
.fg label {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.fg input,
.fg textarea,
.fg select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--black);
  outline: none;
  transition: border-color .25s;
}
.fg input::placeholder,
.fg textarea::placeholder { color: rgba(72,72,74,.35); }
.fg input:focus,
.fg textarea:focus,
.fg select:focus { border-color: var(--gold); }
.fg textarea { resize: vertical; min-height: 90px; }
.f-submit {
  width: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  padding: 1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.f-submit:hover { background: var(--gold); color: var(--black); }
.f-note {
  text-align: center;
  margin-top: .75rem;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 700px) {
  .form-card { padding: 1.8rem; }
}

/* REVIEWS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.review {
  background: var(--subtle);
  border-radius: var(--r);
  padding: 1.8rem;
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.review:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -12px rgba(0,0,0,.08); }
.review-stars { color: var(--gold); font-size: .88rem; letter-spacing: .08em; margin-bottom: .9rem; }
.review-text { font-size: .92rem; line-height: 1.6; color: var(--body); margin-bottom: 1.3rem; }
.review-author strong { display: block; font-weight: 600; font-size: .9rem; color: var(--black); margin-bottom: .15rem; }
.review-author span { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .reviews-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 760px; margin-top: 3rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
}
.faq-q h3 { font-size: .98rem; font-weight: 600; color: var(--black); transition: color .2s; }
.faq-item:hover .faq-q h3,
.faq-item.open .faq-q h3 { color: var(--gold); }
.faq-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .3s;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: all .3s;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }
.faq-item.open .faq-icon { background: var(--black); border-color: var(--black); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--white); }
.faq-item.open .faq-icon::after  { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding-bottom: 1.4rem; font-size: .92rem; line-height: 1.65; color: var(--body); max-width: 680px; }

/* BADGE FOMO */
.fomo-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  background: var(--gold-bg);
  border: 1px solid var(--gold-bd);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.fomo-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* CARD SERVICE */
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  transition: all .3s;
  text-decoration: none;
  display: block;
}
.svc-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.08);
}
.svc-card:hover .svc-arrow { background: var(--gold); color: var(--black); border-color: var(--gold); }
.svc-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all .3s;
}
.svc-card:hover .svc-icon { border-color: var(--gold); background: var(--gold-bg); }
.svc-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-name { font-size: 1.15rem; font-weight: 700; color: var(--black); margin-bottom: .5rem; letter-spacing: -.02em; }
.svc-desc { font-size: .88rem; line-height: 1.55; color: var(--body); margin-bottom: 1.5rem; }
.svc-arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: all .3s;
  color: var(--ink);
}

/* JS SHARED */

/* ============================================================
   MOBILE FIX GLOBAL — pas de scroll horizontal
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
img, video, canvas, iframe { max-width: 100%; }
.hero-inner, .hero-grid, .sec-inner, .footer-inner,
.contact-inner, .contact-grid, .g-inner, .stats-inner,
.process-steps, .process-grid, .reviews-grid, .cases-grid,
.tasks, .ba, .compare, .seo-grid, .fid-stats, .portfolio,
.steps-horizontal, .pv-step, .services-grid, .values, .why-geneve {
  max-width: 100%;
}

/* ============================================================
   MOBILE : sections padding réduit
   ============================================================ */
@media (max-width: 480px) {
  .sec { padding: 4rem 1.1rem; }
  .sec-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .nav { padding: 0 1rem; }
  .nav-logo { font-size: 1rem; }
  .footer { padding: 3rem 1.1rem 2rem; }
  .footer-top { gap: 1.5rem; }
  .sticky { padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); }
  .guarantee { padding: 1.8rem 1.1rem; }
  .guarantee-inner { gap: 1rem; }
}

/* ============================================================
   MOBILE CRITICAL — force tous les grids en 1 colonne sous 760px
   Override les styles inline avec !important
   ============================================================ */
@media (max-width: 760px) {
  /* Tous les grids en 1 colonne sur mobile */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Hero grids */
  .hero-inner, .hero-grid, .page-hero-inner,
  .contact-hero-inner, .contact-grid, .contact-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Sections avec colonnes inline */
  .why-geneve, .ba, .compare, .fid-stats,
  .reviews-grid, .cases-grid, .seo-grid,
  .tasks, .values, .services-grid, .portfolio,
  .steps-horizontal, .process-steps, .process-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Process vertical : compact */
  .pv-step {
    grid-template-columns: 44px 1fr !important;
    gap: 1rem !important;
    padding: 1.5rem 0 !important;
  }
  .pv-num {
    width: 36px !important;
    height: 36px !important;
    font-size: .65rem !important;
  }

  /* Service items horizontaux → vertical */
  .svc {
    grid-template-columns: 1fr !important;
    gap: .8rem !important;
  }

  /* Padding réduit partout */
  .sec, section { padding-left: 1.1rem !important; padding-right: 1.1rem !important; }
  .hero-inner, .sec-inner, .page-hero-inner, .contact-hero-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Cards padding réduit */
  .case-card, .review, .svc-card, .task,
  .seo-card, .fid-stat, .step-h, .compare-col, .ba-col,
  .portfolio-card, .value-card, .review-card {
    padding: 1.5rem !important;
  }

  /* Stats bar 2x2 sur mobile */
  .stats-inner {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer compact */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Browser/wallet mockups : taille réduite */
  .browser, .wallet-card, .terminal {
    max-width: 100% !important;
  }

  /* Avant/après flèche */
  .ba-arrow {
    transform: rotate(90deg) !important;
    margin: 0.5rem 0 !important;
  }

  /* Forms padding réduit */
  .form-card, .c-form {
    padding: 1.5rem !important;
  }

  /* Timeline a-propos */
  .tl-item {
    grid-template-columns: 60px 1fr !important;
    gap: 1rem !important;
  }

  /* Why-stat-item compact */
  .why-stat-item {
    padding: 1rem !important;
    gap: .8rem !important;
  }
  .why-stat-val {
    font-size: 1.4rem !important;
    min-width: 50px !important;
  }

  /* Titres plus petits */
  .sec-title, .hero-h1, .h1, .page-h1, .contact-title {
    font-size: clamp(1.7rem, 8vw, 2.5rem) !important;
  }

  /* Container max-width 100vw */
  body, html, section, .sec, footer, nav {
    max-width: 100vw !important;
  }

  /* Empêcher tout débordement horizontal */
  * { max-width: 100% !important; }
  pre, code { overflow-x: auto !important; }
}

@media (max-width: 480px) {
  /* Encore plus petit sur très petits écrans */
  .sec, section { padding-left: 1rem !important; padding-right: 1rem !important; }
  .nav { padding: 0 .9rem !important; }
  .nav-logo { font-size: .95rem !important; }
  .nav-logo svg { width: 22px !important; height: 14px !important; }
  
  /* Sticky bar plein largeur */
  .sticky { padding: .5rem .8rem calc(.5rem + env(safe-area-inset-bottom)) !important; }
  .sticky-text { display: none !important; }
  .sticky-btn { flex: 1 !important; text-align: center !important; }
  
  /* Boutons pleine largeur */
  .btn-gold, .btn-black, .btn-outline, .btn {
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-actions, .hero-trust, [class*="hero-"] [style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  
  /* Card metric : empiler sur très petit */
  .case-metric { 
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .5rem !important;
  }
  .case-meta { text-align: left !important; }
}
