/* ============================================================
   WeSnus — Design System (DA officielle)
   ============================================================ */

:root {
  --bg-main:       #0e0e11;
  --bg-surface:    #18181b;
  --text-main:     #FFFFFF;
  --text-muted:    #b4b4be;
  --accent-cyan:   #00E5FF;
  --accent-orange: #f97316;
  --border-color:  #3f3f46;
  --danger:        #ff4d4d;
  --radius:        14px;
  --transition-fast: 0.2s ease;
  --transition-med:  0.35s ease;
}

/* ── Helpers : remplace les inline styles color="..." dans HTML ── */
.c-accent { color: var(--accent-cyan); }
.c-main   { color: var(--text-main); }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Grain premium — bruit visuel subliminal sur tout le site */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-main);
}

/* Focus ring accessible — visible au clavier, invisible à la souris */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }


/* ============================================================
   Accessibilité — Skip link (toutes pages)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent-cyan);
  color: #000;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 99999;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; }


/* ============================================================
   Header — Pages légales
   ============================================================ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

header.header-scrolled {
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px max(24px, env(safe-area-inset-left)) 14px max(24px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  text-decoration: none;
  text-transform: uppercase;
  transition: text-shadow 0.25s;
}

.logo:hover {
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
  text-decoration: none;
}

/* ─── Navigation ─── */

/* Pages légales : nav centrée entre logo et bouton */
.bar nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, text-shadow 0.2s;
}

nav a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ─── Bouton "Ouvrir l'app" — nav header ─── */

.btn-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  padding: 8px 20px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 10px;
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-app:hover {
  background: var(--accent-cyan);
  color: #0a0a0f;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
  text-decoration: none;
}

/* ─── CTA hero — "Lancer la Web App" ─── */

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 14px 36px;
  background: var(--accent-cyan);
  color: #0a0a0f;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.2s;
  animation: heroReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}

.hero-cta:hover {
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.55);
  transform: translateY(-2px);
  text-decoration: none;
  color: #0a0a0f;
}

/* Tablette/laptop — réduit l'espacement nav pour éviter le wrap */
@media (max-width: 1100px) {
  nav a { margin-left: 14px; font-size: 0.83rem; }
  .btn-app { margin-left: 12px; padding: 5px 12px; font-size: 0.81rem; }
}
@media (max-width: 860px) {
  nav a { margin-left: 10px; font-size: 0.79rem; }
  .btn-app { margin-left: 8px; }
}

/* Mobile : btn-app compact, hero-cta pleine largeur */
@media (max-width: 640px) {
  .btn-app { padding: 5px 11px; font-size: 0.78rem; margin-left: 10px; }
  .hero-cta { padding: 13px 28px; font-size: 0.95rem; }
}


/* ============================================================
   Typographie & Contenu — Pages légales
   ============================================================ */

main {
  max-width: 900px;
  margin: 52px auto;
  padding: 0 24px;
}

h1 {
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

h2 {
  font-size: clamp(17px, 3vw, 21px);
  font-weight: 700;
  color: var(--text-main);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 22px 0 8px;
}

.lead {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
  font-size: 0.875rem;
}

.paper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px 44px;
}

/* Titres h2 dans le papier légal — accent bord gauche */
.paper h2 {
  border-bottom: none;
  border-left: 3px solid var(--accent-cyan);
  padding-bottom: 0;
  padding-left: 14px;
  margin-left: -14px;
  color: var(--text-main);
  font-size: clamp(15px, 2.5vw, 18px);
}

p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.94rem;
  line-height: 1.8;
}

ul, ol { margin: 0 0 16px 22px; color: var(--text-muted); }
li { margin: 9px 0; font-size: 0.94rem; line-height: 1.75; }
strong { color: var(--text-main); }

a { color: var(--accent-cyan); text-decoration: none; }
a:hover {
  text-decoration: underline;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.35);
}

/* Indicateur visuel pour liens qui s'ouvrent dans un nouvel onglet */
a[target="_blank"]::after {
  content: '\202F↗';
  font-size: 0.75em;
  vertical-align: super;
  line-height: 1;
  opacity: 0.7;
}

/* ─── Alert box (terms.html) ─── */

.alert-box {
  border: 1px solid var(--danger);
  background: rgba(255, 77, 77, 0.08);
  color: #ffcccc;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.65;
}


