/*
 * Skript — home page UI/UX polish, loaded after index.html's own <style>.
 * Follows the design-taste-frontend guidance (.claude/skills/design-taste-frontend/references/motion.md,
 * layout-v4.md): fonts that really load, one quiet hover/press system, a single hero entrance, nothing
 * that moves on its own or appears only on scroll, 44px tap targets, visible keyboard focus.
 * Copy, prices, the WhatsApp number, the WhatsApp flow, the promo codes and the open-day popup are untouched.
 */

:root {
  --ff-d: 'Syne', 'Segoe UI', system-ui, sans-serif;
  --ff-b: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --t: 150ms var(--ease);
  --display-weight: 600;
}

html { scroll-behavior: auto; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { display: none; }

/* ---------- Type ---------- */
.hero-title { font-weight: var(--display-weight); letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.3rem, 4.3vw, 3.9rem); margin-bottom: 18px; }
.h2 { font-weight: var(--display-weight); letter-spacing: -.025em; line-height: 1.1; }
.fc-titre, .form-card h3, .ft-col h4, .af-title, .step-title, .about-promise h4, .av-name { font-weight: 600; letter-spacing: -.01em; }
.hstat strong, .ac-n strong, .fc-price { font-weight: 600; letter-spacing: -.02em; }
.btn-p, .btn-g, .nav-btn, .f-submit, .d-btn, .fc-detail-btn { font-weight: 600; }
.sub, .hero-desc { max-width: 62ch; }
.accent { text-shadow: none; }
.tag { text-transform: none; letter-spacing: 0; font-size: .8125rem; font-weight: 600; font-family: var(--ff-b); }
.fg label, .hstat span, .fc-planning-title { text-transform: none; letter-spacing: 0; font-size: .8125rem; }

/* ---------- Flat grounds ---------- */
.hero-grid-lines, .hero-glow-blob, .about-card::after, .hero-img-blob::before { display: none; }
.hero-img-blob, .hero-img-blob:hover { filter: none; }
.form-card::before, .fc::before { display: none; }
.form-card { box-shadow: 0 1px 0 var(--border); }

/* ---------- Headings on the left line ---------- */
.formations-hdr, .avis-hdr { text-align: left; align-items: flex-start; }

/* ---------- Content is there from the first paint (no fade-in on scroll) ---------- */
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- One quiet hover / press system ---------- */
.btn-p, .btn-g, .nav-btn, .f-submit, .d-btn, .fc-detail-btn {
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
  box-shadow: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .btn-p:hover, .nav-btn:not(.outline):hover, .f-submit:hover:not(:disabled) {
    background-color: color-mix(in srgb, var(--accent) 86%, var(--white));
    transform: translateY(-1px);
  }
  .btn-g:hover, .nav-btn.outline:hover, .fc-detail-btn:hover { transform: translateY(-1px); }
  .fc:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .10);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  }
  .af:hover { transform: none; }
}
.btn-p:active, .btn-g:active, .nav-btn:active, .f-submit:active, .d-btn:active, .fc-detail-btn:active {
  transform: translateY(1px) scale(.985);
  transition-duration: 90ms;
}
.fc { transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease); cursor: pointer; }
.fc .fc-detail-btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }   /* whole card opens the detail */
.af, .ac-n { transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
.nav-links a::after { transition: width 150ms var(--ease); height: 1px; bottom: -2px; }

/* "Charger plus" no longer pulses and shines forever */
#avis-more, #avis-more::after { animation: none !important; }
#avis-more::after { display: none; }
#avis-more:hover, #avis-more:focus-visible { box-shadow: none; transform: translateY(-1px); }

/* ---------- Hero: still pictures, one entrance on load ---------- */
.hero-float1, .hero-float2 { animation: none !important; }
.hero-float2 { display: none; }                   /* repeated "Nouvelle Session" already in the notice line */
.hero-img-blob img, .hero-img-blob:hover img { transform: none; }
@media (min-width: 901px) { .hero-inner { grid-template-columns: 1.1fr .9fr; } }
#hero { padding-top: 112px; }
.hero-stats { margin-top: 36px; padding-top: 22px; gap: 36px; flex-wrap: wrap; }
.hstat strong { font-size: 1.75rem; }
.hstat span { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero-badge, .hero-title, .hero-desc, .hero-actions, .hero-stats { animation: sk-rise 520ms var(--ease-enter) both; }
  .hero-title { animation-duration: 700ms; animation-delay: 60ms; }
  .hero-desc { animation-delay: 380ms; }
  .hero-actions { animation-delay: 440ms; }
  .hero-stats { animation-delay: 500ms; }
  .hero-visual { animation: none; }
  .hero-img-blob { overflow: hidden; border-radius: 20px; }
  .hero-img-blob img { animation: sk-settle 1100ms var(--ease-enter) both; }
}
@keyframes sk-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sk-settle { from { transform: scale(1.05); } to { transform: none; } }

/* ---------- Facts strip: still, each fact once, wraps (was an endless ticker) ---------- */
.tick-track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: flex-start; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.tick-item { padding: 12px 28px 12px 0; border-right: 0; }

/* ---------- Controls & focus ---------- */
.fg input, .fg select, .fg textarea { transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
.theme-btn, .hamburger, .drawer-close { width: 44px; height: 44px; }
.hamburger { align-items: center; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; transition: none; }
.fc:focus-within { border-color: var(--accent); }

/* ---------- Phones & tablets ---------- */
@media (max-width: 900px) {
  .hero-inner { text-align: left; }
  .hero-desc { margin-left: 0; margin-right: 0; }
  .hero-actions, .hero-stats { justify-content: flex-start; }
  .tick-track { padding: 0 24px; }
}
@media (max-width: 680px) {
  .hero-actions { align-items: stretch; }
  .hero-stats { gap: 16px 28px; }
  .tick-track { padding: 0 18px; }
  .tick-item { padding: 8px 20px 8px 0; }
  .nav-btn, .fc-detail-btn { min-height: 44px; }
}
@media (max-width: 380px) {
  .hero-stats { flex-direction: row; align-items: flex-start; }
}

/* ---------- Reduced motion: everything rests, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
