/* ============================================
   Presta Sync — Landing page
   Design pro, marquant, orienté conversion
   ============================================ */

:root {
  /* Couleurs — thème sombre avec accent cyan/teal */
  --bg: #0a0b0f;
  --bg-elevated: #12141a;
  --bg-card: #16181f;
  --text: #e8eaef;
  --text-muted: #8b8f9a;
  --accent: #00d4aa;
  --accent-secondary: #00a3ff;
  --accent-bg: rgba(0, 212, 170, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --gradient-hero: linear-gradient(135deg, #00d4aa 0%, #00a3ff 50%, #7c5cff 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.25), transparent 60%);

  /* Typo */
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  /* Espacements */
  --container: min(92%, 1140px);
  --section-padding: clamp(4rem, 10vw, 7rem);
  --header-height: 124px;

  /* Design system — animations (durées en ms pour cohérence GSAP) */
  --motion-duration-fast: 0.25;
  --motion-duration-normal: 0.4;
  --motion-duration-slow: 0.6;
  --motion-duration-slower: 0.9;
  --motion-stagger: 0.08;
  --motion-stagger-cards: 0.12;
  --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --motion-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* État initial des éléments révélés au scroll (évite le flash) */
.js-animations .section-title,
.js-animations .section-lead,
.js-animations .feature-card,
.js-animations .step,
.js-animations .cta-title,
.js-animations .cta-lead,
.js-animations .cta-buttons {
  opacity: 0;
  transform: translateY(28px);
}
@media (prefers-reduced-motion: reduce) {
  .js-animations .section-title,
  .js-animations .section-lead,
  .js-animations .feature-card,
  .js-animations .step,
  .js-animations .cta-title,
  .js-animations .cta-lead,
  .js-animations .cta-buttons {
    opacity: 1;
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: var(--container); margin-inline: auto; padding-inline: 1rem; }

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  box-sizing: border-box;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo:hover .logo-img { opacity: 0.9; }
.logo-img {
  height: 80px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s ease;
}
@media (min-width: 769px) {
  .logo-img {
    height: 100px;
    max-width: 400px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--motion-ease-out);
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 0.5rem;
}
.lang-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.lang-btn:first-child { border-radius: 6px 0 0 6px; border-right: none; }
.lang-btn:last-child { border-radius: 0 6px 6px 0; }
.lang-btn:hover { color: var(--text); border-color: var(--text-muted); }
.lang-btn.is-active,
.lang-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: rgba(0, 212, 170, 0.08); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--motion-ease-out), box-shadow 0.25s var(--motion-ease-out), background 0.25s ease;
}
.btn:hover {
  transform: scale(1.02);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--gradient-hero);
  color: #0a0b0f;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 212, 170, 0.45);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: rgba(255,255,255,0.12);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--accent); }
.btn-large { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-icon { display: inline-flex; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.85;
}
/* Grille subtile avec léger mouvement (désactivé si reduced-motion) */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 15%, transparent 65%);
  animation: hero-grid-drift 25s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid { animation: none; }
}
@keyframes hero-grid-drift {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 64px 32px; }
}

/* Blobs organiques animés (mesh-like) */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  animation-duration: 18s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}
.hero-blob-1 {
  width:  min(90vw, 520px);
  height: min(90vw, 520px);
  background: rgba(0, 212, 170, 0.22);
  top: -15%;
  right: -10%;
  animation-name: hero-blob-float-1;
}
.hero-blob-2 {
  width:  min(70vw, 380px);
  height: min(70vw, 380px);
  background: rgba(0, 163, 255, 0.2);
  bottom: 5%;
  left: -12%;
  animation-name: hero-blob-float-2;
  animation-duration: 22s;
  animation-delay: -5s;
}
.hero-blob-3 {
  width:  min(50vw, 280px);
  height: min(50vw, 280px);
  background: rgba(124, 92, 255, 0.15);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-name: hero-blob-pulse;
  animation-duration: 12s;
  animation-delay: -2s;
}
.hero-blob-4 {
  width:  min(40vw, 220px);
  height: min(40vw, 220px);
  background: rgba(0, 212, 170, 0.12);
  top: 20%;
  right: 25%;
  animation-name: hero-blob-float-2;
  animation-duration: 20s;
  animation-delay: -8s;
}
@keyframes hero-blob-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-4%, 3%) scale(1.05); }
  66%  { transform: translate(2%, -2%) scale(0.98); }
}
@keyframes hero-blob-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -3%) scale(1.08); }
}
@keyframes hero-blob-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform, opacity;
  animation: hero-glow-breathe 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}