/* ============================================================
   Footer — Pages légales
   ============================================================ */

footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  margin-top: 64px;
}

.foot {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.83rem;
}

.foot a { color: var(--accent-cyan); text-decoration: none; transition: text-shadow 0.2s; }
.foot a:hover { text-decoration: underline; text-shadow: 0 0 6px rgba(0, 229, 255, 0.4); }


/* ============================================================
   Responsive — Pages légales
   ============================================================ */

@media (max-width: 640px) {
  nav a { margin: 0 9px; }
  .paper { padding: 24px 20px; }
  .foot { flex-direction: column; gap: 6px; text-align: center; }
}


/* ============================================================
   Page d'accueil — Scope: body.home
   ============================================================ */

body.home {
  color: var(--text-main);
}

/* Annule le max-width du main légal pour la home */
body.home main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ─── Logo home (légèrement plus grand que les pages légales) ─── */
body.home header .logo {
  font-size: 1.35rem;
}

/* Home : sans nav, btn-app pousse tout à droite */
body.home .bar .btn-app {
  margin-left: auto;
}

/* ─── Sélecteur de langue ─── */

.lang-select {
  /* Pill vitré avec chevron personnalisé */
  background:
    rgba(255, 255, 255, 0.05)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 28px 6px 11px;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-left: 12px;
  letter-spacing: 0.1px;
  transition: color 0.2s, border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: middle;
}

.lang-select:hover {
  color: var(--text-main);
  border-color: rgba(0, 229, 255, 0.45);
  background-color: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-select:focus {
  color: var(--text-main);
  border-color: var(--accent-cyan);
  background-color: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
  outline: none;
}

/* ─── Hero ─── */

.hero {
  position: relative;
  text-align: center;
  padding: 80px 24px 120px;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 229, 255, 0.07) 0%, var(--bg-main) 70%);
  overflow: hidden;
}

/* Grille de points — profondeur premium */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* Évite le double translateY (reveal + heroReveal animation) */
.hero.reveal { transform: none; }

/* Aura néon centrale — halo lumineux subtil derrière le titre */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% calc(-55% + var(--aura-parallax, 0px));
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes pulseGlow {
  from { transform: scale(1);    opacity: 1; }
  to   { transform: scale(1.14); opacity: 0.6; }
}

/* Tout le contenu du hero passe devant le pseudo-élément */
.hero > * { position: relative; z-index: 1; }

/* ─── Hero layout : texte + pile 3D iPhone ─── */

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  flex: 1 1 auto;
  max-width: 720px;
}

@media (min-width: 980px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    text-align: left;
  }
  .hero-text { flex: 1 1 540px; max-width: 600px; text-align: left; }
  .hero-text h1 { margin-left: 0; margin-right: 0; }
  .hero-text p  { margin-left: 0; margin-right: 0; }
}

/* ─── Pile 3D iPhone (Hero) ─── */

.phone-stack {
  position: relative;
  flex: 0 0 auto;
  width: 360px;
  height: 540px;
  perspective: 1400px;
  perspective-origin: 50% 45%;
  margin: 0 auto;
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards;
  /* Bloque le scroll vertical hijacking lors du swipe horizontal */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.phone-stack.dragging .phone-card {
  transition-duration: 0.05s;
}

.phone-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 510px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.7s cubic-bezier(0.45, 0.05, 0.2, 1),
    filter   0.7s cubic-bezier(0.45, 0.05, 0.2, 1),
    opacity  0.5s ease;
  will-change: transform, filter;
}

.phone-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 28px rgba(0, 229, 255, 0.10);
  pointer-events: none; /* clic capté par le bouton parent */
}

.phone-card.pos-left {
  transform: translate(-50%, -50%) translateX(-150px) rotateY(32deg) scale(0.84);
  z-index: 1;
  filter: brightness(0.6) saturate(0.85);
}

.phone-card.pos-right {
  transform: translate(-50%, -50%) translateX(150px) rotateY(-32deg) scale(0.84);
  z-index: 1;
  filter: brightness(0.6) saturate(0.85);
}

.phone-card.pos-center {
  transform: translate(-50%, -50%) translateX(0) rotateY(0deg) scale(1);
  z-index: 3;
  filter: brightness(1) saturate(1);
  cursor: default;
}

