/* ===== Barre de navigation VEO (v9, 16/10) — partagée par toutes les pages =====
   Calquée sur clickway.fr à la demande de David (« fais exactement comme eux, c'est propre,
   simple, pas de prise de tête ») : une seule barre, SERVICES qui déroule deux cartes
   avec visuel, des liens en capitales, un bouton d'action + le rond WhatsApp.
   16/10 soir : barre de nouveau RONDE (« trop carrée ») et bouton en verre liquide comme les 3
   boutons de l'accueil (le noir à pointillés était « moche »).
   Sur téléphone, la MÊME barre s'allonge vers le bas (pas de plein écran, pas de voile).
   ⚠️ iPhone : aucune animation de position ni backdrop-filter sur la barre fixe (flou + couche
   fixe = « carré » noir sous Safari, cf. 16/10). Interaction : veo-nav.js. */

#veo-nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 9000; padding: 0 12px; pointer-events: none;
  font-family: 'Geist', 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
.vn-pill { pointer-events: auto; position: relative; margin: 0 auto; max-width: 1000px; border-radius: 30px;
  background: #0f0f11; border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 37px rgba(0,0,0,.45);
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.vn-pill::-webkit-scrollbar { display: none; }
.vn-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 8px; min-height: 60px; padding: 0 10px 0 14px; }

/* marque — au survol (ordinateur) ou au toucher (téléphone) l'icône se penche et se soulève,
   exactement le geste de clickway : scale 1.1, rotation -12°, ombre portée */
.vn-brand { display: flex; align-items: center; gap: 9px; height: 60px; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.vn-ico { width: 34px; height: 34px; border-radius: 50%; display: block; flex: 0 0 auto;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), filter .45s ease; }
.vn-brand span { font-size: 18px; font-weight: 500; letter-spacing: -.045em; white-space: nowrap; }
@media (hover: hover) { .vn-brand:hover .vn-ico { transform: scale(1.1) rotate(-12deg); filter: drop-shadow(-4px 4px 5px rgba(0,0,0,.7)); } }
.vn-brand.is-tap .vn-ico { transform: scale(1.1) rotate(-12deg); filter: drop-shadow(-4px 4px 5px rgba(0,0,0,.7)); }

/* boutons de droite */
.vn-right { display: flex; align-items: center; gap: 8px; }
.vn-cta { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  background: rgba(255,255,255,.05); color: #fff; text-decoration: none; border: 0;
  font: 700 11px/1 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 8px rgba(0,0,0,.03), 0 2px 6px rgba(0,0,0,.08),
    inset 3px 3px .5px -3.5px rgba(255,255,255,.09), inset -3px -3px .5px -3.5px rgba(255,255,255,.85),
    inset 1px 1px 1px -.5px rgba(255,255,255,.6), inset -1px -1px 1px -.5px rgba(255,255,255,.6),
    inset 0 0 6px 6px rgba(255,255,255,.12), inset 0 0 2px 2px rgba(255,255,255,.06), 0 0 12px rgba(0,0,0,.15);
  -webkit-tap-highlight-color: transparent; transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s ease; }
.vn-cta i { display: none; }
.vn-cta .vn-long { display: none; }
.vn-cta:hover { background: rgba(255,255,255,.1); }
.vn-cta:active { transform: scale(.97); }
.vn-wa { display: none; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; flex: 0 0 auto;
  background: rgba(255,255,255,.05); border: 0; -webkit-tap-highlight-color: transparent;
  box-shadow: inset -1px -1px 1px -.5px rgba(255,255,255,.6), inset 1px 1px 1px -.5px rgba(255,255,255,.6), inset 0 0 6px 6px rgba(255,255,255,.1);
  transition: transform .16s ease-out, background-color .2s ease; }
.vn-wa svg { width: 21px; height: 21px; display: block; }
.vn-wa:hover { background: rgba(255,255,255,.1); }
.vn-wa:active { transform: scale(.94); }
.vn-burger { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .16s ease-out; }
.vn-burger:active { transform: scale(.94); }
.vn-burger span { position: absolute; left: 11px; width: 18px; height: 1.5px; border-radius: 2px; background: #fff;
  transition: transform .3s cubic-bezier(.23,1,.32,1), top .3s cubic-bezier(.23,1,.32,1); }
