/* ═══════════════════════════════════════════════════════════════
   PERFLANG — V4 GLOBAL CUSTOM CSS
   À coller dans : Elementor → Site Settings → Custom CSS
   Tout est scopé sous .pf-* pour ne rien casser.
   ═══════════════════════════════════════════════════════════════ */


/* ───── 1. DESIGN TOKENS (variables globales) ───── */
:root {
  /* Brand Perflang */
  --pf-navy:        #0B1F4A;
  --pf-navy-2:      #061639;
  --pf-navy-3:      #102B5C;
  --pf-navy-soft:   #E5EAF3;
  --pf-orange:      #F26A1F;
  --pf-orange-2:    #D85913;
  --pf-orange-soft: #FCE5D6;

  /* Neutres warm */
  --pf-paper:       #F7F5F0;
  --pf-paper-2:     #EFECE4;
  --pf-paper-3:     #E7E3D8;
  --pf-line:        #DCD8CD;
  --pf-line-soft:   #ECE8DE;
  --pf-graphite:    #3A4358;
  --pf-slate:       #5A6378;
  --pf-mute:        #8B92A4;

  /* Fonctionnels */
  --pf-jade:        #4A7C5E;
  --pf-gold:        #C9A66A;

  /* Typo : on charge Inter pour body et utilise une serif system fallback pour display */
  --pf-serif: 'Tiempos Headline', 'Tiempos Text', 'Charter',
              'Iowan Old Style', 'Apple Garamond', 'Georgia', serif;
  --pf-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
             system-ui, sans-serif;

  /* Spacing scale (multiples de 4) */
  --pf-s-2: 8px;
  --pf-s-3: 12px;
  --pf-s-4: 16px;
  --pf-s-6: 24px;
  --pf-s-8: 32px;
  --pf-s-10: 40px;
  --pf-s-12: 48px;
  --pf-s-16: 64px;
  --pf-s-20: 80px;
  --pf-s-30: 120px;
  --pf-s-35: 140px;

  /* Échelle typographique fluide */
  --pf-t-display: clamp(48px, 7vw, 108px);
  --pf-t-h2:      clamp(36px, 4.5vw, 64px);
  --pf-t-h3:      clamp(24px, 2.4vw, 32px);
  --pf-t-lead:    20px;
  --pf-t-body:    17px;
  --pf-t-small:   15px;
  --pf-t-micro:   13px;

  /* Radius */
  --pf-r-sm:  8px;
  --pf-r-md:  12px;
  --pf-r-lg:  18px;
  --pf-r-xl:  24px;
  --pf-r-pill: 999px;

  /* Shadows multi-couches */
  --pf-shadow-1: 0 1px 2px rgba(11,31,74,.06), 0 4px 12px rgba(11,31,74,.05);
  --pf-shadow-2: 0 6px 20px rgba(11,31,74,.08), 0 24px 60px rgba(11,31,74,.08);
  --pf-shadow-3: 0 12px 40px rgba(11,31,74,.12), 0 36px 80px rgba(11,31,74,.14);

  /* Easing standard */
  --pf-ease: cubic-bezier(.2, .8, .2, 1);
  --pf-container: 1240px;
}


/* ───── 2. CHARGEMENT FONT (géré par le plugin via wp_enqueue_style) ─────
   Inter est chargée par Perflang_V4::enqueue_assets()
   Pas de @import nécessaire ici. */


/* ───── 3. RESET LOCAL (uniquement sur les sections .pf-*) ───── */
.pf *,
.pf *::before,
.pf *::after {
  box-sizing: border-box;
}

.pf {
  font-family: var(--pf-sans);
  font-size: var(--pf-t-body);
  line-height: 1.55;
  color: var(--pf-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

.pf img,
.pf svg {
  display: block;
  max-width: 100%;
}

.pf a {
  color: inherit;
  text-decoration: none;
}

.pf button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.pf ::selection {
  background: var(--pf-navy);
  color: var(--pf-paper);
}


/* ───── 4. CONTAINER ───── */
.pf-container {
  max-width: var(--pf-container);
  margin: 0 auto;
  padding: 0 var(--pf-s-6);
}


/* ───── 5. UTILITAIRES TYPOGRAPHIE ───── */
.pf-serif {
  font-family: var(--pf-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.pf-em {
  font-style: italic;
  color: var(--pf-graphite);
  font-weight: 300;
}

/* Eyebrow standard */
.pf-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--pf-slate);
  display: inline-flex;
  align-items: center;
}

.pf-eyebrow-pill {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pf-orange);
  margin-right: 10px;
  transform: translateY(-1px);
}


/* ───── 6. BOUTONS ───── */
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--pf-s-2);
  padding: 14px 22px;
  border-radius: var(--pf-r-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform .25s var(--pf-ease),
    background .25s var(--pf-ease),
    color .25s var(--pf-ease),
    border-color .25s var(--pf-ease),
    box-shadow .25s var(--pf-ease);
}
.pf-btn--primary {
    background: var(--pf-navy);
    color: #ffffff !important;
    box-shadow: var(--pf-shadow-1);
}
.pf-btn--primary:hover {
  transform: translateY(-1px);
  background: var(--pf-navy-3);
  color: var(--pf-paper);
  box-shadow: var(--pf-shadow-2);
}