.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}
.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  bottom: 10%;
  left: -80px;
  animation-delay: -3s;
}
@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.05); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 4rem;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; justify-content: center; }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.hero-title-line {
  display: block;
}
.hero-title-line:first-child { margin-bottom: 0.05em; }
.hero-title-word {
  display: inline-block;
  white-space: pre;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-title-accent {
  background: linear-gradient(135deg, #00d4aa 0%, #00a3ff 50%, #7c5cff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-title-shine 6s ease-in-out infinite;
}
.hero-title-tagline {
  display: block;
  font-size: clamp(1.08rem, 2.5vw + 0.9rem, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.45em;
  margin-bottom: 0;
  color: #2effd4;
  text-shadow: 0 0 30px rgba(46, 255, 212, 0.5);
  animation: hero-tagline-glow 2.5s ease-in-out infinite;
}
.hero-title-tagline .hero-title-word {
  letter-spacing: 0.14em;
}
@media (prefers-reduced-motion: reduce) {
  .hero-title-accent,
  .hero-title-tagline { animation: none; }
}
@keyframes hero-title-shine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
@keyframes hero-tagline-glow {
  0%, 100% { text-shadow: 0 0 30px rgba(46, 255, 212, 0.5); }
  50% { text-shadow: 0 0 45px rgba(46, 255, 212, 0.7); }
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 2rem;
  line-height: 1.65;
}
@media (max-width: 900px) { .hero-lead { margin-inline: auto; } }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* État initial pour entrée animée (évite le flash) — désactivé si pas de JS ou reduced-motion */
.js-hero .hero [data-hero-el] .hero-title-line:not(.hero-title-tagline) .hero-title-word,
.js-hero .hero .hero-badge,
.js-hero .hero .hero-lead,
.js-hero .hero .hero-ctas,
.js-hero .hero .hero-note,
.js-hero .hero .hero-visual {
  opacity: 0;
}
/* Tagline visible dès le chargement, position de départ pour le slide-up */
.js-hero .hero .hero-title-tagline .hero-title-word {
  transform: translateY(12px);
}
@media (prefers-reduced-motion: reduce) {
  .js-hero .hero [data-hero-el] .hero-title-line:not(.hero-title-tagline) .hero-title-word,
  .js-hero .hero .hero-badge,
  .js-hero .hero .hero-lead,
  .js-hero .hero .hero-ctas,
  .js-hero .hero .hero-note,
  .js-hero .hero .hero-visual {
    opacity: 1;
  }
  .js-hero .hero .hero-title-tagline .hero-title-word {
    transform: none;
  }
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-phone-img-wrap {
  position: relative;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
  line-height: 0;
}
.hero-phone-img {
  width: 480px;
  max-width: 100%;
  min-width: 260px;
  height: auto;
  display: block;
}
.phone-mockup {
  position: relative;
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.4));
}
.phone-frame {
  width: 280px;
  height: 568px;
  background: linear-gradient(145deg, #1c1e24 0%, #0f1114 100%);
  border-radius: 36px;
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 0 1px rgba(0,0,0,0.3);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-screen--hero {
  background: linear-gradient(180deg, #0e1014 0%, #16181f 50%, #0c0d12 100%);
}
.phone-app-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.phone-app-hero-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(0, 212, 170, 0.15));
}
.phone-app-hero-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.phone-app-hero-slogan {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  max-width: 180px;
}
.phone-app-hero-slogan br {
  display: block;
}

/* ----- Sections communes ----- */
.section {
  padding-block: var(--section-padding);
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--text);
  text-align: center;
}
.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.6;
}

/* ----- Features ----- */
.features {
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
}
.features-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0, 212, 170, 0.06), transparent 55%);
  pointer-events: none;
}
.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  position: relative;
}
@media (min-width: 560px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 900px) {
  .features-grid { gap: 1.75rem; }
}
.feature-card {
  background: linear-gradient(145deg, rgba(22, 24, 31, 0.95) 0%, rgba(18, 20, 26, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s var(--motion-ease-out), transform 0.35s var(--motion-ease-spring), box-shadow 0.35s var(--motion-ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), transparent 40%, transparent 70%, rgba(0, 163, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 212, 170, 0.08);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 20px; }
.feature-icon-wrap {
  display: inline-flex;
  margin-bottom: 1.25rem;
  transition: transform 0.35s var(--motion-ease-spring);
}
.feature-card:hover .feature-icon-wrap {
  transform: scale(1.08);
}
.feature-icon {
  display: inline-flex;
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}
.feature-card:hover .feature-icon {
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.2), 0 4px 16px rgba(0, 212, 170, 0.15);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.feature-card:hover h3 { color: var(--text); }
.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.2s ease;
}
.feature-card:hover p { color: rgba(232, 234, 239, 0.85); }
@media (prefers-reduced-motion: reduce) {
  .feature-card:hover .feature-icon-wrap { transform: none; }
}

/* ----- Notifications push ----- */
.notifications-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.notifications-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .notifications-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .notifications-visual { order: -1; justify-content: center; }
}
.notifications-content .section-title {
  margin-bottom: 0.5rem;
}
.notifications-lead {
  margin-bottom: 1.5rem;
}
.notifications-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (max-width: 900px) {
  .notifications-features { align-items: center; }
}
.notifications-features li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
}
.notifications-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.notifications-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 420px;
}
@media (max-width: 900px) {
  .notifications-visual { min-height: 380px; justify-content: center; }
}

