/* Barre de navigation (refaite le 02/10/2026) : une pilule flottante en verre dépoli.
   Ordinateur : logo, liens, menu déroulant « Services », bouton. Mobile : logo, téléphone, burger. */
.ll-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 99;
  width: min(66rem, calc(100% - 2rem));
  transform: translateX(-50%);
  font-family: var(--font-family--text);
  transition: top .4s cubic-bezier(.16, 1, .3, 1), width .4s cubic-bezier(.16, 1, .3, 1);
  /* 13/10/2026 : ce bloc fixe contient aussi le panneau mobile, caché mais présent. Sous 992 px, il faisait donc presque
     la hauteur de l'écran, invisible, et prenait les clics et les appuis de la page en dessous (boutons, liens,
     envoi du formulaire). Il laisse maintenant passer les clics : seuls la barre et le panneau ouvert les reçoivent. */
  pointer-events: none;
}

.ll-nav-barre,
.ll-nav.est-ouverte .ll-nav-mobile {
  pointer-events: auto;
}

.ll-nav-barre {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .4rem .4rem .4rem 1.4rem;
  border: 1px solid #ffffffb3;
  border-radius: 999px;
  background-color: #ffffff9e;
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: 0 14px 34px -16px #0b1f3373, inset 0 1px 0 #ffffffd9;
  transition: background-color .4s ease, padding .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
}

/* quand on a commencé à descendre : la barre se resserre et devient un peu plus opaque */
.ll-nav.est-compacte {
  top: .65rem;
  width: min(60rem, calc(100% - 2rem));
}

.ll-nav.est-compacte .ll-nav-barre {
  padding: .3rem .3rem .3rem 1.25rem;
  background-color: #ffffffcc;
  box-shadow: 0 16px 36px -18px #0b1f3399, inset 0 1px 0 #ffffffd9;
}

/* ---- logo : le fichier du logo LocaLeads (version foncée, sans fond) ---- */
.ll-nav-logo {
  display: flex;
  flex: none;
  align-items: center;
  transition: opacity .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.ll-nav-logo img {
  display: block;
  width: auto;
  height: 2.5rem;
}

.ll-nav-logo:hover {
  opacity: .7;
  transform: scale(1.04);
}

/* ---- liens ---- */
.ll-nav-liens {
  position: relative;
  display: flex;
  align-items: center;
  gap: .15rem;
}

.ll-nav-lien {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #16324c;
  font: inherit;
  font-size: .97rem;
  font-weight: var(--font-weight--medium);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}

.ll-nav-lien[aria-current="page"],
.ll-nav-lien.est-courant {
  color: #ff6b35;
}

.ll-nav-lien:focus-visible,
.ll-nav-item:focus-visible,
.ll-nav-tout:focus-visible,
.ll-nav-logo:focus-visible,
.ll-nav-tel:focus-visible,
.ll-nav-burger:focus-visible {
  outline: 2px solid #1f4e79;
  outline-offset: 2px;
}

.ll-nav-bouton svg {
  transition: transform .3s ease;
}

.ll-nav-deroulant.est-ouvert .ll-nav-bouton svg {
  transform: rotate(180deg);
}

/* la pastille qui glisse d'un lien à l'autre au survol */
.ll-nav-pastille {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background-color: #1f4e791f;
  opacity: 0;
  pointer-events: none;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), width .45s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}

.ll-nav-pastille.est-visible {
  opacity: 1;
}

/* ---- panneau déroulant « Services » ---- */
.ll-nav-deroulant {
  position: static;
}

.ll-nav-panneau {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1.25rem;
  width: 34rem;
  max-width: calc(100vw - 2rem);
  padding: 1.25rem;
  border: 1px solid #ffffffcc;
  border-radius: 1.5rem;
  background-color: #fff;
  box-shadow: 0 30px 60px -28px #0b1f3399, inset 0 1px 0 #fff;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -.6rem) scale(.98);
  transform-origin: 50% 0;
  transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s .35s;
}

/* zone invisible entre le lien et le panneau, pour que la souris puisse passer de l'un à l'autre */
.ll-nav-panneau::before {
  content: "";
  position: absolute;
  inset: -1.2rem 0 auto;
  height: 1.2rem;
}

.ll-nav-deroulant.est-ouvert .ll-nav-panneau {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s;
}

