/* ============================================================
   Mon Pass Avantage — Design System v2
   Ton : Moderne & dynamique | Territoire : France entière
   ============================================================ */

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

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  /* Couleurs */
  --black:   #0a0a0a;
  --white:   #ffffff;
  --ink:     #111111;
  --ink-2:   #1e1e1e;
  --ink-3:   #2a2a2a;
  --muted:   #6b6b6b;
  --border:  #e8e8e8;
  --border-2:#d0d0d0;
  --surface: #f7f7f5;
  --surface-2:#f0efeb;

  /* Accent — vert digital vivant */
  --accent:      #00c48c;
  --accent-dark: #00a374;
  --accent-pale: #e6faf4;
  --accent-mid:  #00c48c22;

  /* Typo */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Espacements */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;

  /* Ombres */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHIE ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.display-xl {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.0;
}
.display-lg {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.03em;
}
.display-md {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
}
.display-sm {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.text-lg  { font-size: 1.15rem; line-height: 1.7; }
.text-md  { font-size: 1rem;    line-height: 1.7; }
.text-sm  { font-size: .875rem; line-height: 1.6; }
.text-xs  { font-size: .75rem;  line-height: 1.5; }

.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent-dark); }
.text-white  { color: var(--white); }

/* ─── LIENS ─────────────────────────────────────────────────── */
a { color: inherit; text-decoration: none; }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-sm {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }

/* ─── HEADER / NAV ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-logo span { color: var(--accent-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  padding: .4rem .75rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); background: var(--surface); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .2s;
}

/* Menu mobile */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  display: block;
}
.nav-mobile a:hover { color: var(--ink); background: var(--surface); }
.nav-mobile .btn { margin: .5rem 1rem 0; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.footer-brand-name span { color: var(--accent); }
.footer-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}
.footer-col-title {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.3);
  margin-bottom: .75rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── BOUTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink-3); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: .7rem .75rem;
}
.btn-ghost:hover { color: var(--ink); background: var(--surface); }

.btn-lg { padding: .9rem 2rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; border-radius: var(--r-sm); }

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── BADGE / PILL ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.badge-accent  { background: var(--accent-pale); color: var(--accent-dark); }
.badge-dark    { background: var(--ink); color: var(--white); }
.badge-outline { background: transparent; border: 1px solid var(--border-2); color: var(--muted); }
.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ─── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-dark {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 2rem;
}

.card-surface {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 2rem;
}

/* ─── GRILLES ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,140,.15) 0%, transparent 65%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

/* ─── SECTION TITRE ─────────────────────────────────────────── */
.section-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-dark);
  margin-bottom: .75rem;
  display: block;
}

/* ─── STAT BLOCK ────────────────────────────────────────────── */
.stat-block { padding: 1.5rem 0; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label-txt { font-size: .85rem; color: var(--muted); }

/* ─── DIVIDER ───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ─── FORM ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .4rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-mid);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* ─── CARTE PHYSIQUE ────────────────────────────────────────── */
.mpa-card-preview {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1.586;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mpa-card-preview::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,140,.12) 0%, transparent 65%);
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.animate-fade-up { animation: fadeUp .5s ease both; }
.animate-fade-up-2 { animation: fadeUp .5s .1s ease both; }
.animate-fade-up-3 { animation: fadeUp .5s .2s ease both; }

/* Intersection Observer helper */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── UTILITAIRES ───────────────────────────────────────────── */
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