.phone-card.pos-left:hover,
.phone-card.pos-left:focus-visible {
  transform: translate(-50%, -50%) translateX(-160px) rotateY(28deg) scale(0.88);
  filter: brightness(0.85) saturate(1);
  outline: none;
}

.phone-card.pos-right:hover,
.phone-card.pos-right:focus-visible {
  transform: translate(-50%, -50%) translateX(160px) rotateY(-28deg) scale(0.88);
  filter: brightness(0.85) saturate(1);
  outline: none;
}

.phone-card.pos-center:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 6px;
  border-radius: 40px;
}

/* Mobile : pile 3D plus compacte */
@media (max-width: 640px) {
  .hero-content { gap: 24px; }
  .phone-stack { width: 100%; max-width: 320px; height: 420px; }
  .phone-card { width: 180px; height: 390px; }
  .phone-card img { border-radius: 28px; }
  .phone-card.pos-left  { transform: translate(-50%, -50%) translateX(-90px) rotateY(28deg) scale(0.78); }
  .phone-card.pos-right { transform: translate(-50%, -50%) translateX(90px)  rotateY(-28deg) scale(0.78); }
  .phone-card.pos-left:hover,  .phone-card.pos-left:focus-visible  { transform: translate(-50%, -50%) translateX(-90px) rotateY(28deg) scale(0.78); }
  .phone-card.pos-right:hover, .phone-card.pos-right:focus-visible { transform: translate(-50%, -50%) translateX(90px)  rotateY(-28deg) scale(0.78); }
}

/* Tablette : taille intermédiaire */
@media (min-width: 641px) and (max-width: 979px) {
  .phone-stack { width: 320px; height: 480px; }
  .phone-card { width: 210px; height: 450px; }
  .phone-card.pos-left  { transform: translate(-50%, -50%) translateX(-120px) rotateY(30deg) scale(0.83); }
  .phone-card.pos-right { transform: translate(-50%, -50%) translateX(120px)  rotateY(-30deg) scale(0.83); }
  .phone-card.pos-left:hover,  .phone-card.pos-left:focus-visible  { transform: translate(-50%, -50%) translateX(-128px) rotateY(27deg) scale(0.86); }
  .phone-card.pos-right:hover, .phone-card.pos-right:focus-visible { transform: translate(-50%, -50%) translateX(128px)  rotateY(-27deg) scale(0.86); }
}

/* Reduced motion : annule animations 3D */
@media (prefers-reduced-motion: reduce) {
  .phone-card { transition: none; animation: none; }
  .phone-stack { animation: none; opacity: 1; }
}

/* ─── Section captures d'écran : carrousel horizontal ─── */

.screenshots-section {
  padding: 80px 0 40px;
  text-align: center;
  overflow: hidden;
}

.screenshots-section .section-label {
  margin-bottom: 8px;
  padding: 0 24px;
}

.screenshots-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.5;
  padding: 0 24px;
}

/* Carrousel pleine largeur — petits paddings latéraux */
.screenshots-carousel {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.screenshots-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* Padding réduit aux extrémités sur desktop pour montrer plus de captures */
  padding: 30px clamp(20px, 4vw, 60px) 50px;
  scrollbar-width: none;
}

.screenshots-track::-webkit-scrollbar { display: none; }

.screenshots-track img {
  flex: 0 0 auto;
  width: 280px;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 38px;
  scroll-snap-align: center;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    filter 0.45s ease;
  filter: brightness(0.92);
  cursor: pointer;
}

.screenshots-track img:hover,
.screenshots-track img:focus-visible {
  transform: translateY(-12px) scale(1.03);
  filter: brightness(1.08) saturate(1.1);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 229, 255, 0.35) inset,
    0 0 36px rgba(0, 229, 255, 0.32);
  outline: none;
}

/* Boutons flèches — plus visibles, moins en débordement */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent-cyan);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s, opacity 0.3s;
}

.carousel-nav:hover {
  background: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.45);
  transform: translateY(-50%) scale(1.06);
}

.carousel-nav.prev { left: 16px; }
.carousel-nav.next { right: 16px; }

