/* ==========================================================================
   FOCUS Audit & Conseil — design commun à toutes les pages publiques
   Composants des pages (titres, boutons, cartes, fonds, animations).
   Les couleurs, la barre et le pied de page sont dans css/focus-chrome.css,
   à charger avant ce fichier.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Base partagée
   -------------------------------------------------------------------------- */
.f-body {
  font-family: var(--f-font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.f-body ::selection { background: rgba(16, 185, 129, .22); }
.f-body h1, .f-body h2, .f-body h3 { letter-spacing: -0.025em; text-wrap: balance; }

.gradient-text,
.text-gradient {
  background: var(--f-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Les ancres ne passent pas sous la barre flottante */
.f-body [id] { scroll-margin-top: 6rem; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--f-ease), transform .9s var(--f-ease); }
.reveal.active { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* --------------------------------------------------------------------------
   Étiquette de section (« eyebrow »)
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem .4rem .7rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--f-emerald-600);
  background: rgba(16, 185, 129, .08);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .18);
}
.eyebrow::before {
  content: ""; width: .45rem; height: .45rem; border-radius: 999px;
  background: var(--f-grad);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}
.eyebrow--blue { color: var(--f-blue-600); background: rgba(59, 130, 246, .08); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .2); }
.eyebrow--dark { color: var(--f-emerald-300); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.25rem; padding: 0 1.75rem;
  border-radius: 999px;
  font-family: inherit; font-size: .9rem; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .35s var(--f-ease), box-shadow .35s var(--f-ease), background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--f-emerald); outline-offset: 3px; }
.btn svg, .btn i { width: 1rem; height: 1rem; transition: transform .35s var(--f-ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary {
  color: #fff; background: var(--f-grad);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(59, 130, 246, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; left: -120%;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%);
  transition: left .7s var(--f-ease);
}
.btn-primary:hover::after { left: 120%; }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-light { color: var(--f-ink); background: #fff; box-shadow: 0 10px 30px -12px rgba(2, 6, 23, .35); }
.btn-outline { color: var(--f-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--f-line), 0 1px 2px rgba(15, 23, 42, .04); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px #cbd5e1, 0 10px 24px -14px rgba(15, 23, 42, .3); }
.btn-dark { color: #fff; background: var(--f-ink); }
.btn-dark:hover { background: var(--f-ink-800); }
.btn-sm { min-height: 2.6rem; padding: 0 1.15rem; font-size: .82rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border-radius: var(--f-radius);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(15, 23, 42, .18);
  transition: transform .5s var(--f-ease), box-shadow .5s var(--f-ease);
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .25), 0 24px 50px -22px rgba(15, 23, 42, .35);
}
/* Liseré dégradé qui apparaît au survol */
.card-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--f-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--f-ease); pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

.card-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border-radius: var(--f-radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* Pastille d'icône */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 1rem;
  color: #fff; background: var(--f-grad);
  box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .6), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.icon-tile svg, .icon-tile i { width: 1.35rem; height: 1.35rem; }
.icon-tile--soft { color: var(--f-emerald-600); background: rgba(16, 185, 129, .1); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .18); }
.icon-tile--soft-blue { color: var(--f-blue-600); background: rgba(59, 130, 246, .1); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .2); }
.icon-tile--glass { color: var(--f-emerald-300); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.icon-tile--sm { width: 2.5rem; height: 2.5rem; border-radius: .8rem; }
.icon-tile--sm svg, .icon-tile--sm i { width: 1.1rem; height: 1.1rem; }

/* --------------------------------------------------------------------------
   Fonds décoratifs
   -------------------------------------------------------------------------- */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.bg-grid-dark {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.f-dark-section { background: radial-gradient(1200px 600px at 15% -10%, rgba(16, 185, 129, .16), transparent 60%), radial-gradient(900px 500px at 100% 110%, rgba(59, 130, 246, .18), transparent 60%), #0b1220; }
.f-page-hero { background: radial-gradient(900px 500px at 10% 0%, rgba(16, 185, 129, .20), transparent 60%), radial-gradient(800px 500px at 95% 100%, rgba(59, 130, 246, .22), transparent 60%), #0b1220; }
.f-soft-section { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }
.glow-dot { position: absolute; border-radius: 999px; filter: blur(80px); pointer-events: none; }

/* --------------------------------------------------------------------------
   Accessibilité : mouvements réduits
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