.pf-btn--ghost {
  color: var(--pf-navy);
  border: 1px solid var(--pf-navy);
  background: transparent;
}
.pf-btn--ghost:hover {
  background: var(--pf-navy);
  color: var(--pf-paper);
}

.pf-btn--orange {
  background: var(--pf-orange);
  color: var(--pf-paper);
  box-shadow: 0 4px 14px rgba(242, 106, 31, 0.20);
}
.pf-btn--orange:hover {
  transform: translateY(-1px);
  background: var(--pf-orange-2);
  color: var(--pf-paper);
  box-shadow: 0 12px 24px rgba(242, 106, 31, 0.28);
}

.pf-btn--inverse {
  background: var(--pf-paper);
  color: var(--pf-navy);
}
.pf-btn--inverse:hover {
  background: #ffffff;
  color: var(--pf-navy);
}

.pf-btn .pf-arr {
  transition: transform .3s var(--pf-ease);
}
.pf-btn:hover .pf-arr {
  transform: translateX(3px);
}


/* ───── 7. SECTION FRAME (pour sections HTML custom) ───── */
.pf-section {
  padding: var(--pf-s-35) 0;
  position: relative;
}

.pf-section--paper-2 {
  background: var(--pf-paper-2);
}

.pf-section--navy {
  background: var(--pf-navy);
  color: var(--pf-paper);
}

.pf-section--navy h2,
.pf-section--navy h3 {
  color: var(--pf-paper);
}

.pf-section--navy .pf-lead,
.pf-section--navy p {
  color: rgba(247, 245, 240, 0.78);
}

.pf-section--navy .pf-eyebrow {
  color: rgba(247, 245, 240, 0.6);
}


/* Section header standard */
.pf-s-head {
  max-width: 780px;
  margin-bottom: var(--pf-s-20);
}

.pf-s-head .pf-eyebrow {
  margin-bottom: var(--pf-s-6);
}

.pf-s-head h2 {
  font-family: var(--pf-serif);
  font-weight: 400;
  font-size: var(--pf-t-h2);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 var(--pf-s-4);
}

.pf-s-head .pf-lead {
  font-size: var(--pf-t-lead);
  color: var(--pf-graphite);
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

.pf-s-head--centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pf-s-head--centered .pf-lead {
  margin-left: auto;
  margin-right: auto;
}

.pf-s-head--centered .pf-eyebrow {
  display: inline-flex;
}


/* ───── 8. ANIMATIONS GLOBALES ───── */
@keyframes pf-pulse {
  50% { box-shadow: 0 0 0 8px rgba(242, 106, 31, 0); }
}

@keyframes pf-floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pf-floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes pf-floatC {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Reveal au scroll — appliqué via JS .pf-reveal + .pf-in */
.pf-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .9s var(--pf-ease),
    transform .9s var(--pf-ease);
}

.pf-reveal.pf-in {
  opacity: 1;
  transform: none;
}

/* Respect du prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pf *,
  .pf *::before,
  .pf *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pf-reveal {
    opacity: 1;
    transform: none;
  }
}


/* ───── 9. RESPONSIVE — breakpoints standards ───── */
@media (max-width: 980px) {
  .pf-section { padding: var(--pf-s-30) 0; }
  .pf-s-head { margin-bottom: var(--pf-s-12); }
}

@media (max-width: 780px) {
  .pf-container { padding: 0 var(--pf-s-4); }
}


/* ───── 10. FIX ELEMENTOR — éviter les conflits de container ─────
   Dans Elementor, les widgets HTML sont enrobés. On s'assure que
   nos sections HTML custom prennent toute la largeur sans héritage. */
.elementor-widget-html .pf-section,
.elementor-widget-html .pf-hero,
.elementor-widget-html .pf-signature,
.elementor-widget-html .pf-final {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

/* Le container interne reprend la largeur normale */
.elementor-widget-html .pf-section .pf-container,
.elementor-widget-html .pf-hero .pf-container,
.elementor-widget-html .pf-signature .pf-container,
.elementor-widget-html .pf-final .pf-container {
  margin-left: auto;
  margin-right: auto;
}


/* ═══════════════════════════════════════════════════════════════
   11. HERO IMMERSIF (Phase 1)
   ═══════════════════════════════════════════════════════════════ */
.pf-hero {
  padding: 160px 0 var(--pf-s-35);
  position: relative;
  overflow: hidden;
  background: var(--pf-paper);
  font-family: var(--pf-sans);
  color: var(--pf-navy);
}

.pf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 92% 8%, rgba(11, 31, 74, 0.06), transparent 60%),
    radial-gradient(600px 500px at -5% 90%, rgba(242, 106, 31, 0.05), transparent 60%);
  pointer-events: none;
}