/* Cadre smartphone type iPhone */
.notifications-phone {
  position: relative;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.45));
}
.notifications-phone-frame {
  width: 260px;
  height: 520px;
  background: linear-gradient(165deg, #2a2c32 0%, #1a1c22 100%);
  border-radius: 38px;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}
.notifications-phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0a0b0f;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}
.notifications-phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0c0d12 0%, #16181f 40%, #0e1014 100%);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.notifications-phone-screen--video {
  display: block;
}
.notifications-video-wrap {
  position: relative;
  max-width: 280px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
}
.notifications-video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
/* Barre de statut type iOS (conservé si réutilisation) */
.notifications-statusbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 8px;
  padding-top: max(12px, env(safe-area-inset-top));
  min-height: 44px;
}
.notifications-time {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}
.notifications-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.notifications-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: notifications-live-pulse 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .notifications-live-dot { animation: none; }
}
@keyframes notifications-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}
.notifications-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.notifications-signal::before,
.notifications-wifi::before {
  content: "";
  display: block;
  width: 16px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10' fill='%23fff' opacity='0.9'%3E%3Cpath d='M0 8h2v2H0V8zm3-3h2v5H3V5zm3-3h2v8H6V2zm3-3h2v11H9V-1z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.notifications-wifi::before {
  width: 14px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='%23fff' opacity='0.9'%3E%3Cpath d='M7 2a6 6 0 0 1 4.2 1.7l-.9.9A4.5 4.5 0 0 0 7 3.5 4.5 4.5 0 0 0 2.7 4.8l-.9-.9A6 6 0 0 1 7 2zm0 3a3 3 0 0 1 2.1.9l-.9.9A1.5 1.5 0 0 0 7 6.5 1.5 1.5 0 0 0 5.8 5.8l-.9-.9A3 3 0 0 1 7 5zm0 3.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1z'/%3E%3C/svg%3E");
}
.notifications-battery {
  display: block;
  width: 22px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  position: relative;
}
.notifications-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 1.5px;
  height: 4px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 1px 1px 0;
}
.notifications-battery::before {
  content: "";
  position: absolute;
  inset: 2px 2px 2px 2px;
  width: 75%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
}

