  /* ---- Inter auto-hébergée (sous-ensemble latin, sans dépendance externe) ---- */
  @font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url("../assets/fonts/inter-200.woff2") format("woff2");
  }
  @font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../assets/fonts/inter-300.woff2") format("woff2");
  }
  @font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/inter-400.woff2") format("woff2");
  }
  @font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../assets/fonts/inter-500.woff2") format("woff2");
  }

  :root {
    --bg: #050505;
    --violet: #3A0CA3;
    --orange: #FF6A00;
    --jaune: #FFD500;
    --txt: #F5F5F7;
    --txt-2: rgba(245, 245, 247, 0.62);
    --txt-3: rgba(245, 245, 247, 0.38);
  }

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

  html, body { height: 100%; }

  body {
    background: var(--bg);
    color: var(--txt);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  main {
    height: 100dvh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
  }

  section {
    position: relative;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    overflow: hidden;
  }

  /* ---- Glows ---- */
  .glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .glow--violet {
    background:
      radial-gradient(ellipse 70% 45% at 50% 110%, rgba(58, 12, 163, 0.42), transparent 70%),
      radial-gradient(ellipse 40% 30% at 80% -10%, rgba(58, 12, 163, 0.18), transparent 70%);
  }
  #dither {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    opacity: 0.85;
    pointer-events: none;
  }

  .glow--solar {
    background:
      radial-gradient(ellipse 65% 45% at 50% 112%, rgba(255, 106, 0, 0.34), transparent 70%),
      radial-gradient(ellipse 35% 25% at 15% -8%, rgba(255, 213, 0, 0.10), transparent 70%);
  }


  .inner {
    position: relative;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  /* ---- Typo ---- */
  .logo {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 18px rgba(58, 12, 163, 0.5));
  }

  .wordmark {
    line-height: 0;
  }
  .wordmark img {
    display: block;
    width: clamp(230px, 46vw, 520px);
    height: auto;
  }

  .tagline {
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 300;
    color: var(--txt-2);
    letter-spacing: 0.01em;
  }

  .subline {
    font-size: clamp(0.82rem, 1.6vw, 0.98rem);
    font-weight: 300;
    color: var(--txt-3);
    letter-spacing: 0.02em;
  }

  .eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--txt-3);
  }

  h2 {
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.015em;
  }

  .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.65;
    color: var(--txt-2);
    max-width: 620px;
  }

  .metiers {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 2;
    color: var(--txt-3);
    max-width: 560px;
  }

  /* ---- Sections produit (HalgarOS / Sur mesure) ---- */
  .inner--wide { max-width: 1180px; width: 100%; }

  .section-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .feat {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 36px;
    text-align: left;
  }
  .feat li {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--txt-2);
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
  .feat li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(92deg, var(--orange), var(--jaune));
    flex: none;
    transform: translateY(-1px);
  }

  .mockups { display: none; }

  @media (min-width: 1024px) {
    .inner--wide {
      flex-direction: row;
      align-items: center;
      gap: 72px;
      text-align: left;
    }
    .section-text {
      flex: 1;
      align-items: flex-start;
      text-align: left;
    }
    .mockups {
      display: block;
      position: relative;
      flex: 1.1;
      height: 460px;
    }
  }

  @media (max-width: 560px) {
    .feat { grid-template-columns: 1fr; }
  }
  @media (max-height: 700px) {
    .metiers { display: none; }
  }

  /* ---- Mockups navigateur ---- */
  .mock {
    position: absolute;
    width: 76%;
    background: #0b0b0d;
    border: 1px solid rgba(245, 245, 247, 0.09);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    font-size: 11px;
    line-height: 1.4;
  }
  .mock--back { top: 0; left: 0; transform: rotate(-3deg); }
  .mock--front { bottom: 0; right: 0; transform: rotate(2.5deg); }

  .mock-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #101013;
    border-bottom: 1px solid rgba(245, 245, 247, 0.07);
  }
  .mock-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(245, 245, 247, 0.14);
  }
  .mock-url {
    font-style: normal;
    margin-left: 8px;
    color: var(--txt-3);
    font-size: 9.5px;
    background: rgba(245, 245, 247, 0.05);
    padding: 3px 12px;
    border-radius: 6px;
  }

  .mock img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* ---- Section Sur mesure ---- */
  @media (min-width: 1024px) {
    .inner--rev { flex-direction: row-reverse; }
  }

  .feat--violet li::before {
    background: linear-gradient(92deg, var(--violet), #B9A6F2);
  }

  /* Mockup site vitrine (client fictif) */
  .m-site {
    background: #f2efe9;
    color: #141210;
  }
  .m-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 9px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .m-nav b { font-weight: 600; font-size: 10px; }
  .m-nav span { color: rgba(20, 18, 16, 0.55); }
  .m-shero { padding: 16px 12px 12px; }
  .m-shero b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .m-shero i {
    font-style: normal;
    color: rgba(20, 18, 16, 0.6);
    font-size: 9px;
  }
  .m-sbtn {
    display: inline-block;
    font-style: normal;
    margin-top: 9px;
    background: #141210;
    color: #f2efe9;
    font-size: 8.5px;
    padding: 4px 13px;
    border-radius: 999px;
  }
  .m-sgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 12px 14px;
  }
  .m-sgrid span {
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d9d2c5, #bfb29c);
  }

  /* Mockup logiciel métier (client fictif) */
  .m-soft { padding: 12px 14px 14px; }
  .m-soft-h {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--txt);
    margin-bottom: 10px;
  }
  .m-soft-h i { font-style: normal; color: #B9A6F2; font-size: 9px; font-weight: 400; }
  .m-stats { display: flex; gap: 6px; margin-bottom: 10px; }
  .m-stat {
    flex: 1;
    background: rgba(245, 245, 247, 0.05);
    border: 1px solid rgba(245, 245, 247, 0.07);
    border-radius: 6px;
    padding: 6px 9px;
  }
  .m-stat b { display: block; font-size: 12px; font-weight: 500; color: var(--txt); }
  .m-stat i { font-style: normal; font-size: 8px; color: var(--txt-3); }
  .m-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 2px;
    border-top: 1px solid rgba(245, 245, 247, 0.06);
    font-size: 9.5px;
    color: var(--txt-2);
  }
  .m-pill {
    font-style: normal;
    font-size: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(58, 12, 163, 0.38);
    border: 1px solid rgba(122, 84, 220, 0.5);
    color: #cbbcf5;
    white-space: nowrap;
  }
  .m-pill.dim {
    background: rgba(245, 245, 247, 0.05);
    border-color: rgba(245, 245, 247, 0.12);
    color: var(--txt-3);
  }

  .cta {
    display: inline-block;
    margin-top: 8px;
    padding: 15px 34px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #050505;
    text-decoration: none;
    background: linear-gradient(92deg, var(--orange), var(--jaune));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .cta:hover, .cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 106, 0, 0.35);
  }

  .cta--violet {
    background: var(--violet);
    color: var(--txt);
  }
  .cta--violet:hover, .cta--violet:focus-visible {
    box-shadow: 0 10px 40px rgba(58, 12, 163, 0.55);
  }

  /* ---- Contact ---- */
  .mail {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    font-weight: 300;
    color: var(--txt);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 245, 247, 0.25);
    padding-bottom: 4px;
    transition: border-color 0.25s ease, color 0.25s ease;
  }
  .mail:hover, .mail:focus-visible {
    color: #B9A6F2;
    border-color: #B9A6F2;
  }

  footer {
    position: absolute;
    bottom: 28px;
    left: 24px;
    right: 24px;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--txt-3);
    line-height: 1.7;
  }

  /* ---- Chevron ---- */
  .chevron {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--txt-3);
    animation: bob 2.2s ease-in-out infinite;
  }
  @keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
  }

  /* ---- Reveal ---- */
  .inner > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s ease, transform 0.9s ease;
  }
  section.visible .inner > * { opacity: 1; transform: none; }
  section.visible .inner > *:nth-child(2) { transition-delay: 0.12s; }
  section.visible .inner > *:nth-child(3) { transition-delay: 0.24s; }
  section.visible .inner > *:nth-child(4) { transition-delay: 0.36s; }
  section.visible .inner > *:nth-child(5) { transition-delay: 0.48s; }

  :focus-visible { outline: 2px solid #B9A6F2; outline-offset: 4px; }

  @media (prefers-reduced-motion: reduce) {
    main { scroll-behavior: auto; }
    .chevron { animation: none; }
    .inner > * { opacity: 1; transform: none; transition: none; }
    .cta, .mail { transition: none; }
  }

  /* ---- Menu hamburger ---- */
  .burger {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 60;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    /* Inversion automatique selon le fond derrière (clair ou sombre) */
    mix-blend-mode: difference;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.2s ease;
  }
  .burger[aria-expanded="true"] span:first-child {
    transform: translateY(4.25px) rotate(45deg);
  }
  .burger[aria-expanded="true"] span:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.94);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .menu[hidden] { display: none; }
  .menu.open { opacity: 1; }

  .menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .menu a {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 200;
    letter-spacing: -0.01em;
    color: var(--txt);
    text-decoration: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.25s ease;
  }
  .menu.open a { opacity: 1; transform: none; }
  .menu.open li:nth-child(1) a { transition-delay: 0.06s; }
  .menu.open li:nth-child(2) a { transition-delay: 0.12s; }
  .menu.open li:nth-child(3) a { transition-delay: 0.18s; }
  .menu.open li:nth-child(4) a { transition-delay: 0.24s; }
  .menu.open li:nth-child(5) a { transition-delay: 0.30s; }
  .menu a:hover, .menu a:focus-visible { color: #B9A6F2; }

  @media (prefers-reduced-motion: reduce) {
    .burger span, .menu, .menu a { transition: none; }
  }

  /* ---- Modal contact ---- */
  .modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 5, 5, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
  }
  .modal[hidden] { display: none; }
  .modal.open { opacity: 1; }

  .modal-box {
    position: relative;
    width: 100%;
    max-width: 540px;
    background: #0c0c0f;
    border: 1px solid rgba(245, 245, 247, 0.1);
    border-radius: 18px;
    padding: 38px 34px 32px;
    text-align: left;
    transform: translateY(14px) scale(0.985);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
  }
  .modal.open .modal-box { transform: none; }

  .modal-box h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
  }
  .modal-sub {
    font-size: 0.94rem;
    font-weight: 300;
    color: var(--txt-2);
    margin-bottom: 24px;
  }

  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--txt-3);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .modal-close:hover { color: var(--txt); background: rgba(245, 245, 247, 0.07); }

  .back {
    background: none;
    border: 0;
    color: var(--txt-3);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 300;
    padding: 0 0 14px;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .back:hover { color: var(--txt); }

  /* Choix */
  .choice-grid { display: grid; gap: 12px; }
  .choice {
    display: block;
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(245, 245, 247, 0.04);
    border: 1px solid rgba(245, 245, 247, 0.09);
    color: var(--txt);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  }
  .choice:hover, .choice:focus-visible {
    border-color: rgba(122, 84, 220, 0.65);
    background: rgba(58, 12, 163, 0.14);
    transform: translateY(-2px);
  }
  .choice svg { color: #B9A6F2; margin-bottom: 10px; display: block; }
  .choice b { display: block; font-size: 1rem; font-weight: 400; margin-bottom: 3px; }
  .choice i {
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--txt-3);
    line-height: 1.5;
  }

  /* Formulaire */
  #contact-form { display: flex; flex-direction: column; gap: 14px; }
  #contact-form .row { display: flex; gap: 12px; }
  #contact-form .row > label { flex: 1; }
  #contact-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--txt-2);
    letter-spacing: 0.01em;
  }
  #contact-form label span { color: #B9A6F2; }
  #contact-form label em { font-style: normal; color: var(--txt-3); font-weight: 300; }
  #contact-form input, #contact-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 11px 13px;
    background: rgba(245, 245, 247, 0.045);
    border: 1px solid rgba(245, 245, 247, 0.11);
    border-radius: 9px;
    color: var(--txt);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 300;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  #contact-form textarea { resize: vertical; min-height: 88px; }
  #contact-form input::placeholder, #contact-form textarea::placeholder { color: rgba(245,245,247,0.28); }
  #contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    border-color: rgba(122, 84, 220, 0.75);
    background: rgba(245, 245, 247, 0.06);
  }
  #contact-form input[aria-invalid="true"], #contact-form textarea[aria-invalid="true"] {
    border-color: rgba(255, 106, 0, 0.75);
  }
  .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

  .form-error {
    font-size: 0.85rem;
    font-weight: 300;
    color: #FF8A3D;
  }
  .form-submit {
    margin-top: 4px;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
  }
  .form-submit[disabled] { opacity: 0.55; cursor: default; transform: none; }
  .rgpd {
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--txt-3);
    line-height: 1.6;
  }

  /* Rendez-vous & confirmation */
  #rdv-slot { min-height: 120px; }
  .rdv-fallback {
    padding: 20px;
    border-radius: 12px;
    background: rgba(245, 245, 247, 0.04);
    border: 1px solid rgba(245, 245, 247, 0.09);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--txt-2);
    line-height: 1.6;
  }
  .rdv-fallback a { color: #B9A6F2; }
  .done-check {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(58, 12, 163, 0.25);
    border: 1px solid rgba(122, 84, 220, 0.5);
    color: #B9A6F2;
    margin-bottom: 16px;
  }

  @media (max-width: 520px) {
    .modal-box { padding: 32px 22px 26px; }
    #contact-form .row { flex-direction: column; gap: 14px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .modal, .modal-box, .choice { transition: none; }
  }

  /* ---- Liens légaux du footer ---- */
  .foot-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }
  .foot-links a {
    color: var(--txt-3);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .foot-links a:hover, .foot-links a:focus-visible { color: var(--txt-2); }
  .rgpd a { color: var(--txt-2); }


  /* ============================================================
     Section HalgarOS — îlot en thème clair
     Les règles sont scopées sous .section--light pour primer sur
     les couleurs claires par défaut du reste du site.
     ============================================================ */
  .section--light {
    background: #FAF7F2;
    color: #17140F;
  }
  .glow--solar-light {
    background:
      radial-gradient(ellipse 60% 42% at 50% 108%, rgba(255, 106, 0, 0.16), transparent 70%),
      radial-gradient(ellipse 32% 24% at 85% -6%, rgba(255, 213, 0, 0.20), transparent 70%);
  }

  .section--light .halgaros-title {
    line-height: 0;
    margin: 0;
  }
  .section--light .halgaros-logo {
    width: clamp(230px, 42vw, 460px);
    height: auto;
    display: block;
  }

  .section--light .eyebrow { color: rgba(23, 20, 15, 0.45); }
  .section--light .lead    { color: rgba(23, 20, 15, 0.72); }
  .section--light .metiers { color: rgba(23, 20, 15, 0.45); }
  .section--light .feat li { color: rgba(23, 20, 15, 0.72); }
  .section--light h2       { color: #17140F; }

  .section--light .mock {
    box-shadow: 0 30px 70px rgba(120, 70, 20, 0.18), 0 4px 18px rgba(120, 70, 20, 0.1);
  }

  /* ---- Sélecteur de langue (footer) ---- */
  .lang-switch {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
  .lang-switch a,
  .lang-switch .lang-current {
    padding: 3px 9px;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .lang-switch .lang-current {
    color: var(--txt-2);
    background: rgba(245, 245, 247, 0.08);
  }
  .lang-switch a {
    color: var(--txt-3);
  }
  .lang-switch a:hover, .lang-switch a:focus-visible {
    color: var(--txt);
    background: rgba(245, 245, 247, 0.05);
  }
