:root{
  --max: 1080px;

  --bg0: #070A12;
  --bg1: #0B0F1E;

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --faint: rgba(255,255,255,.52);

  --accent: #8B5CF6;
  --accent2: #22D3EE;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

/* ✅ Fix “page bouge de droite à gauche” sur mobile */
html, body{
  width: 100%;
  overflow-x: hidden;
}

body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(139,92,246,.25), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(34,211,238,.18), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  min-height:100vh;
}

img, svg{
  max-width: 100%;
  height: auto;
  display: block;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

.container{
  width:100%;
  max-width: var(--max);
  margin:0 auto;
  padding: 0 20px;
}

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index:9999;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
  gap: 12px;
  min-width: 0;
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:700;
  letter-spacing:.2px;
  min-width: 0;
}

.brand-text{ white-space: nowrap; }

.brand-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(139,92,246,.10);
}

.nav{
  display:flex;
  gap:18px;
  align-items:center;
  font-size:14px;
  color: var(--muted);
  min-width: 0;
}

.nav a{
  padding:8px 10px;
  border-radius:12px;
  white-space: nowrap;
}

.nav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* Hero */
.hero{
  padding: 70px 0 30px;
}

.hero-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 28px;
  align-items: start;
}

.eyebrow{
  margin:0 0 10px;
  color: var(--muted);
  font-weight:600;
  font-size:13px;
  letter-spacing:.6px;
  text-transform: uppercase;
}

h1{
  margin:0 0 14px;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -1px;
}

.accent{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.lead{
  margin:0 0 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Buttons */
.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(139,92,246,.95), rgba(34,211,238,.55));
  color: #0b0b12;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform .15s ease, opacity .15s ease;
}

.btn:hover{ transform: translateY(-1px); }

.btn-ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow: none;
}

.btn-small{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 13px;
}

/* Chips */
.meta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.chip{
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-size: 13px;
}

.chip:hover{
  color: var(--text);
  background: rgba(255,255,255,.08);
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Hero card */
.hero-card-top{
  display:flex;
  gap: 12px;
  align-items:center;
  margin-bottom: 14px;
}

.hero-card-meta{
  display:flex;
  flex-direction: column;
  min-width: 0;
}

.avatar{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}

.hero-name{ margin:0; font-weight: 900; }
.hero-role{ margin:3px 0 0; color: var(--muted); font-size: 13px; }

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.stat{
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  min-width: 0;
}

.stat-value{ margin:0; font-weight: 900; }
.stat-label{ margin:6px 0 0; font-size: 12px; color: var(--muted); }

/* Sections */
.section{
  padding: 54px 0;
}

.section-head{
  margin-bottom: 18px;
}

h2{
  margin:0;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.muted{ color: var(--muted); margin: 8px 0 0; }
.fine{ color: var(--faint); font-size: 12.5px; line-height: 1.6; margin: 14px 0 0; }

/* Grids */
.grid{
  display:grid;
  gap: 16px;
}

.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Apps */
.app-card h3{ margin:0; font-size: 18px; }

.app-head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  margin-bottom: 12px;
  min-width: 0;
}

/* App icon (robust sizing) */
.app-icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.app-icon img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
}

.app-tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.tag{
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 6px 10px;
  border-radius: 999px;
}

/* App actions */
.app-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* ✅ App Store badge (ios.svg) */
.store-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.30);
  transition: transform .15s ease, opacity .15s ease;
  overflow: hidden;
}

.store-badge:hover{
  transform: translateY(-1px);
  opacity: .95;
}

.store-badge img{
  height: 34px;
  width: auto;
  display:block;
}

.callout{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(139,92,246,.10);
  border: 1px solid rgba(139,92,246,.22);
  color: rgba(255,255,255,.86);
}

.callout p{ margin:0; line-height: 1.6; }

/* Lists */
.list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* Timeline */
.timeline{
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.tl-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.tl-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(34,211,238,.08);
}

.tl-title{
  margin:0;
  font-weight: 900;
}

/* Links */
.links{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.link-row{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
}

.link-row:hover{
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.arrow{ color: var(--faint); }

.footer{
  margin-top: 24px;
  padding: 18px 0 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ✅ Contact spacing: espace entre texte “Email/Location” et boutons */
.contact-meta{
  margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 980px){
  h1{ font-size: 40px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .nav{ gap: 8px; }
}

@media (max-width: 520px){
  .topbar-inner{
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
  }
  .nav{
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px){
  h1{ font-size: 34px; }
}