.vn-burger span:nth-child(1) { top: 16.5px; }
.vn-burger span:nth-child(2) { top: 22px; }
#veo-nav.is-open .vn-burger span { top: 19.25px; }
#veo-nav.is-open .vn-burger span:nth-child(1) { transform: rotate(45deg); }
#veo-nav.is-open .vn-burger span:nth-child(2) { transform: rotate(-45deg); }

/* liens : liste qui se déplie sous la barre (téléphone), rangée au centre (ordinateur) */
.vn-links { order: 3; flex: 0 0 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s cubic-bezier(.23,1,.32,1); }
#veo-nav.is-open .vn-links { grid-template-rows: 1fr; }
.vn-links-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; }
.vn-links-in > a, .vn-dd-btn { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font: 500 14px/1 'Geist', 'Inter', sans-serif; letter-spacing: .01em; text-transform: uppercase; text-align: left;
  color: rgba(255,255,255,.6); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .2s ease; }
.vn-links-in > a:first-of-type { margin-top: 2px; }
.vn-links-in > a:last-child { margin-bottom: 10px; }
.vn-dd-btn { color: #fff; margin-top: 4px; }
.vn-links-in > a:hover, .vn-links-in > a:focus-visible { color: #fff; }
.vn-chev { width: 12px; height: 12px; flex: 0 0 auto; transition: transform .25s cubic-bezier(.23,1,.32,1); }
#veo-nav.is-dd .vn-chev { transform: rotate(180deg); }

/* les deux cartes Services */
.vn-mega { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s cubic-bezier(.23,1,.32,1); }
#veo-nav.is-dd .vn-mega { grid-template-rows: 1fr; }
.vn-mega-in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.vn-card { display: flex; flex-direction: column; padding: 10px 2px 14px; border-radius: 18px; color: #fff; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s ease; }
.vn-card-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.vn-card-brand img { width: 24px; height: 24px; border-radius: 50%; display: block; }
.vn-card-brand b { font-size: 20px; font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.vn-card strong { font-size: 15px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.vn-card small { margin-top: 5px; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.55); }
.vn-vis { position: relative; display: block; margin-top: 14px; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.vn-vis img { position: absolute; display: block; height: auto; border-radius: 8px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .5s cubic-bezier(.23,1,.32,1); }
/* visuel « web » : deux sites livrés, empilés */
.vn-vis-web { background: radial-gradient(120% 90% at 15% 0%, #4a3f2b 0%, #17140f 62%); }
.vn-vis-web .a { width: 118%; left: -6%; top: 13%; }
.vn-vis-web .b { width: 118%; left: 16%; top: 46%; }
/* visuel « food » : un écran de borne et une photo de plat */
.vn-vis-food { background: radial-gradient(120% 90% at 85% 0%, #5a1a12 0%, #1a0907 64%); }
.vn-vis-food .a { width: 66%; left: 6%; top: 34%; transform: rotate(-4deg); }
.vn-vis-food .b { width: 52%; right: 7%; top: 8%; }
.vn-card:hover .vn-vis .b { transform: translateY(-4px); }
.vn-card:hover .vn-vis-food .a { transform: rotate(-4deg) translateY(-2px); }

html.vn-lock { overflow: hidden; }

/* premium.js (ancien menu, avant le 16/10) vise le 1er <nav> de la page et lui colle nav-hidden /
   nav-scrolled / nav-pill (transform) : ça cacherait les liens au défilement et décalerait le menu
   Services. Neutralisé ici (et premium.js ne vise plus que l'ancien #main-nav). */
#veo-nav .vn-links, #veo-nav .vn-links-in { transform: none !important; }


@media (max-width: 389px) {
  #veo-nav { padding: 0 10px; }
  .vn-top { padding: 0 6px 0 10px; column-gap: 6px; }
  .vn-brand { gap: 7px; }
  .vn-ico { width: 30px; height: 30px; }
  .vn-brand span { font-size: 16px; }
  .vn-cta { padding: 0 14px; font-size: 11px; letter-spacing: .1em; }
  .vn-burger { width: 36px; }
  .vn-burger span { left: 9px; }
}

/* rdv (lot D, 19/10) : sur téléphone, <main> commençait à 32 px, sous la barre fixe (12 → 74 px).
   Classe propre à rdv : sur kards, le hero épinglé par GSAP descendrait de 93 px. */
@media (max-width: 767px) { main.vn-offset-m { padding-top: 96px !important; } }

@media (min-width: 768px) {
  main.vn-offset { padding-top: 84px !important; }
  #veo-nav { top: 14px; padding: 0 20px; }
  .vn-pill { background: rgba(15,15,17,.72); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
  .vn-top { min-height: 64px; padding: 0 12px 0 18px; }
  .vn-pill { border-radius: 32px; }
  .vn-cta .vn-long { display: inline; }
  .vn-cta .vn-short { display: none; }
  .vn-wa { display: inline-flex; }
}

@media (min-width: 1024px) {
  .vn-pill { overflow: visible; max-height: none; }
  .vn-top { flex-wrap: nowrap; }
  .vn-brand { height: 64px; }
  .vn-burger { display: none; }
  .vn-links { order: 0; flex: 0 1 auto; display: block; margin: 0 auto 0 34px; }
  .vn-links-in { overflow: visible; flex-direction: row; align-items: center; gap: 26px; }
  .vn-links-in > a, .vn-dd-btn { min-height: 0; padding: 12px 0; margin: 0 !important; font-size: 13.5px; }
  .vn-links-in > a.vn-l-pill { display: none; }   /* sur ordinateur : le rond vert à droite et le bouton d'action */
  /* le menu déroulant flotte sous la barre (12 px), calé à gauche, et naît du bouton Services */
  .vn-mega { display: block; position: absolute; top: calc(100% + 12px); left: 0; width: 760px; max-width: 100%;
    padding: 12px; border-radius: 26px; background: #0f0f11; border: 1px solid rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 70px -24px rgba(0,0,0,.95);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.985); transform-origin: 20% 0;
    transition: opacity .18s ease, transform .22s cubic-bezier(.23,1,.32,1), visibility 0s .22s; }
  .vn-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* pont pour la souris */
  #veo-nav.is-dd .vn-mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s cubic-bezier(.23,1,.32,1), visibility 0s; }
  .vn-mega-in { overflow: visible; column-gap: 8px; }
  .vn-card { padding: 12px 12px 12px; }
  .vn-card:hover { background: rgba(255,255,255,.035); }
  .vn-vis { aspect-ratio: 16 / 10; }
  .vn-vis-web .a { width: 72%; left: 6%; top: 10%; }
  .vn-vis-web .b { width: 74%; left: 28%; top: 30%; }
  .vn-vis-food .a { width: 40%; left: 12%; top: 22%; }
  .vn-vis-food .b { width: 30%; right: 14%; top: 9%; }
}

/* ── Menu téléphone v3 (16/10 soir) : la simple liste façon clickway était « pas du tout design »
   sur fond noir. Grands liens (Services se déplie en 2 cartes, visuel en tête), puis WhatsApp et
   E-mail en verre liquide comme les boutons de l'accueil. David : PAS de doré, PAS de chiffres
   (essayés puis retirés le 16/10). Pas de flou (règle iPhone), pas de flèche ↗ (emoji bleu sur iOS). ── */
@media (max-width: 1023px) {
  .vn-links-in { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; align-items: stretch; padding: 0 2px; }
  .vn-links-in > * { grid-column: 1 / -1; opacity: 0; transform: translateY(8px);
    transition: opacity .28s ease, transform .4s cubic-bezier(.23,1,.32,1); }
  #veo-nav.is-open .vn-links-in > * { opacity: 1; transform: none; }
  #veo-nav.is-open .vn-links-in > :nth-child(2) { transition-delay: .04s; }
  #veo-nav.is-open .vn-links-in > :nth-child(3) { transition-delay: .08s; }
  #veo-nav.is-open .vn-links-in > :nth-child(4) { transition-delay: .11s; }
  #veo-nav.is-open .vn-links-in > :nth-child(5) { transition-delay: .14s; }
  #veo-nav.is-open .vn-links-in > :nth-child(n+6) { transition-delay: .17s; }
  /* « Services » : grand lien qui déplie les 2 cartes (comme clickway, David aimait le dépliage) */
  .vn-dd-btn { width: 100%; justify-content: space-between; min-height: 58px; margin: 6px 0 0; padding: 0 4px; color: #fff; text-transform: none;
    font: 600 27px/1 'Inter', -apple-system, sans-serif; letter-spacing: -.035em; }
  .vn-dd-btn .vn-chev { width: 16px; height: 16px; color: rgba(255,255,255,.55); }
  .vn-mega-in { column-gap: 10px; }
  .vn-mega-in > .vn-card:first-child, .vn-mega-in > .vn-card:last-child { margin-top: 6px; margin-bottom: 8px; }
  .vn-card { padding: 0 0 4px; }
  .vn-vis { order: -1; margin: 0 0 12px; aspect-ratio: 4 / 3.4; }
  .vn-card-brand { margin-bottom: 6px; gap: 6px; }
  .vn-card-brand img { width: 20px; height: 20px; }
  .vn-card-brand b { font-size: 17px; }
  .vn-card strong { font-size: 14px; }
  .vn-card small { font-size: 12px; }
  /* grands liens */
  .vn-links-in > a:not(.vn-l-pill) { display: flex; align-items: center; justify-content: space-between;
    min-height: 58px; margin: 0; padding: 0 4px; color: #fff; text-transform: none;
    font: 600 27px/1 'Inter', -apple-system, sans-serif; letter-spacing: -.035em; transition: opacity .28s ease, transform .4s cubic-bezier(.23,1,.32,1); }
  .vn-links-in > a:not(.vn-l-pill):active { opacity: .55; }
  /* WhatsApp + E-mail : verre liquide, côte à côte */
  .vn-links-in > a.vn-l-pill { grid-column: auto; display: flex; align-items: center; justify-content: center; height: 50px; min-height: 0;
    margin: 18px 0 12px; padding: 0; border-radius: 999px; color: #fff; text-decoration: none; background: rgba(255,255,255,.05);
    font: 700 11px/1 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase;
    box-shadow: 0 0 8px rgba(0,0,0,.03), 0 2px 6px rgba(0,0,0,.08),
      inset 3px 3px .5px -3.5px rgba(255,255,255,.09), inset -3px -3px .5px -3.5px rgba(255,255,255,.85),
      inset 1px 1px 1px -.5px rgba(255,255,255,.6), inset -1px -1px 1px -.5px rgba(255,255,255,.6),
      inset 0 0 6px 6px rgba(255,255,255,.12), inset 0 0 2px 2px rgba(255,255,255,.06), 0 0 12px rgba(0,0,0,.15); }
  .vn-links-in > a.vn-l-pill:active { transform: scale(.97); background: rgba(255,255,255,.1); }
  /* Accessibilité (audit 19/10) : menu FERMÉ = liens invisibles (opacité 0, hauteur 0) mais encore
     atteignables au clavier (8 arrêts de Tab fantômes) et lus par VoiceOver. `visibility` les retire
     du parcours clavier et de l'arbre d'accessibilité ; le délai de .34 s laisse jouer la fermeture.
     Rien ne change à l'œil (ni position, ni transform, ni flou : règles iPhone respectées). */
  .vn-links-in { visibility: hidden; transition: visibility 0s .34s; }
  #veo-nav.is-open .vn-links-in { visibility: visible; transition-delay: 0s; }
  .vn-mega-in { visibility: hidden; transition: visibility 0s .34s; }
  #veo-nav.is-dd .vn-mega-in { visibility: visible; transition-delay: 0s; }
  /* anneau de focus DANS la liste (overflow:hidden rognait l'anneau extérieur sur les côtés) */
  .vn-links-in > a:focus-visible, .vn-dd-btn:focus-visible, .vn-card:focus-visible { outline-offset: 0; border-radius: 14px; }
  .vn-links-in > a.vn-l-pill:focus-visible { border-radius: 999px; }
}
/* zone de toucher du burger : 44 × 44 au lieu de 40 × 40, sans rien changer au dessin */
.vn-burger::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
/* ≤ 389 px le burger ne fait que 36 px de large : -4 px → 44 px (l'écart avec le bouton voisin est de 6 px) */
@media (max-width: 389px) { .vn-burger::before { inset: -4px; } }
@media (prefers-reduced-motion: reduce) {
  .vn-links-in > * { transition: none !important; }
  .vn-links, .vn-mega, .vn-ico, .vn-vis img, .vn-burger span, .vn-chev { transition: none !important; }
  .vn-links-in, .vn-mega-in { transition: none !important; }
}

/* Brief 02 (06/11/2026) : « SPOW Digital » est plus long que l'ancien nom. Sur les très petits téléphones,
   on réduit la marque pour que le bouton reste sur la même ligne. */
@media (max-width:359px){
  #veo-nav .vn-brand{ gap:7px; }
  #veo-nav .vn-brand span{ font-size:15px; letter-spacing:-.02em; }
  #veo-nav .vn-brand .vn-ico{ width:28px; height:28px; }
  #veo-nav .vn-cta{ padding-left:12px; padding-right:12px; font-size:10px; }
}