.pf-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--pf-s-20);
  align-items: center;
  position: relative;
}

/* Hero content (gauche) */
.pf-hero-eyebrow {
  margin-bottom: var(--pf-s-8);
}

.pf-hero h1 {
  font-family: var(--pf-serif);
  font-weight: 400;
  font-size: var(--pf-t-display);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  color: var(--pf-navy);
}

.pf-hero h1 .pf-em {
  font-style: italic;
  color: var(--pf-graphite);
  font-weight: 300;
}

.pf-hero h1 .pf-accent {
  position: relative;
  color: var(--pf-navy);
  background: linear-gradient(transparent 70%, rgba(242, 106, 31, 0.20) 70%);
  padding: 0 4px;
}

.pf-hero-sub {
  font-size: var(--pf-t-lead);
  line-height: 1.5;
  color: var(--pf-graphite);
  max-width: 520px;
  margin: 0 0 var(--pf-s-10);
}

.pf-hero-ctas {
  display: flex;
  gap: var(--pf-s-3);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--pf-s-8);
}

.pf-hero-proof {
  display: flex;
  align-items: center;
  gap: var(--pf-s-4);
  font-size: 14px;
  color: var(--pf-slate);
}

.pf-hero-proof .pf-avatars {
  display: flex;
}

.pf-hero-proof .pf-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--pf-paper);
  background: var(--pf-navy-2);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--pf-paper);
  font-weight: 500;
  font-family: var(--pf-serif);
}

.pf-hero-proof .pf-avatars span:nth-child(1) { background: #7A2D1B; margin-left: 0; }
.pf-hero-proof .pf-avatars span:nth-child(2) { background: var(--pf-navy-3); }
.pf-hero-proof .pf-avatars span:nth-child(3) { background: #5A4830; }
.pf-hero-proof .pf-avatars span:nth-child(4) { background: var(--pf-navy-2); }

.pf-hero-proof strong {
  color: var(--pf-navy);
  font-weight: 600;
}


/* HERO STAGE — la scène floating */
.pf-hero-stage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  min-height: 560px;
}

/* Frame de session principale */
.pf-session-main {
  position: absolute;
  inset: 0;
  border-radius: var(--pf-r-lg);
  overflow: hidden;
  background: linear-gradient(165deg, #102B5C 0%, #0B1F4A 50%, #061639 100%);
  box-shadow: var(--pf-shadow-3);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
  gap: 14px;
}

.pf-session-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.10), transparent 50%),
    radial-gradient(circle at 70% 90%, rgba(242, 106, 31, 0.18), transparent 60%);
  pointer-events: none;
}

.pf-session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.pf-session-top .pf-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(247, 245, 240, 0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pf-session-top .pf-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pf-orange);
  box-shadow: 0 0 0 4px rgba(242, 106, 31, 0.20);
  animation: pf-pulse 2s infinite;
}

.pf-session-top .pf-right {
  font-size: 11px;
  color: rgba(247, 245, 240, 0.5);
  font-variant-numeric: tabular-nums;
}

.pf-session-frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.pf-frame {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1A2540, #102B5C);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-size: 12px;
  color: rgba(247, 245, 240, 0.85);
}

.pf-frame.pf-coach {
  background: linear-gradient(135deg, #243156, #1A2540);
}

.pf-frame::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pf-jade);
  box-shadow: 0 0 0 3px rgba(74, 124, 94, 0.30);
}

.pf-frame .pf-who {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-frame .pf-who-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pf-orange), #F89A60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pf-serif);
  font-weight: 500;
  color: var(--pf-navy);
  font-size: 12px;
}

.pf-frame.pf-coach .pf-who-dot {
  background: linear-gradient(135deg, #5A6BB8, #8FA0D9);
  color: var(--pf-paper);
}

.pf-frame .pf-face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.4));
  border: 1.5px solid rgba(255, 255, 255, 0.05);
}

.pf-frame.pf-coach .pf-face {
  background: radial-gradient(circle at 35% 30%, rgba(143, 160, 217, 0.22), rgba(0, 0, 0, 0.5));
}