/* Zone des notifications (lock screen style) — overflow visible pour l’animation d’entrée */
.notifications-feed {
  flex: 1;
  padding: 8px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
  min-height: 0;
}
/* Cartes notification type iOS — bannière slide from top, blur, spring */
.notif-card {
  flex-shrink: 0;
  padding: 12px 14px;
  background: rgba(42, 44, 52, 0.72);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.2),
    0 10px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(-40px) scale(0.97);
  will-change: transform, opacity;
  transition: box-shadow 0.3s ease;
}
.notif-card:first-child {
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    0 14px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 212, 170, 0.25),
    0 0 32px rgba(0, 212, 170, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.notif-card .notif-app-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.notif-card .notif-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}
.notif-app {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  width: 100%;
  letter-spacing: 0.02em;
}
.notif-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  width: 100%;
}
.notif-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  width: 100%;
}
.notif-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
}
/* Fallback : si pas de JS ou animation non déclenchée, les cartes apparaissent après 1,5 s */
.no-js .notif-card,
.notifications-feed:not(.notifications-feed--animated) .notif-card {
  animation: notif-card-fallback 0.5s ease-out 1.5s forwards;
}
@keyframes notif-card-fallback {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .notif-card,
  .no-js .notif-card,
  .notifications-feed:not(.notifications-feed--animated) .notif-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: none;
  }
}

/* ----- Steps ----- */
.steps { background: var(--bg); }
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
  margin-inline: auto;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 12px;
}
.step-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.step-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ----- CTA ----- */
.cta {
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 212, 170, 0.12), transparent 50%);
  pointer-events: none;
  animation: cta-bg-pulse 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cta-bg { animation: none; }
}
@keyframes cta-bg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.cta-inner {
  position: relative;
  text-align: center;
  padding-block: 4rem;
}
.cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.cta-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ----- Footer ----- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.footer-logo .logo-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  opacity: 0.85;
}
.footer-logo:hover .logo-img { opacity: 1; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.75rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-legal a:hover { color: var(--accent); }

/* ----- Pages légales (fr/legal, privacy, terms) ----- */
.page-legal .header { position: relative; }
.main-legal {
  padding-top: var(--header-height);
  padding-bottom: var(--section-padding);
  min-height: 60vh;
}
.legal-content {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 2rem;
}
.legal-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text);
  margin: 0 0 0.5rem;
}
.legal-updated,
.legal-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.5;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin: 2rem 0 0.6rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { opacity: 0.9; }

/* ----- Page Support / FAQ ----- */
.support-content { max-width: 720px; margin: 0 auto; }
.support-header { margin-bottom: 2rem; }
.support-header h1 { margin-bottom: 0.5rem; }
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-question {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  padding: 1rem 2.5rem 1rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: var(--text-muted);
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(90deg);
  background: var(--accent);
}
.faq-question:hover { color: var(--accent); }
.faq-answer {
  padding: 0 0 1.25rem;
}
.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.support-contact {
  margin-top: 2.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
}
.support-contact a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.support-contact a:hover { opacity: 0.9; }

/* ----- Mobile nav ----- */
@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg);
    padding: 2rem;
  }
}

/* ----- Bannière cookies ----- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.5rem;
  background: rgba(18, 20, 26, 0.98);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s var(--motion-ease-out);
}
.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.cookie-banner-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cookie-banner-link:hover {
  opacity: 0.9;
}
.cookie-banner-btn {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.cookie-banner-btn:hover {
  background: #00e5b8;
}
.cookie-banner-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner-btn {
    align-self: center;
  }
}