.carousel-nav[aria-disabled="true"] {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .screenshots-section { padding: 60px 0 30px; }
  .screenshots-track { gap: 14px; padding: 24px 16px 40px; }
  .screenshots-track img { width: 230px; border-radius: 30px; }
  .screenshots-track img:hover { transform: none; } /* pas de hover en tactile */
  .carousel-nav { display: none; } /* swipe natif sur mobile */
}

/* ─── Section CTA finale — conversion vers app.wesnus.com ─── */

.cta-final {
  position: relative;
  margin: 60px 24px 80px;
  padding: 64px 32px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.10) 0%, rgba(10, 10, 15, 0.6) 70%);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 24px;
  overflow: hidden;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 229, 255, 0.12) 50%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.cta-final > * { position: relative; z-index: 1; }

.cta-final h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.cta-final p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* CTA primary dans le bloc cta-final : plus imposant + lueur pulsée */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 229, 255, 0.45), 0 4px 20px rgba(0, 0, 0, 0.3); }
  50%       { box-shadow: 0 0 38px rgba(0, 229, 255, 0.75), 0 4px 24px rgba(0, 0, 0, 0.35); }
}
.cta-buttons .hero-cta {
  margin-top: 0;
  padding: 16px 44px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  animation: ctaGlow 2.4s ease-in-out infinite;
}
.cta-buttons .hero-cta:hover {
  animation: none;
  box-shadow: 0 0 52px rgba(0, 229, 255, 0.8), 0 6px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px) scale(1.03);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid rgba(0, 229, 255, 0.5);
  border-radius: 12px;
  color: var(--accent-cyan);
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cta-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
}

@media (max-width: 640px) {
  .cta-final { margin: 40px 16px 56px; padding: 48px 22px; }
  .cta-buttons .hero-cta,
  .cta-buttons .cta-secondary { width: 100%; justify-content: center; }
}

/* — CTA inline après le carrousel — */
.carousel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto 24px;
  padding: 12px 26px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.10);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.carousel-cta:hover {
  background: rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ─── Indicateur de scroll ─── */

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  color: var(--text-muted);
  opacity: 0.5;
  animation: scrollBounce 2.2s ease-in-out infinite;
  z-index: 1;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  display: block;
  margin-top: -6px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.35; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 0.75; }
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 24px;
  border-bottom: none;
  letter-spacing: -0.03em;
  line-height: 1.08;
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  will-change: opacity, transform, filter;
}

/* Texte accent du hero — gradient lumineux */
.hero h1 span,
.hero span {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, rgba(0, 229, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
  will-change: opacity, transform, filter;
}

.warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.1);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(249, 115, 22, 0.38);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  text-transform: uppercase;
  opacity: 0;
  animation: heroReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s forwards,
             badgePulse 3s ease-in-out 1s infinite;
}

@keyframes badgePulse {
  0%, 100% { border-color: rgba(249, 115, 22, 0.2); }
  50%       { border-color: rgba(249, 115, 22, 0.55); box-shadow: 0 0 12px rgba(249, 115, 22, 0.12); }
}

/* ─── Label de section (titre discret uppercase) ─── */

.section-label {
  display: block;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 40px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0.65;
}

/* ─── Grille features — Bento Box ─── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.3s;
}

/* Spotlight — halo lumineux qui suit le curseur */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 229, 255, 0.06),
    transparent 40%
  );
  z-index: 0;
}

.card:hover::before { opacity: 1; }

/* Le contenu des cartes passe devant le spotlight */
.card > * { position: relative; z-index: 1; }

.card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

/* ─── Icône de carte ─── */

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.07);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-med), box-shadow var(--transition-med);
}

.card:hover .card-icon {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

/* Filet lumineux au sommet de la carte au hover */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.55), transparent);
  opacity: 0;
  transition: opacity var(--transition-med);
  z-index: 1;
}
.card:hover::after { opacity: 1; }

/* ─── Section "Aussi inclus" — bandeau horizontal ─── */

.also-includes {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 90px;
  text-align: center;
}

.also-includes h2 {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.15em;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.includes-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.includes-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, border-color 0.3s;
}

.includes-item:hover {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.2);
}

.includes-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-cyan);
  opacity: 0.6;
  flex-shrink: 0;
}

.includes-item span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ─── Section FAQ ─── */

.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
}

.faq h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
  color: var(--text-main);
}