.ll-nav-colonne {
  display: flex;
  flex-flow: column;
  gap: .15rem;
}

.ll-nav-colonne-titre {
  padding: .25rem .85rem .5rem;
  font-size: .75rem;
  font-weight: var(--font-weight--medium);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #16324c99;
}

.ll-nav-item {
  display: flex;
  flex-flow: column;
  gap: .15rem;
  padding: .65rem .85rem;
  border-radius: .9rem;
  color: #16324c;
  text-decoration: none;
  transition: background-color .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.ll-nav-item:hover {
  background-color: #1f4e7914;
  transform: translateX(3px);
}

.ll-nav-item-nom {
  font-size: 1rem;
  font-weight: var(--font-weight--medium);
  line-height: 1.25;
}

.ll-nav-item[aria-current="page"] .ll-nav-item-nom {
  color: #ff6b35;
}

.ll-nav-item-note {
  font-size: .85rem;
  line-height: 1.3;
  color: #16324cb3;
}

.ll-nav-tout {
  grid-column: 1 / -1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
  padding: .8rem 1rem;
  border-radius: .9rem;
  background-color: #1f4e79;
  color: #fff;
  font-size: .95rem;
  font-weight: var(--font-weight--medium);
  text-decoration: none;
  transition: color .5s ease;
}

/* au survol, le dégradé de l'identité apparaît derrière et le texte passe en foncé */
.ll-nav-tout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 0 0, #ff6b35 0%, #ffd580 35%, #b3e2ff 65%, #1f4e79);
  opacity: 0;
  transition: opacity .6s ease;
}

.ll-nav-tout:hover,
.ll-nav-tout:focus-visible {
  color: #1a1a1a;
}

.ll-nav-tout:hover::before,
.ll-nav-tout:focus-visible::before {
  opacity: 1;
}

.ll-nav-tout svg {
  width: 1rem;
  height: 1rem;
  transition: transform .25s ease;
}

.ll-nav-tout:hover svg {
  transform: translateX(3px);
}

/* ---- à droite : téléphone (mobile), bouton, burger (mobile) ---- */
.ll-nav-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: .4rem;
}

.ll-nav .ll-nav-cta {
  min-height: 2.9rem;
}

.ll-nav .ll-nav-cta .button-inner {
  padding: .6rem 1.35rem;
}

.ll-nav .ll-nav-cta .button-text {
  font-size: .95rem;
  white-space: nowrap;
}

.ll-nav-tel,
.ll-nav-burger {
  display: none;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #1f4e791a;
  color: #16324c;
  cursor: pointer;
  transition: background-color .2s ease;
}

.ll-nav-tel:hover,
.ll-nav-burger:hover {
  background-color: #1f4e7933;
}

.ll-nav-tel svg {
  width: 1.2rem;
  height: 1.2rem;
}

.ll-nav-burger {
  flex-flow: column;
  gap: 6px;
}

.ll-nav-burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.ll-nav.est-ouverte .ll-nav-burger span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.ll-nav.est-ouverte .ll-nav-burger span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---- panneau mobile ---- */
.ll-nav-mobile {
  display: none;
}

@media screen and (max-width: 991px) {
  .ll-nav-liens {
    display: none;
  }

  .ll-nav-tel,
  .ll-nav-burger {
    display: flex;
  }

  .ll-nav-barre {
    padding-left: 1.25rem;
  }

  .ll-nav-mobile {
    display: flex;
    flex-flow: column;
    gap: .15rem;
    max-height: calc(100vh - 6.5rem);
    max-height: calc(100dvh - 6.5rem);
    margin-top: .6rem;
    padding: 1rem;
    overflow-y: auto;
    scrollbar-width: none;
    border: 1px solid #ffffffcc;
    border-radius: 1.75rem;
    background-color: #fff;
    box-shadow: 0 30px 60px -28px #0b1f3399, inset 0 1px 0 #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.6rem);
    transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s .35s;
  }

  .ll-nav.est-ouverte .ll-nav-mobile {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s;
  }

  .ll-nav-mobile-lien {
    padding: .65rem 1rem;
    border-radius: .9rem;
    color: #16324c;
    font-size: 1.2rem;
    font-weight: var(--font-weight--medium);
    line-height: 1.2;
    text-decoration: none;
  }

  .ll-nav-mobile-lien[aria-current="page"],
  .ll-nav-mobile-groupe a[aria-current="page"] {
    color: #ff6b35;
  }

  .ll-nav-mobile-lien:active,
  .ll-nav-mobile-groupe a:active {
    background-color: #1f4e7914;
  }

  .ll-nav-mobile-titre {
    padding: .6rem 1rem .2rem;
    font-size: .75rem;
    font-weight: var(--font-weight--medium);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #16324c99;
  }

  .ll-nav-mobile-groupe {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .1rem 1rem .5rem;
  }

  .ll-nav-mobile-groupe a {
    padding: .5rem .9rem;
    border: 1px solid #1f4e7933;
    border-radius: 999px;
    color: #16324c;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none;
  }

  .ll-nav-mobile-cta {
    margin-top: .75rem;
  }
}