.pf-transcript {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pf-transcript .pf-who-meta {
  font-size: 10px;
  color: var(--pf-orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.pf-transcript .pf-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(247, 245, 240, 0.92);
}

.pf-transcript .pf-text .pf-hl {
  background: rgba(242, 106, 31, 0.18);
  padding: 1px 5px;
  border-radius: 3px;
  color: #FFC9A8;
}


/* Cards flottantes */
.pf-float {
  position: absolute;
  background: var(--pf-paper);
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  box-shadow: var(--pf-shadow-3);
  z-index: 5;
}

/* Card Feedback IA — top-right */
.pf-float-feedback {
  top: -24px;
  right: -32px;
  width: 220px;
  padding: 16px 18px;
  animation: pf-floatA 7s ease-in-out infinite;
}

.pf-float-feedback .pf-lbl {
  font-size: 10px;
  color: var(--pf-jade);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.pf-float-feedback .pf-lbl::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pf-jade);
}

.pf-float-feedback .pf-ttl {
  font-family: var(--pf-serif);
  font-size: 16px;
  line-height: 1.2;
  color: var(--pf-navy);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.pf-float-feedback .pf-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pf-float-feedback .pf-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--pf-slate);
}

.pf-float-feedback .pf-bar .pf-name {
  min-width: 60px;
  font-weight: 500;
  color: var(--pf-graphite);
}

.pf-float-feedback .pf-bar .pf-track {
  flex: 1;
  height: 4px;
  background: var(--pf-paper-2);
  border-radius: 2px;
  overflow: hidden;
}

.pf-float-feedback .pf-bar .pf-fill {
  height: 100%;
  border-radius: 2px;
}

.pf-float-feedback .pf-bar .pf-fill.pf-high { width: 88%; background: var(--pf-jade); }
.pf-float-feedback .pf-bar .pf-fill.pf-med  { width: 68%; background: var(--pf-navy); }
.pf-float-feedback .pf-bar .pf-fill.pf-low  { width: 46%; background: var(--pf-orange); }

.pf-float-feedback .pf-bar .pf-num {
  font-family: var(--pf-serif);
  font-size: 12px;
  color: var(--pf-navy);
  font-weight: 500;
  min-width: 18px;
  text-align: right;
}


/* Card Scenario — bottom-left */
.pf-float-scenario {
  bottom: 24px;
  left: -36px;
  width: 230px;
  padding: 16px 18px;
  background: var(--pf-navy);
  color: var(--pf-paper);
  animation: pf-floatB 8s ease-in-out infinite;
}

.pf-float-scenario .pf-lbl {
  font-size: 10px;
  color: var(--pf-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.pf-float-scenario .pf-ttl {
  font-family: var(--pf-serif);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--pf-paper);
}

.pf-float-scenario .pf-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(247, 245, 240, 0.6);
}

.pf-float-scenario .pf-meta .pf-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(247, 245, 240, 0.4);
}


/* Card Stat — bottom-right */
.pf-float-stat {
  bottom: -24px;
  right: 24px;
  width: 200px;
  padding: 18px 20px;
  animation: pf-floatC 9s ease-in-out infinite;
}

.pf-float-stat .pf-v {
  font-family: var(--pf-serif);
  font-size: 36px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pf-navy);
  font-weight: 400;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pf-float-stat .pf-v .pf-sm {
  font-size: 18px;
  color: var(--pf-orange);
  font-style: italic;
  font-weight: 300;
}

.pf-float-stat .pf-lbl {
  font-size: 12px;
  color: var(--pf-slate);
  margin-top: 6px;
  line-height: 1.35;
}

.pf-float-stat--countries {
  bottom: auto;
  top: 48%;
  right: -44px;
  width: 180px;
}


/* HERO RESPONSIVE */
@media (max-width: 1100px) {
  .pf-float-stat--countries { display: none; }
}

@media (max-width: 980px) {
  .pf-hero { padding: 130px 0 var(--pf-s-30); }
  .pf-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--pf-s-20);
  }
  .pf-hero-stage {
    max-width: 520px;
    margin: 0 auto;
    min-height: 520px;
  }
  .pf-float-feedback { right: -12px; }
  .pf-float-scenario { left: -12px; }
  .pf-float-stat { right: 12px; }
}

@media (max-width: 560px) {
  .pf-hero h1 {
    font-size: 46px;
    letter-spacing: -0.035em;
  }
  .pf-hero-sub { font-size: 18px; }
  .pf-hero-ctas .pf-btn {
    flex: 1;
    justify-content: center;
  }
  /* Sur mobile : on cache les cards flottantes pour préserver lisibilité */
  .pf-float-feedback,
  .pf-float-scenario,
  .pf-float-stat {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   FIN CSS V4 GLOBAL — Phase 1
   Les sections suivantes (constat, tools, founder, méthode,
   transformation, signature, pricing, kit, FAQ, footer) seront
   ajoutées progressivement à la suite de ce CSS au fil des phases.
   ═══════════════════════════════════════════════════════════════ */
