  :root { --background:#020817; --foreground:#ffffff; }
  * { box-sizing:border-box; padding:0; margin:0; }
  html, body { max-width:100vw; overflow-x:hidden; background:#020817; color:#fff; font-family:'Inter',sans-serif; min-height:100vh; }

  /* Quadrillage lumineux avec teintes */
  body {
    background-color:#020817;
    background-image:
      radial-gradient(700px 420px at 15% 8%, rgba(96,165,250,0.12), transparent 70%),
      radial-gradient(620px 400px at 85% 55%, rgba(251,146,60,0.09), transparent 70%),
      radial-gradient(500px 380px at 30% 90%, rgba(129,140,248,0.10), transparent 70%),
      linear-gradient(rgba(148,163,255,0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148,163,255,0.045) 1px, transparent 1px);
    background-size: auto, auto, auto, 44px 44px, 44px 44px;
    background-attachment: fixed;
  }

  /* Séparateur de sections avec logo */
  section { position: relative; }
  section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, 86%);
    height: 64px;
    background:
      url('/assets/logo_mark.webp') center / auto 40px no-repeat,
      linear-gradient(to right, transparent, rgba(255,255,255,0.45)) left center / calc(50% - 46px) 1px no-repeat,
      linear-gradient(to left, transparent, rgba(255,255,255,0.45)) right center / calc(50% - 46px) 1px no-repeat;
    pointer-events: none;
  }
  /* Pas de séparateur au-dessus de la première section, quelle que soit la page */
  section[data-screen-label^="01"]::before { content: none; }
  main > div:first-child > section::before { content: none; }

  /* Arrivée sur une ancre (/#services, /expertise#parcours) : le saut natif du navigateur
     doit s'arrêter sous la barre fixe, pas dessous. */
  main > div[id] { scroll-margin-top: 110px; }

  /* Bordure animée (cartes Recommandé + Calendly) */
  @property --gba { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
  .glow-border { position: relative; }
  .glow-border::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 1.5px;
    background: conic-gradient(from var(--gba), transparent, #60a5fa 12%, #818cf8 22%, #fb923c 30%, transparent 42%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: gba-spin 5s linear infinite;
    pointer-events: none;
  }
  @keyframes gba-spin { to { --gba: 360deg; } }

  /* Bordure animée mono-couleur (blocs Méthode : chacun garde sa couleur) */
  .glow-mono { position: relative; }
  .glow-mono::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--gba), transparent, var(--glow-color, #60a5fa) 18%, transparent 36%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: gba-spin 5s linear infinite;
    pointer-events: none;
  }

  /* Les trois exemples : liste verticale, ils vivent au centre de l'orbite */
  .auto-cards { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }

  /* Encadrement du bloc Automatisations, dans le bleu de l'anneau */
  .auto-frame {
    border-radius: 2rem;
    border: 2px solid rgba(56, 189, 248, 0.20);
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem 1.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }

  /* Orbite : les six familles tournent autour de la fiche ouverte.
     Geometrie : noeuds a 38 % de la largeur, fiche a 58 % de large.
     Un noeud ne peut jamais entrer dans la fiche tant que sa hauteur
     reste sous 49 % de la largeur de l'orbite (441 px pour 900 px). */
  .orbit {
    position: relative;
    width: min(100%, 920px);
    aspect-ratio: 1;
    margin: 0 auto;
  }
  .orbit-ring {
    position: absolute;
    inset: 11%;
    border-radius: 50%;
    border: 3px solid rgba(56, 189, 248, 0.20);
  }
  .orbit-ring::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from var(--gba), transparent, #38bdf8 14%, transparent 30%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: gba-spin 6s linear infinite;
    pointer-events: none;
  }
  /* La fiche reste visible en permanence : la pastille allumee indique ou l'on est */
  .orbit-center {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 416px;
    max-width: 82%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .orbit-center-icone {
    width: 82px; height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee, #38bdf8);
    color: #06121f;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.55);
    flex-shrink: 0;
  }
  .orbit-center-titre {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #fff;
    text-align: center;
    margin: 0.5rem 0 0.7rem;
  }
  .orbit-center .auto-cards { width: 100%; }

  .orbit-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 132px;
    display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
    background: none; border: none; padding: 0; cursor: pointer;
  }
  .orbit-node .puce {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 8, 23, 0.85);
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  }
  .orbit-node .etiquette {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    line-height: 1.3;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
  }
  .orbit-node:hover .puce {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
    color: #fff;
  }
  .orbit-node:hover .etiquette { color: rgba(255, 255, 255, 0.85); }
  .orbit-node.is-active .puce {
    background: linear-gradient(135deg, #22d3ee, #38bdf8);
    border-color: rgba(56, 189, 248, 0.85);
    color: #06121f;
    transform: scale(1.14);
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.55);
  }
  .orbit-node.is-active .etiquette { color: #fff; font-weight: 600; }

  /* Sous 1024 px le cercle serait trop etroit : la fiche reprend le fil du document
     et la rangee d'onglets sert de navigation. */
  @media (max-width: 1023px) {
    .orbit { aspect-ratio: auto; width: 100%; }
    .orbit-ring, .orbit-node { display: none; }
    .orbit-center {
      position: static;
      transform: none;
      width: 100%;
      max-height: none;
    }
  }
  @media (min-width: 1024px) { .auto-tabs { display: none !important; } }

  /* Repère d'action au-dessus des onglets */
  .auto-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #38bdf8;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .auto-cue svg { animation: cue-bob 1.9s ease-in-out infinite; }
  @keyframes cue-bob {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(3px); }
  }

  /* Onglets : on doit voir qu'ils se cliquent */
  .auto-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
  }
  .auto-pill:not(.is-active):hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.10);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.20);
    color: #fff;
  }
  .auto-pill.is-active { transform: translateY(-1px); }

  @media (prefers-reduced-motion: reduce) {
    .auto-curves .flow, .auto-cue svg { animation: none; }
    .auto-pill:not(.is-active):hover { transform: none; }
  }
  @media (max-width: 767px) {
    .auto-curves { display: none !important; }
  }

  /* Cas pratiques : les trois encarts chiffrés en rangée sous le texte, taille identique */
  .case-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
  }
  @media (min-width: 768px) {
    .case-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .case-stats > div { min-height: 200px; }
  }
  .case-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Curseur machine à écrire */
  .tw-caret::after {
    content: "▌";
    color: #60a5fa;
    margin-left: 2px;
    animation: twblink 0.8s step-end infinite;
  }
  @keyframes twblink { 50% { opacity: 0; } }

  .gradient-text {
    background: linear-gradient(135deg,#60a5fa 0%,#818cf8 50%,#fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 2rem;
  }
  .nav-pills { scrollbar-width: none; }
  /* Deux anneaux côte à côte : sections de l'accueil à gauche, page Expertise à droite */
  .nav-groupes {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: 0;
  }
  @media (max-width: 640px) {
    nav { flex-wrap: wrap; row-gap: 0.5rem; padding-top: 0.9rem !important; padding-bottom: 0.8rem !important; }
    nav img { height: 56px !important; }
    .nav-groupes { gap: 0.4rem; width: 100%; }
    nav .nav-pills {
      flex-wrap: wrap !important;
      overflow-x: visible !important;
      justify-content: center !important;
      border-radius: 1.25rem !important;
      row-gap: 0.3rem;
      max-width: 100%;
    }
    .pill { padding: 0.4rem 0.8rem; font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }
    /* La nav (3 lignes avec les deux anneaux) est plus haute sur mobile : on décale le contenu */
    section { scroll-margin-top: 260px; }
    main > div[id] { scroll-margin-top: 260px; }
    section:first-of-type { padding-top: 250px !important; }
  }
  .nav-pills::-webkit-scrollbar { display: none; }
  .pill {
    /* rendu identique que l'élément soit un <button> (section de la page courante)
       ou un <a> (lien vers l'autre page) */
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-family: 'Inter',sans-serif;
  }
  .pill:hover {
    border-color: rgba(96,165,250,0.4);
    color: rgba(255,255,255,0.9);
    background: rgba(96,165,250,0.06);
  }
  .pill.active {
    background: linear-gradient(135deg, rgba(96,165,250,0.15), rgba(129,140,248,0.15));
    border-color: rgba(129,140,248,0.4);
    color: #fff;
  }
  ::-webkit-scrollbar { width:4px; }
  ::-webkit-scrollbar-track { background:#020817; }
  ::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:2px; }

  @keyframes fadeUp { 0% {opacity:0; transform:translateY(24px);} 100% {opacity:1; transform:translateY(0);} }
  .animate-fade-up { animation: fadeUp 0.6s ease-out both; }
  .animate-fade-up-delay { animation: fadeUp 0.6s ease-out 0.2s both; }
  .animate-fade-up-delay-2 { animation: fadeUp 0.6s ease-out 0.4s both; }
  .animate-fade-up-delay-3 { animation: fadeUp 0.6s ease-out 0.6s both; }

  .font-sora { font-family:'Sora',sans-serif; }
  .font-inter { font-family:'Inter',sans-serif; }
  /* Effet projecteur, applique a toutes les cartes du site.
     Les coordonnees sont LOCALES a chaque carte : un filter ou un transform, present
     sur 21 cartes ici, annule l'ancrage a l'ecran et decale la lueur. */
  @media (hover: hover) and (pointer: fine) {
    .card, .spot {
      position: relative;
      --spot-size: 380px;
      --spot-hue: calc(190 + (var(--px, 0.5) * 60));
      background-image: radial-gradient(
        var(--spot-size) var(--spot-size) at var(--lx, -2000px) var(--ly, -2000px),
        hsl(var(--spot-hue) 95% 72% / 0.15), transparent 70%);
      background-repeat: no-repeat;
    }
    .card::before, .spot::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1px;
      background-image: radial-gradient(
        calc(var(--spot-size) * 0.8) calc(var(--spot-size) * 0.8) at var(--lx, -2000px) var(--ly, -2000px),
        hsl(var(--spot-hue) 100% 78% / 1), transparent 72%);
      background-repeat: no-repeat;
      filter: brightness(1.8);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      pointer-events: none;
    }
  }