/* Ligne décorative sous le titre FAQ */
.faq h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  border-radius: 2px;
  margin: 14px auto 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-hidden { display: none; }

.faq-link {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: none;
}
.faq-link:hover { text-decoration: underline; }

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item:hover {
  border-color: rgba(0, 229, 255, 0.35);
}

.faq-item[open] {
  border-color: rgba(0, 229, 255, 0.5);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Chevron qui pivote à l'ouverture */
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.faq-item[open] {
  border-color: rgba(0, 229, 255, 0.4);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.02) 0%, var(--bg-surface) 50%);
}

.faq-item[open] summary {
  color: var(--accent-cyan);
}

.faq-item > p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  animation: faqReveal 0.28s ease;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Footer home — 4 colonnes ─── */

body.home footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  margin-top: 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-brand .footer-copy {
  color: var(--text-muted); /* #b4b4be — ratio ~8.5:1, WCAG AAA */
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li { margin: 10px 0; }

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  padding-left: 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
  padding-left: 7px;
  text-shadow: none;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: #3f3f46;
  font-size: 0.76rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* ─── Health Warning ─── */

.health-warning {
  background: rgba(249, 115, 22, 0.04);
  border-left: 2px solid rgba(249, 115, 22, 0.45);
  border-radius: 0 8px 8px 0;
  padding: 10px 24px;
  max-width: 900px;
  margin: 40px auto 56px;
}

.health-warning p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 0;
}

.health-warning strong {
  color: rgba(249, 115, 22, 0.8);
  font-weight: 600;
}

/* ─── Scroll Reveal Animations ─── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger des cartes bento */
.card.reveal:nth-child(1) { transition-delay: 0.05s; }
.card.reveal:nth-child(2) { transition-delay: 0.12s; }
.card.reveal:nth-child(3) { transition-delay: 0.19s; }
.card.reveal:nth-child(4) { transition-delay: 0.26s; }
.card.reveal:nth-child(5) { transition-delay: 0.33s; }
.card.reveal:nth-child(6) { transition-delay: 0.40s; }

/* Respecter les préférences système pour les animations réduites */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-indicator { animation: none; opacity: 0.4; }
  .hero::before     { animation: none; }
  .hero h1,
  .hero p,
  .warning-badge {
    animation: none;
    opacity: 1;
    filter: none;
  }
  .age-gate-box     { animation: none; }
  .footer-col ul li a { transition: none; }
}


/* ─── Responsive home ─── */

