/*
	Theme Name: Nexera Formation
	Theme URI: https://fw16.fr
	Description: 
	Author: FW16
	Author URI: https://fw16.fr
	Version: 3.4.7
	Stable tag: 3.4.7
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/
     :root {
      --bg: #10151b;
      --surface: #161d27;
      --surface2: #1c2635;
      --gold: #c9a84c;
      --gold-light: #f0cc7a;
      --gold-dim: rgba(201,168,76,0.15);
      --amber: #e8a020;
      --text: #e8e2d5;
      --muted: #7a8492;
      --accent: #4a9eff;
      --green: #2dce89;
    }

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

    html { scroll-behavior: smooth; }

    body {
      background-color: var(--bg) !important;
      color: var(--text);
      font-family: 'Baloo 2', sans-serif;
      font-size: 16px;
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* ── NOISE OVERLAY ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 1000;
      opacity: 0.4;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.2rem 4rem;
      background: rgba(16,21,27,0.85);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(201,168,76,0.12);
    }

    .nav-logo {
      font-family: 'Bungee', sans-serif;
      font-size: 1.3rem;
      letter-spacing: 0.05em;
      background: linear-gradient(90deg, var(--gold), var(--gold-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .nav-logo span {
      font-family: 'Baloo 2', sans-serif;
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.25em;
      display: block;
      -webkit-text-fill-color: var(--muted);
      text-transform: uppercase;
      margin-top: -4px;
    }

    .nav-links {
      display: flex;
      gap: 2.5rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-weight: 500;
      font-size: 0.9rem;
      letter-spacing: 0.04em;
      transition: color 0.2s;
    }

    .nav-links a:hover { color: var(--gold-light); }

    .nav-cta {
      background: linear-gradient(135deg, var(--gold), var(--amber));
      color: var(--bg);
      font-family: 'Baloo 2', sans-serif;
      font-weight: 700;
      font-size: 0.85rem;
      letter-spacing: 0.08em;
      padding: 0.6rem 1.6rem;
      border: none;
      cursor: pointer;
      text-transform: uppercase;
      clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
      transition: opacity 0.2s;
    }
    .nav-cta:hover { opacity: 0.85; }

    /* ── HERO ── */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 8rem 4rem 6rem;
      overflow: hidden;
    }

    /* Grid lines bg */
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    }

    /* Glow orbs */
    .hero::after {
      content: '';
      position: absolute;
      top: 20%; left: 50%;
      transform: translateX(-50%);
      width: 800px; height: 400px;
      background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%);
      pointer-events: none;
    }

    .orb-left {
      position: absolute;
      top: 40%; left: -10%;
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(74,158,255,0.05) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }

    .orb-right {
      position: absolute;
      bottom: 10%; right: -5%;
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(45,206,137,0.04) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }

    .hero-inner {
      max-width: 900px;
      text-align: center;
      position: relative;
      z-index: 2;
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1.5rem;
      border: 1px solid rgba(201,168,76,0.25);
      padding: 0.4rem 1.2rem;
      clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    }

    .hero-eyebrow::before, .hero-eyebrow::after {
      content: '◆';
      font-size: 0.5rem;
      opacity: 0.6;
    }

    h1 {
      font-family: 'Bungee', sans-serif;
      font-size: clamp(3rem, 7vw, 6rem);
      line-height: 1.05;
      letter-spacing: 0.02em;
      margin-bottom: 0.5rem;
      background: linear-gradient(180deg, #fff 0%, var(--gold-light) 60%, var(--gold) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: fadeUp 1s ease both;
    }

    .hero-sub {
      font-family: 'Bungee', sans-serif;
      font-size: clamp(0.9rem, 2vw, 1.15rem);
      letter-spacing: 0.2em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 2rem;
      animation: fadeUp 1s 0.15s ease both;
    }

    .hero-desc {
      font-size: 1.1rem;
      color: #a0aab8;
      max-width: 600px;
      margin: 0 auto 3rem;
      font-weight: 400;
      animation: fadeUp 1s 0.25s ease both;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      animation: fadeUp 1s 0.35s ease both;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--gold), var(--amber));
      color: var(--bg);
      font-family: 'Baloo 2', sans-serif;
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.08em;
      padding: 0.9rem 2.5rem;
      border: none;
      cursor: pointer;
      text-transform: uppercase;
      clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
      transition: transform 0.2s, box-shadow 0.2s;
      text-decoration: none;
      display: inline-block;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(201,168,76,0.35);
    }

    .btn-outline {
      background: transparent;
      color: var(--text);
      font-family: 'Baloo 2', sans-serif;
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 0.05em;
      padding: 0.9rem 2.5rem;
      border: 1px solid rgba(201,168,76,0.35);
      cursor: pointer;
      clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
      transition: background 0.2s, border-color 0.2s;
      text-decoration: none;
      display: inline-block;
    }
    .btn-outline:hover {
      background: var(--gold-dim);
      border-color: var(--gold);
    }

    .hero-stats {
      display: flex;
      gap: 3rem;
      justify-content: center;
      margin-top: 4rem;
      animation: fadeUp 1s 0.45s ease both;
    }

    .stat {
      text-align: center;
    }

    .stat-num {
      font-family: 'Bungee', sans-serif;
      font-size: 2rem;
      background: linear-gradient(135deg, var(--gold-light), var(--gold));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .stat-label {
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      color: var(--muted);
      text-transform: uppercase;
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── DIVIDER ── */
    .divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      margin: 0 4rem;
      opacity: 0.3;
    }

    /* ── SECTION BASE ── */
    section {
      padding: 6rem 4rem;
      position: relative;
    }

    .section-label {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 0.75rem;
    }

    .section-title {
      font-family: 'Bungee', sans-serif;
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      line-height: 1.1;
      margin-bottom: 1rem;
    }

    .section-desc {
      color: #7a8492;
      font-size: 1rem;
      max-width: 560px;
      line-height: 1.7;
    }

    /* ── VIDEO SECTION ── */
    .video-section {
      background: var(--surface);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
      max-width: 1300px;
      margin: 0 auto;
    }

    .video-wrapper {
      position: relative;
      background: var(--surface2);
      border: 1px solid rgba(201,168,76,0.2);
      clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
      overflow: hidden;
      aspect-ratio: 16/9;
      cursor: pointer;
    }

    .video-thumb {
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #1a2436 0%, #0d1520 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .video-thumb::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
      background-size: 30px 30px;
    }

    .play-btn {
      width: 80px; height: 80px;
      background: linear-gradient(135deg, var(--gold), var(--amber));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 2;
      transition: transform 0.3s, box-shadow 0.3s;
      box-shadow: 0 0 40px rgba(201,168,76,0.4);
    }

    .video-wrapper:hover .play-btn {
      transform: scale(1.1);
      box-shadow: 0 0 60px rgba(201,168,76,0.6);
    }

    .play-btn::after {
      content: '';
      border-left: 26px solid var(--bg);
      border-top: 16px solid transparent;
      border-bottom: 16px solid transparent;
      margin-left: 6px;
    }

    .video-badge {
      position: absolute;
      bottom: 1rem; left: 1rem;
      background: rgba(16,21,27,0.85);
      border: 1px solid rgba(201,168,76,0.3);
      padding: 0.3rem 0.8rem;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      color: var(--gold);
      text-transform: uppercase;
    }

    .video-info { padding: 0; }

    .feature-list {
      list-style: none;
      margin-top: 2rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .feature-list li {
      display: flex;
      align-items: flex-start;
      gap: 0.8rem;
      font-size: 0.95rem;
      color: #a0aab8;
    }

    .feature-list li::before {
      content: '◆';
      color: var(--gold);
      font-size: 0.6rem;
      margin-top: 0.5rem;
      flex-shrink: 0;
    }

    /* ── MODULES SECTION ── */
    .modules-section {
      max-width: 1300px;
      margin: 0 auto;
    }

    .modules-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 3rem;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .theme-tabs {
      display: flex;
      gap: 0.5rem;
    }

    .tab {
      font-family: 'Baloo 2', sans-serif;
      font-weight: 600;
      font-size: 0.82rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 0.5rem 1.2rem;
      background: transparent;
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--muted);
      cursor: pointer;
      clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
      transition: all 0.2s;
    }

    .tab.active, .tab:hover {
      background: var(--gold-dim);
      border-color: var(--gold);
      color: var(--gold-light);
    }

    .modules-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .module-card {
      background: var(--surface);
      border: 1px solid rgba(255,255,255,0.06);
      clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
      padding: 2rem;
      position: relative;
      overflow: hidden;
      transition: border-color 0.3s, transform 0.3s;
      cursor: pointer;
    }

    .module-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .module-card:hover {
      border-color: rgba(201,168,76,0.3);
      transform: translateY(-4px);
    }
    .module-card:hover::before { opacity: 1; }

    .module-card.featured {
      border-color: rgba(201,168,76,0.25);
      background: linear-gradient(135deg, var(--surface) 0%, rgba(201,168,76,0.05) 100%);
    }

    .module-tag {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      padding: 0.25rem 0.7rem;
      margin-bottom: 1.2rem;
      clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
    }

    .tag-savoir { background: rgba(74,158,255,0.15); color: #4a9eff; }
    .tag-perf   { background: rgba(201,168,76,0.15); color: var(--gold-light); }
    .tag-new    { background: rgba(45,206,137,0.15); color: var(--green); }

    .module-icon {
      font-size: 2rem;
      margin-bottom: 0.8rem;
    }

    .module-title {
      font-family: 'Bungee', sans-serif;
      font-size: 1rem;
      letter-spacing: 0.03em;
      margin-bottom: 0.6rem;
      color: var(--text);
    }

    .module-desc {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 1.2rem;
    }

    .module-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
    }

    .module-duration {
      color: var(--muted);
      font-weight: 500;
    }

    .module-enroll {
      color: var(--gold);
      font-weight: 700;
      font-size: 0.82rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-decoration: none;
      border-bottom: 1px solid rgba(201,168,76,0.3);
      transition: color 0.2s, border-color 0.2s;
    }

    .module-enroll:hover {
      color: var(--gold-light);
      border-color: var(--gold-light);
    }

    /* ── TRAINERS ── */
    .trainers-section {
      background: var(--surface);
    }

    .trainers-inner {
      max-width: 1300px;
      margin: 0 auto;
    }

    .trainers-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }

    .trainer-card {
      background: var(--surface2);
      border: 1px solid rgba(255,255,255,0.06);
      padding: 1.8rem 1.5rem;
      text-align: center;
      clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
      transition: border-color 0.3s;
    }

    .trainer-card:hover { border-color: rgba(201,168,76,0.25); }

    .trainer-avatar {
      width: 80px; height: 80px;
      border-radius: 50%;
      margin: 0 auto 1rem;
      border: 2px solid rgba(201,168,76,0.3);
      background: linear-gradient(135deg, var(--surface) 0%, var(--gold-dim) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
    }

    .trainer-name {
      font-family: 'Bungee', sans-serif;
      font-size: 0.9rem;
      letter-spacing: 0.03em;
      margin-bottom: 0.3rem;
    }

    .trainer-role {
      font-size: 0.78rem;
      color: var(--gold);
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 0.5rem;
    }

    .trainer-desc {
      font-size: 0.82rem;
      color: var(--muted);
      line-height: 1.5;
    }

    .trainer-add {
      border: 1px dashed rgba(201,168,76,0.25);
      background: transparent;
    }

    .trainer-add .trainer-avatar {
      border: 2px dashed rgba(201,168,76,0.25);
      background: transparent;
      font-size: 2.2rem;
      color: var(--gold);
    }

    .trainer-add .trainer-name {
      color: var(--muted);
    }

    .trainer-add .trainer-role {
      color: var(--muted);
    }

    /* ── INSCRIPTION ── */
    .inscription-section {
      max-width: 1300px;
      margin: 0 auto;
    }

    .inscription-box {
      background: var(--surface);
      border: 1px solid rgba(201,168,76,0.2);
      clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
      padding: 4rem;
      position: relative;
      overflow: hidden;
    }

    .inscription-box::before {
      content: '';
      position: absolute;
      top: -200px; right: -200px;
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
    }

    .inscription-grid {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 4rem;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      margin-bottom: 1.2rem;
    }

    label {
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
    }

    input, select {
      background: var(--surface2);
      border: 1px solid rgba(255,255,255,0.08);
      color: var(--text);
      font-family: 'Baloo 2', sans-serif;
      font-size: 0.95rem;
      padding: 0.75rem 1rem;
      outline: none;
      transition: border-color 0.2s;
      clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
      width: 100%;
    }

    select option { background: var(--surface2); }

    input:focus, select:focus {
      border-color: rgba(201,168,76,0.5);
    }

    input::placeholder { color: var(--muted); }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    .inscription-perks {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .perk {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
    }

    .perk-icon {
      width: 44px; height: 44px;
      background: var(--gold-dim);
      border: 1px solid rgba(201,168,76,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
      clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    }

    .perk-title {
      font-family: 'Bungee', sans-serif;
      font-size: 0.85rem;
      margin-bottom: 0.2rem;
    }

    .perk-desc {
      font-size: 0.83rem;
      color: var(--muted);
    }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid rgba(255,255,255,0.06);
      padding: 3rem 4rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .footer-brand {
      font-family: 'Bungee', sans-serif;
      font-size: 1.1rem;
      background: linear-gradient(90deg, var(--gold), var(--gold-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .footer-copy {
      font-size: 0.82rem;
      color: var(--muted);
    }

    .footer-links {
      display: flex;
      gap: 2rem;
    }

    .footer-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.85rem;
      transition: color 0.2s;
    }

    .footer-links a:hover { color: var(--gold-light); }

    /* ── SCROLL REVEAL ── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: none;
    }

    @media (max-width: 900px) {
      nav { padding: 1rem 1.5rem; }
      .nav-links { display: none; }
      section { padding: 4rem 1.5rem; }
      .video-section { grid-template-columns: 1fr; gap: 2rem; }
      .modules-grid { grid-template-columns: 1fr 1fr; }
      .trainers-grid { grid-template-columns: 1fr 1fr; }
      .inscription-grid { grid-template-columns: 1fr; }
      footer { flex-direction: column; text-align: center; }
      .hero { padding: 8rem 1.5rem 4rem; }
      .hero-stats { gap: 1.5rem; }
    }

    @media (max-width: 600px) {
      .modules-grid { grid-template-columns: 1fr; }
      .trainers-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
    }