/* ============================================================
       KAIROS — Design System
       Couleurs : noir profond + or subtil
       Typo : Inter (UI) + Georgia (wordmark) + JetBrains Mono (code)
       Style : glassmorphism sobre
       ============================================================ */

    :root {
      /* Palette or */
      --gold-light: #e0c485;
      --gold: #c9a961;
      --gold-dark: #a88a4a;
      --gold-deep: #8a7038;

      /* Fond */
      --bg-deep: #0a0a0f;
      --bg-night: #12121a;
      --bg-card: rgba(255, 255, 255, 0.025);
      --bg-card-hover: rgba(255, 255, 255, 0.04);
      --border: rgba(201, 169, 97, 0.12);
      --border-strong: rgba(201, 169, 97, 0.25);

      /* Texte */
      --text-primary: #e8e6df;
      --text-secondary: #a8a59c;
      --text-muted: #6a6862;

      /* Ombres */
      --shadow-gold: 0 0 60px rgba(201, 169, 97, 0.08);
      --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

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

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-deep);
      color: var(--text-primary);
      font-weight: 300;
      line-height: 1.6;
      font-size: 16px;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Fond subtil : bruit dégradé */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background:
        radial-gradient(circle at 20% 20%, rgba(201, 169, 97, 0.04), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 169, 97, 0.03), transparent 50%);
      pointer-events: none;
      z-index: -1;
    }

    a { color: var(--gold); text-decoration: none; transition: color 200ms; }
    a:hover { color: var(--gold-light); }

    h1, h2, h3, h4 {
      font-family: Georgia, 'Times New Roman', serif;
      font-weight: 300;
      letter-spacing: -0.01em;
      color: var(--text-primary);
    }

    h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
    h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.2; }
    h3 { font-size: 1.4rem; line-height: 1.3; }

    .container {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 32px;
    }

    /* ============================================================
       HEADER / NAVIGATION
       ============================================================ */

    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: rgba(10, 10, 15, 0.7);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      transition: background 300ms;
    }

    .site-header.scrolled {
      background: rgba(10, 10, 15, 0.92);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 32px;
      max-width: 1180px;
      margin: 0 auto;
    }

    .nav-logo {
      display: block;
      cursor: pointer;
      transition: opacity 200ms;
    }
    .nav-logo:hover { opacity: 0.85; }

    .nav-logo img,
    .nav-logo svg {
      height: 54px;
      width: auto;
      display: block;
    }

    .nav-links {
      display: flex;
      gap: 36px;
      list-style: none;
      font-size: 13px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .nav-links a {
      color: var(--text-secondary);
      transition: color 200ms;
      position: relative;
    }

    .nav-links a:hover { color: var(--gold); }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--gold);
      transition: width 300ms ease-out;
    }
    .nav-links a:hover::after { width: 100%; }

    .nav-cta {
      padding: 8px 18px;
      border: 1px solid var(--gold);
      color: var(--gold) !important;
      border-radius: 4px;
      font-size: 12px;
      letter-spacing: 0.05em;
      transition: all 200ms;
    }
    .nav-cta:hover {
      background: var(--gold);
      color: var(--bg-deep) !important;
    }
    .nav-cta::after { display: none; }

    /* ============================================================
       HERO
       ============================================================ */

    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 140px 32px 80px;
      position: relative;
    }

    .hero-content {
      max-width: 820px;
    }

    .hero-logo-wrap {
      width: 100%;
      max-width: 620px;
      margin: 0 auto 48px;
    }

    .hero-logo {
      width: 100%;
      max-width: 620px;
      height: auto;
      margin: 0 auto;
      display: block;
    }

    .hero-eyebrow {
      font-size: 11px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 28px;
      font-weight: 500;
    }

    .hero h1 {
      margin-bottom: 28px;
    }

    .hero-subtitle {
      font-size: clamp(1.05rem, 1.6vw, 1.2rem);
      color: var(--text-secondary);
      max-width: 640px;
      margin: 0 auto 48px;
      line-height: 1.7;
    }

    .hero-cta {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-block;
      padding: 14px 32px;
      font-size: 14px;
      letter-spacing: 0.03em;
      border-radius: 4px;
      transition: all 250ms ease;
      cursor: pointer;
      border: 1px solid transparent;
      font-family: inherit;
      font-weight: 400;
    }

    .btn-primary {
      background: var(--gold);
      color: var(--bg-deep);
    }
    .btn-primary:hover {
      background: var(--gold-light);
      color: var(--bg-deep);
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(201, 169, 97, 0.2);
    }

    .btn-ghost {
      background: transparent;
      color: var(--text-primary);
      border-color: var(--border-strong);
    }
    .btn-ghost:hover {
      border-color: var(--gold);
      color: var(--gold);
    }

    /* ============================================================
       SECTIONS — base
       ============================================================ */

    section {
      padding: 120px 0;
      position: relative;
    }

    .section-eyebrow {
      font-size: 11px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 16px;
      font-weight: 500;
    }

    .section-title {
      margin-bottom: 24px;
      max-width: 720px;
    }

    .section-lead {
      font-size: 1.1rem;
      color: var(--text-secondary);
      max-width: 640px;
      line-height: 1.7;
    }

    /* ============================================================
       OFFRES
       ============================================================ */

    .offers {
      padding: 120px 0 80px;
    }

    .offers-header {
      text-align: center;
      max-width: 720px;
      margin: 0 auto 64px;
    }

    .offers-header .section-eyebrow {
      display: block;
      margin-bottom: 16px;
    }

    .offers-header h2 {
      margin-bottom: 20px;
    }

    .offers-tagline {
      font-family: Georgia, serif;
      font-style: italic;
      font-size: 1.05rem;
      color: var(--gold);
      letter-spacing: 0.02em;
      opacity: 0.85;
      margin-top: 8px;
    }

    .offers-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }

    .offer {
      padding: 40px 32px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition: all 300ms ease;
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .offer:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-strong);
      transform: translateY(-2px);
    }

    .offer-num {
      font-family: Georgia, serif;
      font-size: 0.9rem;
      color: var(--gold);
      letter-spacing: 0.1em;
      margin-bottom: 12px;
    }

    .offer h3 {
      font-size: 1.35rem;
      margin-bottom: 8px;
      line-height: 1.25;
    }

    .offer-baseline {
      color: var(--gold);
      font-size: 0.95rem;
      font-weight: 500;
      margin-bottom: 24px;
      line-height: 1.4;
    }

    .offer-section-label {
      font-size: 10px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--text-muted);
      font-weight: 500;
      margin-top: 24px;
      margin-bottom: 14px;
    }

    .offer-section-label:first-of-type {
      margin-top: 8px;
    }

    .offer-list {
      list-style: none;
      margin: 0 0 8px 0;
    }

    .offer-list li {
      padding: 7px 0 7px 22px;
      position: relative;
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.55;
      border-bottom: 1px solid rgba(201, 169, 97, 0.06);
    }

    .offer-list li:last-child { border-bottom: none; }

    .offer-list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 16px;
      width: 10px;
      height: 1px;
      background: var(--gold);
    }

    .offer-for {
      margin-top: auto;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.55;
    }

    .offer-for strong {
      color: var(--text-secondary);
      font-weight: 500;
    }

    @media (max-width: 900px) {
      .offers-grid { grid-template-columns: 1fr; }
      .offers { padding: 80px 0 40px; }
    }

    /* ============================================================
       3 PILIERS
       ============================================================ */

    .pillars {
      background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.015), transparent);
    }

    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      margin-top: 64px;
    }

    .pillar {
      padding: 40px 32px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition: all 300ms ease;
      position: relative;
      overflow: hidden;
    }

    .pillar::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      opacity: 0;
      transition: opacity 300ms;
    }

    .pillar:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-strong);
      transform: translateY(-2px);
    }
    .pillar:hover::before { opacity: 1; }

    .pillar-icon {
      width: 44px;
      height: 44px;
      margin-bottom: 24px;
      color: var(--gold);
    }

    .pillar h3 {
      margin-bottom: 16px;
      font-size: 1.3rem;
    }

    .pillar p {
      color: var(--text-secondary);
      font-size: 0.95rem;
      line-height: 1.7;
    }

    /* ============================================================
       FORMATION PHARE
       ============================================================ */

    .formation {
      background: var(--bg-night);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .formation-inner {
      display: block;
      max-width: 720px;
      margin-top: 48px;
    }

    .formation-badge {
      display: inline-block;
      padding: 4px 12px;
      background: rgba(201, 169, 97, 0.1);
      border: 1px solid var(--gold);
      color: var(--gold);
      font-size: 11px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      border-radius: 3px;
      margin-bottom: 24px;
      font-weight: 500;
    }

    .formation h2 {
      margin-bottom: 24px;
    }

    .formation-meta {
      display: flex;
      gap: 32px;
      margin: 32px 0;
      padding: 24px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .formation-meta-item .label {
      font-size: 11px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 4px;
    }
    .formation-meta-item .value {
      font-family: Georgia, serif;
      font-size: 1.1rem;
      color: var(--text-primary);
    }

    .formation-prog {
      list-style: none;
      margin: 32px 0;
    }

    .formation-prog li {
      padding: 12px 0;
      padding-left: 28px;
      position: relative;
      color: var(--text-secondary);
      font-size: 0.95rem;
      border-bottom: 1px solid var(--border);
    }
    .formation-prog li:last-child { border-bottom: none; }
    .formation-prog li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 22px;
      width: 14px;
      height: 1px;
      background: var(--gold);
    }

    /* ============================================================
       SERVICES
       ============================================================ */

    .services-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
      margin-top: 64px;
    }

    .service {
      padding: 36px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      backdrop-filter: blur(10px);
      transition: all 300ms;
      display: flex;
      flex-direction: column;
    }
    .service:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-strong);
    }

    .service-num {
      font-family: Georgia, serif;
      font-size: 0.9rem;
      color: var(--gold);
      letter-spacing: 0.1em;
      margin-bottom: 16px;
    }

    .service h3 {
      margin-bottom: 14px;
      font-size: 1.3rem;
    }

    .service p {
      color: var(--text-secondary);
      font-size: 0.95rem;
      line-height: 1.7;
      margin-bottom: 20px;
      flex-grow: 1;
    }

    /* ============================================================
       MÉTHODOLOGIE
       ============================================================ */

    .method {
      background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.015), transparent);
    }

    .method-steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 32px;
      margin-top: 64px;
      position: relative;
    }

    .method-steps::before {
      content: '';
      position: absolute;
      top: 28px;
      left: 12.5%;
      right: 12.5%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border-strong), var(--border-strong), transparent);
    }

    .step {
      text-align: center;
      position: relative;
    }

    .step-num {
      width: 56px;
      height: 56px;
      margin: 0 auto 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-deep);
      border: 1px solid var(--gold);
      color: var(--gold);
      font-family: Georgia, serif;
      font-size: 1.2rem;
      border-radius: 50%;
      position: relative;
      z-index: 1;
    }

    .step h3 {
      font-size: 1.1rem;
      margin-bottom: 12px;
      color: var(--text-primary);
    }

    .step p {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* ============================================================
       CTA FINAL
       ============================================================ */

    .cta-final {
      text-align: center;
      padding: 140px 32px;
      position: relative;
    }

    .cta-final-inner {
      max-width: 640px;
      margin: 0 auto;
      padding: 64px 48px;
      background: var(--bg-card);
      border: 1px solid var(--border-strong);
      border-radius: 12px;
      backdrop-filter: blur(20px);
      box-shadow: var(--shadow-gold);
    }

    .cta-final h2 {
      margin-bottom: 16px;
    }

    .cta-final p {
      color: var(--text-secondary);
      margin-bottom: 32px;
      line-height: 1.7;
    }

    .cta-final .email {
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 1rem;
      color: var(--gold);
      margin-bottom: 32px;
      padding: 12px 24px;
      border: 1px solid var(--border);
      border-radius: 4px;
    }

    /* ============================================================
       FOOTER
       ============================================================ */

    .site-footer {
      padding: 60px 32px 40px;
      border-top: 1px solid var(--border);
      background: rgba(0, 0, 0, 0.3);
    }

    .footer-inner {
      max-width: 1180px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 40px;
      flex-wrap: wrap;
    }

    .footer-logo img,
    .footer-logo svg {
      height: 60px;
      width: auto;
      display: block;
    }

    .footer-meta {
      display: flex;
      gap: 32px;
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: 0.05em;
    }

    .footer-meta a {
      color: var(--text-muted);
      transition: color 200ms;
    }
    .footer-meta a:hover { color: var(--gold); }

    .footer-copy {
      font-size: 11px;
      color: var(--text-muted);
      letter-spacing: 0.05em;
      text-align: center;
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      max-width: 1180px;
      margin-left: auto;
      margin-right: auto;
    }

    /* ============================================================
       MINI-SABLIER STICKY (parallax scroll - effet #3)
       ============================================================ */

    .mini-hourglass {
      position: fixed;
      top: 50%;
      right: 40px;
      width: 60px;
      height: 60px;
      pointer-events: none;
      opacity: 0;
      transform: translateY(-50%) scale(0.3) rotate(0deg);
      transition: opacity 600ms ease, transform 600ms ease;
      z-index: 50;
      will-change: opacity, transform;
    }

    .mini-hourglass svg {
      width: 100%;
      height: 100%;
      filter: drop-shadow(0 0 12px rgba(201, 169, 97, 0.3));
    }

    .mini-hourglass.visible {
      opacity: 0.6;
      transform: translateY(-50%) scale(1) rotate(0deg);
    }

    /* Sur mobile : on cache */
    @media (max-width: 900px) {
      .mini-hourglass { display: none; }
    }

    /* ============================================================
       FOOTER POÉTIQUE (effet #5)
       Canvas particules + copyright gravé + tagline
       ============================================================ */

    .footer-particles {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    .site-footer { position: relative; overflow: hidden; }
    .footer-inner,
    .footer-copy { position: relative; z-index: 1; }

    .copy-line {
      display: inline-block;
      overflow: hidden;
      white-space: nowrap;
    }

    /* Chaque lettre est masquée au départ, révélée par JS */
    .copy-line .ch {
      display: inline-block;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 400ms ease, transform 400ms ease;
    }
    .copy-line .ch.in {
      opacity: 1;
      transform: translateY(0);
    }

    .footer-tagline {
      font-family: Georgia, serif;
      font-style: italic;
      font-size: 0.95rem;
      color: var(--gold);
      opacity: 0;
      margin-top: 16px;
      letter-spacing: 0.02em;
      transition: opacity 800ms ease;
    }
    .footer-tagline.in { opacity: 0.85; }

    /* ============================================================
       LOADING SCREEN (effet #1)
       Canvas 2D : vraies particules de sable qui coulent
       ============================================================ */

    #loader {
      position: fixed;
      inset: 0;
      background: var(--bg-deep);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 600ms ease, visibility 600ms;
    }

    #loader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .loader-canvas-wrap {
      position: relative;
      width: 140px;
      height: 200px;
      margin-bottom: 32px;
    }

    .loader-canvas {
      display: block;
      width: 100%;
      height: 100%;
    }

    .loader-text {
      font-size: 11px;
      letter-spacing: 0.4em;
      text-transform: uppercase;
      color: var(--gold);
      opacity: 0.7;
      animation: pulseText 1.6s ease-in-out infinite;
    }

    @keyframes pulseText {
      0%, 100% { opacity: 0.4; }
      50%      { opacity: 0.9; }
    }

    /* Si prefers-reduced-motion : on skip direct */
    @media (prefers-reduced-motion: reduce) {
      #loader { display: none; }
    }

    /* ============================================================
       RESPONSIVE
       ============================================================ */

    @media (max-width: 900px) {
      .nav-links { display: none; }
      .pillars-grid,
      .services-grid { grid-template-columns: 1fr; }
      .method-steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
      .method-steps::before { display: none; }
      .formation-inner { max-width: 100%; }
      section { padding: 80px 0; }
      .hero { padding: 120px 24px 60px; }
      .hero-logo { width: 90%; max-width: 380px; }
      .cta-final-inner { padding: 48px 28px; }
    }

    @media (max-width: 600px) {
      .footer-inner { flex-direction: column; text-align: center; }
      .formation-meta { flex-direction: column; gap: 16px; }
      .method-steps { grid-template-columns: 1fr; }
    }

/* ============================================================
   CONTACT FORM (Netlify Forms)
   ============================================================ */
.contact-form {
  margin-top: 40px;
  text-align: left;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.form-field .required {
  color: var(--gold);
  margin-left: 2px;
}

.form-field .optional {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.85rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  transition: border-color 200ms, background 200ms;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.form-field select option {
  background: var(--bg-night);
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  margin-top: 12px;
  padding: 16px 24px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
}

.form-privacy {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.form-privacy a:hover {
  text-decoration-color: var(--gold);
}

/* Message de succès après soumission (URL ?submitted=true) */
.contact-form ~ .form-success,
.cta-final-inner > .form-success {
  display: none;
  margin-top: 40px;
  padding: 24px;
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--text-primary);
  text-align: center;
}

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