/* ==========================================================================
   France T. Formation — Premium Layer 2026
   ========================================================================== */

/* ─── Cursor glow (desktop) ─── */
.ftf-cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  mix-blend-mode: screen;
}

body.ftf-2026.is-loaded .ftf-cursor-glow {
  opacity: 1;
}

@media (max-width: 1024px), (hover: none) {
  .ftf-cursor-glow { display: none; }
}

/* ─── Header glass pill nav ─── */
@media (min-width: 769px) {
  .ftf-nav {
    padding: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .ftf-header.is-scrolled .ftf-nav {
    background: rgba(255,255,255,0.08);
  }

  .ftf-nav__link.is-active {
    background: rgba(255,255,255,0.14);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  }
}

.ftf-header__logo img {
  filter: none;
  height: 52px;
  width: auto;
  aspect-ratio: 308 / 114;
}

/* ─── Button shine ─── */
.ftf-btn--primary::after,
.ftf-btn--gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: none;
}

.ftf-btn--primary:hover::after,
.ftf-btn--gold:hover::after {
  animation: ftf-shine 0.7s ease;
}

@keyframes ftf-shine {
  from { left: -100%; }
  to { left: 200%; }
}

.ftf-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #3b82f6 100%);
  background-size: 200% auto;
  animation: ftf-gradient-shift 4s ease infinite;
}

@keyframes ftf-gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ─── Hero aurora ─── */
.ftf-hero__aurora {
  position: absolute;
  inset: -50%;
  background:
    conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(37,99,235,0.15) 60deg, transparent 120deg, rgba(6,182,212,0.12) 200deg, transparent 280deg);
  animation: ftf-aurora-spin 25s linear infinite;
  opacity: 0.7;
}

@keyframes ftf-aurora-spin {
  to { transform: rotate(360deg); }
}

.ftf-hero__beam {
  position: absolute;
  top: 0;
  left: 30%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(59,130,246,0.4), transparent);
  transform: rotate(15deg);
  transform-origin: top;
  animation: ftf-beam-pulse 4s ease-in-out infinite;
}

.ftf-hero__beam--2 {
  left: 65%;
  transform: rotate(-10deg);
  animation-delay: -2s;
  opacity: 0.5;
}

@keyframes ftf-beam-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Hero title shimmer on em */
.ftf-hero__title em {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 40%, #a78bfa 60%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ftf-text-shimmer 5s linear infinite;
}

@keyframes ftf-text-shimmer {
  to { background-position: 200% center; }
}

/* Hero image premium frame */
.ftf-hero__image-frame {
  position: relative;
  padding: 3px;
  border-radius: calc(var(--ftf-radius-xl) + 3px);
  background: linear-gradient(135deg, rgba(59,130,246,0.8), rgba(6,182,212,0.4), rgba(245,158,11,0.6), rgba(59,130,246,0.8));
  background-size: 300% 300%;
  animation: ftf-border-flow 6s ease infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 80px rgba(37,99,235,0.2);
}

@keyframes ftf-border-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ftf-hero__image-frame .ftf-hero__image-wrap {
  border-radius: var(--ftf-radius-xl);
  margin: 0;
}

.ftf-hero__image-glow {
  position: absolute;
  inset: 20%;
  background: radial-gradient(circle, rgba(37,99,235,0.3), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: ftf-pulse 4s ease-in-out infinite;
}

/* Float cards glass upgrade */
.ftf-hero__float-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

.ftf-hero__float-card strong {
  background: var(--ftf-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero stats glass pills */
.ftf-hero__stats {
  opacity: 1 !important;
  visibility: visible !important;
}

.ftf-hero__stats > div {
  padding: 16px 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--ftf-radius-md);
  backdrop-filter: blur(12px);
  transition: var(--ftf-transition);
  opacity: 1 !important;
  transform: none !important;
}

.ftf-hero__stats > div:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.ftf-hero__stat-value {
  text-shadow: 0 0 40px rgba(245,158,11,0.4);
}

/* Wave divider */
.ftf-wave-divider {
  position: relative;
  height: 80px;
  margin-top: -1px;
  background: var(--ftf-navy);
}

.ftf-wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
  fill: var(--ftf-off-white);
}

/* ─── Section decorations ─── */
.ftf-section {
  position: relative;
  overflow: hidden;
}

.ftf-section__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.4;
}