/* petit téléphone : le bouton passe dans le panneau, la barre garde logo, téléphone et burger */
@media screen and (max-width: 479px) {
  .ll-nav {
    top: .75rem;
    width: calc(100% - 1.25rem);
  }

  .ll-nav .ll-nav-cta {
    display: none;
  }
}

@media screen and (min-width: 480px) and (max-width: 991px) {
  .ll-nav-mobile-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ll-nav,
  .ll-nav-barre,
  .ll-nav-pastille,
  .ll-nav-panneau,
  .ll-nav-mobile,
  .ll-nav-item,
  .ll-nav-tout,
  .ll-nav-tout::before,
  .ll-nav-burger span {
    transition: none !important;
  }
}

@media print {
  .ll-nav {
    display: none;
  }
}

/* ---- 17/10/2026 : panneau mobile plein écran (consigne « mobile irréprochable ») ----
   « Services » et « Votre métier » repliables (fermés au départ), la liste défile dans le panneau,
   le pied (« Nous appeler » + bouton d'analyse) reste collé en bas. js/nav.js bloque la page derrière.
   Le voile invisible sous le menu ferme le menu quand on touche en dehors du panneau. */
.ll-nav-voile {
  position: fixed;
  inset: 0;
  z-index: 98;
}

.ll-nav-voile[hidden] {
  display: none;
}

@media screen and (max-width: 991px) {
  .ll-nav-mobile[data-menu-mobile] {
    gap: 0;
    height: calc(100vh - 6.5rem);
    height: calc(100dvh - 6.5rem);
    max-height: none;
    padding: 0;
    overflow: hidden;
  }

  .ll-nav-mobile-defile {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-flow: column;
    gap: .15rem;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .ll-nav-mobile[data-menu-mobile] .ll-nav-mobile-lien {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .ll-nav-mobile-rubrique {
    display: flex;
    flex-flow: column;
  }

  .ll-nav-mobile-ouvrir {
    justify-content: space-between;
    width: 100%;
    margin: 0;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
  }

  .ll-nav-mobile-ouvrir:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: -2px;
  }

  /* le « + » qui devient « − » */
  .ll-nav-mobile-signe {
    position: relative;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: #1f4e7914;
  }

  .ll-nav-mobile-signe::before,
  .ll-nav-mobile-signe::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: .75rem;
    height: 2px;
    margin: -1px 0 0 -.375rem;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform .25s ease;
  }

  .ll-nav-mobile-signe::after {
    transform: rotate(90deg);
  }

  .ll-nav-mobile-ouvrir[aria-expanded="true"] .ll-nav-mobile-signe::after {
    transform: rotate(0deg);
  }

  .ll-nav-mobile-ouvrir[aria-expanded="false"] + .ll-nav-mobile-groupe {
    display: none;
  }

  .ll-nav-mobile[data-menu-mobile] .ll-nav-mobile-groupe {
    padding-top: .25rem;
  }

  .ll-nav-mobile[data-menu-mobile] .ll-nav-mobile-groupe a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .ll-nav-mobile-pied {
    flex: none;
    display: flex;
    flex-flow: column;
    gap: .25rem;
    padding: .5rem 1rem 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid #1f4e7914;
    background-color: #fff;
  }

  .ll-nav-mobile-appel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2.75rem;
    color: #16324c;
    font-size: .9rem;
    font-weight: var(--font-weight--medium);
    text-decoration: none;
  }

  .ll-nav-mobile[data-menu-mobile] .ll-nav-mobile-cta {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ll-nav-mobile-signe::before,
  .ll-nav-mobile-signe::after {
    transition: none;
  }
}