/* Desktop (≥ 901px) : grille 3 colonnes, 2 rangées (6 cartes) */
@media (min-width: 901px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* Tablette : grille 2 colonnes (6 cartes = 3 rangées) */
@media (min-width: 641px) and (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  /* Header mobile : une seule ligne, pas de wrapping */
  .bar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  }

  /* Logo légèrement réduit pour libérer de la place */
  body.home header .logo { font-size: 1.15rem; }

  /* btn-app compact mais lisible */
  .bar .btn-app {
    margin-left: auto;
    flex-shrink: 0;
    padding: 7px 13px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Sélecteur de langue : empêche débordement, reste sur la ligne */
  .lang-select {
    flex-shrink: 0;
    margin-left: 8px;
    padding: 7px 24px 7px 9px;
    font-size: 0.8rem;
    max-width: 105px;
    min-height: unset;
    height: 36px;
  }

  /* Cache la nav des pages légales — liens dans le footer */
  header nav { display: none; }

  .hero { padding: 60px 20px 80px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 32px; }
  .health-warning { padding: 8px 16px; margin: 36px 16px 48px; }
  .section-label  { padding: 0 20px; margin-bottom: 16px; }

  /* ── Carousel horizontal style App Store ── */
  .features {
    /* Flex horizontal sans retour à la ligne */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    /* Scroll snap natif */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Déborde des bords de l'écran tout en gardant le padding interne */
    margin-left: -20px;
    margin-right: -20px;
    padding: 10px 20px 30px 20px;
    gap: 16px;
    /* Scrollbar invisible */
    scrollbar-width: none;
  }
  .features::-webkit-scrollbar { display: none; }

  /* ── Cartes du carousel ── */
  .card {
    /* Largeur fixe : la carte suivante dépasse légèrement à droite */
    flex: 0 0 80vw;
    min-width: 80vw;
    max-width: 80vw;
    /* Centrage parfait au relâchement du doigt */
    scroll-snap-align: center;
    /* Layout interne en colonne */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 28px 24px 32px;
    border-radius: 22px;
    /* Ombre permanente — visibilité sans hover */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }

  .card .card-icon {
    margin-bottom: 18px;
    margin-top: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  .card p {
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text-muted);
  }

  /* Animations reveal — scale + fade élastique (stagger = accordéon gauche→droite) */
  .reveal {
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .reveal.active {
    transform: translateY(0) scale(1);
  }

  /* Stagger accordéon : chaque carte entre légèrement après la précédente */
  .card.reveal:nth-child(1) { transition-delay: 0.03s; }
  .card.reveal:nth-child(2) { transition-delay: 0.09s; }
  .card.reveal:nth-child(3) { transition-delay: 0.15s; }
  .card.reveal:nth-child(4) { transition-delay: 0.21s; }
  .card.reveal:nth-child(5) { transition-delay: 0.27s; }
  .card.reveal:nth-child(6) { transition-delay: 0.33s; }

  /* ── Section "Aussi inclus" mobile ── */
  .also-includes {
    padding: 60px 20px 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 20px;
  }
  .includes-grid {
    justify-content: center;
    gap: 10px;
  }
  .includes-item {
    padding: 9px 16px;
    gap: 7px;
  }
  .includes-item svg {
    width: 15px;
    height: 15px;
  }
  .includes-item span {
    font-size: 0.78rem;
  }

  /* ── FAQ mobile ── */
  .faq {
    padding: 100px 20px;
  }
  .faq-item summary {
    padding: 18px 20px;
    font-size: 0.92rem;
  }
  .faq-item > p {
    padding: 0 20px 18px;
    font-size: 0.87rem;
    line-height: 1.7;
  }

  /* ── Footer mobile — grille 2 colonnes ── */
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
    text-align: left;
    padding: 56px 20px 0;
  }
  /* Brand + Légal occupent toute la largeur */
  .footer-brand            { grid-column: span 2; }
  .footer-grid .footer-col:last-of-type { grid-column: span 2; }
  /* Espacement liens */
  .footer-col ul li { margin: 6px 0; }
  /* Copyright centré tout en bas */
  .footer-bottom {
    margin-top: 60px;
    text-align: center;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
    width: 100%;
  }
}

/* Très petits écrans (≤ 380px) : header encore plus compact */
@media (max-width: 380px) {
  .bar { padding: 9px 10px; }
  body.home header .logo { font-size: 1rem; }
  .bar .btn-app { padding: 6px 10px; font-size: 0.75rem; }
  .lang-select { max-width: 80px; font-size: 0.75rem; padding-right: 20px; margin-left: 6px; }
}


/* ============================================================
   Page Install — Tuto "Ajouter à l'écran d'accueil"
   ============================================================ */

.install-main {
  max-width: 680px;
  margin: 60px auto 80px;
  padding: 0 24px;
}

.install-hero {
  text-align: center;
  margin-bottom: 40px;
}

.install-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.install-hero p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Tabs */
.install-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 6px;
}

.install-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.install-tab.active {
  background: var(--accent-cyan);
  color: #0a0a0f;
}

.install-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

/* Panels */
.install-panel--hidden { display: none; }

.install-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Steps */
.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s;
}

.install-step:hover {
  border-color: rgba(0, 229, 255, 0.25);
}

.step-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #0a0a0f;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}

.step-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-cyan);
}

.step-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Benefits */
.install-cta-section {
  text-align: center;
  margin-top: 40px;
  padding: 8px 0 16px;
}
.install-cta-section .hero-cta {
  margin-top: 0;
  animation: none;
}

.install-why {
  margin-top: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 28px;
}

.install-why h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 20px;
}

.install-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.why-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: var(--accent-cyan);
}

/* ── Bannière "Ajouter à l'écran d'accueil" ── */
.ath-banner {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  z-index: 90;
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.ath-banner-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  min-width: 0;
}

.ath-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ath-banner-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--accent-cyan);
  color: #0a0a0f;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.2s;
}

.ath-banner-btn:hover {
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
  text-decoration: none;
  color: #0a0a0f;
}