.ftf-section__blob--1 {
  width: 400px;
  height: 400px;
  background: rgba(37,99,235,0.08);
  top: -100px;
  right: -100px;
}

.ftf-section__blob--2 {
  width: 300px;
  height: 300px;
  background: rgba(6,182,212,0.06);
  bottom: -80px;
  left: -80px;
}

.ftf-section__label {
  position: relative;
  padding-left: 20px;
}

.ftf-section__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ftf-gradient-accent);
  box-shadow: 0 0 12px rgba(37,99,235,0.5);
}

.ftf-section__title {
  letter-spacing: -0.02em;
}

/* ─── Feature cards premium ─── */
.ftf-feature {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226,232,240,0.8);
  box-shadow: 0 4px 24px rgba(6,13,26,0.04);
}

.ftf-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37,99,235,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ftf-feature:hover::after {
  opacity: 1;
}

.ftf-feature__icon {
  position: relative;
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.ftf-feature__icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--ftf-radius-md) + 4px);
  border: 1px solid rgba(37,99,235,0.15);
  opacity: 0;
  transition: var(--ftf-transition);
}

.ftf-feature:hover .ftf-feature__icon::before {
  opacity: 1;
}

/* ─── Bento premium ─── */
.ftf-bento__item {
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
}

.ftf-bento__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
  z-index: 0;
}

.ftf-bento__item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.ftf-bento__item:hover::after {
  transform: translateX(100%);
}

.ftf-bento__icon,
.ftf-bento__title,
.ftf-bento__count {
  position: relative;
  z-index: 1;
}

.ftf-bento__item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* ─── Formation cards premium ─── */
.ftf-formation-card {
  position: relative;
  background: #fff;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.ftf-formation-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--ftf-radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(37,99,235,0.5), rgba(6,182,212,0.3), rgba(245,158,11,0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ftf-formation-card:hover::before {
  opacity: 1;
}

.ftf-formation-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,13,26,0.5) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ftf-formation-card:hover .ftf-formation-card__image::after {
  opacity: 1;
}

.ftf-formation-card__link {
  padding: 8px 16px;
  background: rgba(37,99,235,0.08);
  border-radius: 100px;
  transition: var(--ftf-transition);
}

.ftf-formation-card:hover .ftf-formation-card__link {
  background: var(--ftf-blue);
  color: #fff;
}

/* ─── Process premium ─── */
.ftf-process__number {
  box-shadow: 0 8px 24px rgba(37,99,235,0.15);
}

.ftf-process__step:hover .ftf-process__number {
  box-shadow: 0 12px 40px rgba(37,99,235,0.35);
}

/* ─── Stats premium ─── */
.ftf-section--dark {
  background: linear-gradient(180deg, var(--ftf-navy) 0%, #0a1628 50%, var(--ftf-navy-light) 100%);
  position: relative;
}

.ftf-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6,182,212,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.ftf-stat {
  backdrop-filter: blur(12px);
  transition: var(--ftf-transition);
  position: relative;
  overflow: hidden;
}

.ftf-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ftf-gradient-accent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.ftf-stat:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-6px);
}

.ftf-stat:hover::before {
  transform: scaleX(1);
}

.ftf-stat__value {
  text-shadow: 0 0 60px rgba(245,158,11,0.3);
}

/* ─── Testimonials premium ─── */
.ftf-testimonials {
  position: relative;
  min-height: 340px;
}

.ftf-testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 20px 60px rgba(6,13,26,0.08);
}

.ftf-testimonial-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}

.ftf-testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 32px;
  font-family: var(--ftf-font-serif);
  font-size: 8rem;
  line-height: 1;
  color: rgba(37,99,235,0.06);
  pointer-events: none;
}

.ftf-testimonial-card__text {
  position: relative;
  z-index: 1;
}