.ath-banner-dismiss {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.ath-banner-dismiss:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
  .ath-banner { flex-wrap: wrap; }
  .ath-banner-text { font-size: 0.82rem; }
}

@media (max-width: 640px) {
  .install-main { margin: 40px auto 60px; }
  .install-step { padding: 14px 16px; gap: 12px; }
  .step-icon { display: none; }
  .install-why { padding: 20px; }
}

/* ============================================================
   Modale vérification d'âge (18+)
   ============================================================ */

#age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#age-gate.hidden { display: none; }

.age-gate-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 52px 44px;
  text-align: center;
  max-width: 440px;
  max-height: 90dvh;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 229, 255, 0.05);
  animation: ageGateIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes ageGateIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.age-gate-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.age-gate-subtitle {
  color: var(--danger);
  font-size: 0.78rem;
  margin: 0 0 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.age-gate-box h2 {
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 12px;
  border-bottom: none;
  letter-spacing: -0.3px;
}

.age-gate-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 40px;
  line-height: 1.65;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#age-yes {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  padding: 15px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  letter-spacing: 0.2px;
  transition: box-shadow 0.25s, transform 0.15s;
}

#age-yes:hover {
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.55);
  transform: translateY(-1px);
}

#age-no {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}

#age-no:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* Scroll bloqué + contenu flouté pendant la vérification */

body.home.gated { overflow: hidden; }

body.home.gated #main-content,
body.home.gated header,
body.home.gated footer {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}


/* ============================================================
   Scrollbar custom — immersion Dark Mode (Webkit/Blink)
   ============================================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 999px;
  border: 2px solid var(--bg-main);
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ─────────────────────────────────────────────────────────
   Section aide à l'arrêt du tabac / nicotine
   ───────────────────────────────────────────────────────── */

.help-section {
  max-width: 760px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.help-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(255, 107, 107, 0.55);
  border-radius: 14px;
  padding: 28px 32px;
}

.help-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-top: 2px;
}

.help-icon svg {
  width: 100%;
  height: 100%;
  stroke: rgba(255, 107, 107, 0.75);
}

/* Ligne d'avertissement santé dans le bloc fusionné */
.help-warning-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.help-warning-text strong {
  color: rgba(249, 115, 22, 0.85);
  font-weight: 600;
}

.help-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.help-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 16px;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 229, 255, 0.35);
  transition: text-decoration-color 0.2s, color 0.2s;
  min-height: 44px;  /* cible tactile */
  padding: 4px 0;
}

.help-link:hover,
.help-link:focus-visible {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.help-link:active {
  opacity: 0.75;
}

.ext-icon {
  font-style: normal;
  font-size: 0.8em;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .help-inner {
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px;
  }

  .help-icon {
    width: 28px;
    height: 28px;
  }
}

/* ─────────────────────────────────────────────────────────
   Mobile — Touch & Safe Area
   ───────────────────────────────────────────────────────── */

/* Safe-area insets pour encoches / Dynamic Island (iOS 11+) */
/* Horizontal padding handled by .bar directly via max(24px, env(safe-area-inset-*)) */
header {
  padding-left: 0;
  padding-right: 0;
}

footer {
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* Touch devices — effets lumineux permanents + suppression du lift hover */
@media (hover: none) {
  .card::before { opacity: 0.75; }
  .card::after  { opacity: 0.7;  }
  .card         { transform: none; } /* pas d'!important — :active peut redéfinir */
}

/* Gros pointeur (doigt) — cibles de tap minimum 44×44px + feedback tactile */
@media (pointer: coarse) {
  .lang-select {
    min-height: 44px;
    padding: 9px 30px 9px 12px;
  }

  /* Retour haptique visuel au tap sur les cartes */
  .card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }
  .card:active {
    transform: scale(0.975);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  }

  /* Footer links — cibles tactiles accessibles */
  .footer-col ul li a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  #age-yes,
  #age-no {
    min-height: 52px;
  }

  body.home nav a,
  .bar nav a {
    padding: 10px 8px;
    display: inline-block;
  }
}

/* États :active pour retour tactile immédiat */
#age-yes:active {
  transform: scale(0.97);
  box-shadow: none;
}

#age-no:active {
  color: var(--text-main);
  border-color: var(--text-muted);
  transform: scale(0.97);
}