.ftf-testimonial-card__star--muted {
  color: var(--ftf-gray-200, #e2e8f0);
}

.ftf-testimonial-card__role a {
  color: var(--ftf-blue, #2563eb);
  text-decoration: none;
  font-weight: 500;
}

.ftf-testimonial-card__role a:hover {
  text-decoration: underline;
}

.ftf-testimonials__note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ftf-gray-500, #64748b);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ─── CPF section ─── */
.ftf-cpf__visual {
  box-shadow: var(--ftf-shadow-lg);
}

.ftf-cpf__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
}

/* ─── CTA premium ─── */
.ftf-cta {
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.ftf-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ─── FAQ premium ─── */
.ftf-faq__item {
  background: #fff;
  border: 1px solid var(--ftf-gray-200);
  border-radius: var(--ftf-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--ftf-transition);
}

.ftf-faq__item.is-open {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 8px 30px rgba(37,99,235,0.08);
}

.ftf-faq__question {
  padding: 20px 24px;
}

.ftf-faq__answer-inner {
  padding: 0 24px 20px;
}

/* ─── Footer premium ─── */
.ftf-footer {
  position: relative;
}

.ftf-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), rgba(6,182,212,0.5), transparent);
}

.ftf-footer__social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

/* ─── Marquee fade edges ─── */
.ftf-marquee {
  position: relative;
}

.ftf-marquee::before,
.ftf-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ftf-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ftf-navy), transparent);
}

.ftf-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--ftf-navy), transparent);
}

/* ─── Mobile menu premium ─── */
.ftf-mobile-menu a {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}

.ftf-mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.ftf-mobile-menu.is-open a:nth-child(1) { transition-delay: 0.1s; }
.ftf-mobile-menu.is-open a:nth-child(2) { transition-delay: 0.15s; }
.ftf-mobile-menu.is-open a:nth-child(3) { transition-delay: 0.2s; }
.ftf-mobile-menu.is-open a:nth-child(4) { transition-delay: 0.25s; }
.ftf-mobile-menu.is-open a:nth-child(5) { transition-delay: 0.3s; }

/* ─── Trust strip ─── */
.ftf-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-bottom: 1px solid var(--ftf-gray-200);
}

.ftf-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ftf-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ftf-trust-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(6,182,212,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ─── Reveal upgrade ─── */
[data-reveal] {
  transform: translateY(50px);
}

[data-reveal].is-visible {
  transform: translateY(0);
}

[data-reveal="scale"] {
  transform: scale(0.92);
  opacity: 0;
}

[data-reveal="scale"].is-visible {
  transform: scale(1);
  opacity: 1;
}

/* Inner pages — header always visible */
body.ftf-page-inner .ftf-header {
  background: rgba(6, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Ensure reveal elements are never stuck hidden (GSAP inline override fix) */
[data-reveal].is-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Bento grid — ensure visibility */
.ftf-bento__item {
  min-height: 240px;
  z-index: 1;
}

.ftf-section#domaines {
  background: var(--ftf-off-white);
}

.ftf-hero__visual {
  transition: transform 0.2s ease-out;
}

/* Page hero on inner pages */
.ftf-page-hero {
  background: linear-gradient(160deg, #060d1a 0%, #0f1d35 50%, #152238 100%);
}

.ftf-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(37,99,235,0.2), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(6,182,212,0.1), transparent);
  pointer-events: none;
}

/* Blog teaser (accueil) — extrait de blog-2026.css */
.ftf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ftf-blog-card {
  background: var(--ftf-white);
  border-radius: var(--ftf-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ftf-gray-200);
  transition: var(--ftf-transition);
  display: flex;
  flex-direction: column;
}

.ftf-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ftf-shadow-lg);
  border-color: transparent;
}

.ftf-blog-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.ftf-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  background: linear-gradient(135deg, var(--ftf-navy) 0%, var(--ftf-slate) 100%);
}

.ftf-blog-card:hover .ftf-blog-card__image img {
  transform: scale(1.06);
}

.ftf-blog-card__cat {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(6,13,26,0.8);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
}

.ftf-blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ftf-blog-card__body time {
  font-size: 0.8125rem;
  color: var(--ftf-text-muted);
  margin-bottom: 10px;
}

.ftf-blog-card__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}

.ftf-blog-card__body h3 a {
  color: var(--ftf-text);
  transition: color 0.2s;
}

.ftf-blog-card__body h3 a:hover {
  color: var(--ftf-blue);
}

.ftf-blog-card__body p {
  font-size: 0.875rem;
  color: var(--ftf-text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .ftf-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ftf-blog-grid {
    grid-template-columns: 1fr;
  }
}
