/* ============================================================
   nav-menu.css : menu deroulant « Resources » de la barre du site (facon attio).
   Charge sur toutes les pages a barre, quelle que soit leur feuille (help.css,
   product.css, site-chrome.css, lp-alt-1) : valeurs ecrites en dur, aucun jeton.
   Le panneau est construit par nav-menu.js.
   ============================================================ */

/* Declencheur : lien du HTML servi + chevron (present des le premier rendu, aucun decalage) */
.nav .nav-links .nav-menu-trigger { gap: 4px; padding-right: 8px; }
.nav-chevron { width: 12px; height: 12px; flex: none; color: #8f99a8; transition: transform .2s cubic-bezier(.2, .8, .2, 1), color .2s ease; }
.nav-menu.is-open .nav-menu-trigger { background: #f3f4f6; color: #232529; }
.nav-menu.is-open .nav-chevron { transform: rotate(180deg); color: #505967; }

.nav-menu { position: relative; display: flex; }

/* Panneau : carte blanche, bordure fine, ombre douce */
.nav-menu-panel { position: absolute; z-index: 60; top: calc(100% + 22px); left: -12px; opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: 16px 0;
  transition: opacity .14s ease, transform .14s ease; pointer-events: none; }
.nav-menu-panel[hidden] { display: none; }
/* Pont invisible : la souris passe du declencheur au panneau sans le refermer */
.nav-menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav-menu.is-open .nav-menu-panel { opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .26s cubic-bezier(.2, .8, .2, 1); }

.nav-menu-card { display: flex; align-items: stretch; gap: 8px; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -8px rgba(16, 24, 40, .14), 0 4px 10px -4px rgba(16, 24, 40, .06);
  font-family: "Geist", -apple-system, "Inter", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-align: left; }
.nav-menu-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-menu-card a { text-decoration: none; }

.nav-menu-title { margin: 16px 0 6px; padding: 0 8px; color: #6f7988; font: 500 12px/16px "Geist", -apple-system, "Inter", sans-serif; letter-spacing: 0; }
.nav-menu-title:first-child { margin-top: 6px; }

/* Colonne principale : titre + description */
.nav-menu-main { width: 264px; padding: 12px; }
.nav .nav-menu-item { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; min-width: 0; padding: 8px; border: 0; border-radius: 12px;
  background: transparent; white-space: normal; transition: background-color .05s ease; }
.nav-menu-label { display: flex; align-items: center; gap: 6px; color: #232529; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -.005em; }
.nav-menu-desc { overflow: hidden; color: #6f7988; font-size: 14px; line-height: 20px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }

/* Panneau gris : liens simples */
.nav-menu-side { width: 232px; margin: 8px 8px 8px 0; padding: 8px 10px 10px; border-radius: 12px; background: #f7f8f9; }
.nav-menu-side .nav-menu-title { padding: 0 10px; }
.nav-menu-side .nav-menu-title:first-child { margin-top: 2px; }
.nav .nav-menu-link { display: flex; align-items: center; justify-content: flex-start; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: #232529; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -.005em; transition: background-color .05s ease; }

.nav .nav-menu-item:hover, .nav .nav-menu-item:focus-visible { background: #f3f4f6; color: inherit; }
.nav .nav-menu-link:hover, .nav .nav-menu-link:focus-visible { background: #eceef1; color: #232529; }
.nav .nav-menu-item:focus-visible, .nav .nav-menu-link:focus-visible { outline: 2px solid #4f7cff; outline-offset: -2px; }
.nav .nav-menu-item[aria-current="page"] .nav-menu-label, .nav .nav-menu-link[aria-current="page"] { color: #2f5fe3; }

/* Fleche qui glisse au survol, comme attio */
.nav-menu-arrow { flex: none; color: #8f99a8; opacity: 0; transform: translateX(-3px); transition: opacity .05s ease, transform .05s ease; }
.nav-menu-arrow--out { transform: translate(-2px, 2px); }
.nav-menu-item:hover .nav-menu-arrow, .nav-menu-item:focus-visible .nav-menu-arrow,
.nav-menu-link:hover .nav-menu-arrow, .nav-menu-link:focus-visible .nav-menu-arrow { opacity: 1; transform: none; transition-duration: .3s; }

@media (prefers-reduced-motion: reduce) {
  /* ralentir, jamais couper : fondu seul, sans deplacement */
  .nav-menu-panel, .nav-menu.is-open .nav-menu-panel { transform: none; transition: opacity .2s ease; }
  .nav-menu-arrow, .nav-menu-arrow--out { transform: none; }
}

/* ---- Menu mobile (3 traits), 2026-10-01 ---- */
.nav-burger { display: none; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #cad0d9; border-radius: 10px; background: #fff; color: #2e3238; cursor: pointer; }
.nav-burger svg { width: 18px; height: 18px; }
.nav-burger path { transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .15s ease; transform-origin: 12px 12px; }
.nav-burger[aria-expanded="true"] .nb-1 { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nb-2 { opacity: 0; }
.nav-burger[aria-expanded="true"] .nb-3 { transform: translateY(-5px) rotate(-45deg); }
.nav-burger:focus-visible { outline: 2px solid #4f7cff; outline-offset: 2px; }
@media (max-width: 720px) { .nav-burger { display: inline-grid; } }

/* 2026-10-01 : le panneau part du HAUT de l'ecran (top:0) et la barre de
   navigation passe au-dessus de lui. Avant, il partait du bas de la barre
   mesure a l'ouverture : sur telephone (barre d'adresse qui se replie, page
   zoomee, defilement en cours) cette mesure tombait a cote et laissait une
   bande ou l'on voyait le site entre la barre et le menu. */
.nav-sheet { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 90; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 76px 20px 24px; background: #fff;
  font-family: "Geist", -apple-system, "Inter", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
  opacity: 0; transition: opacity .16s ease; }
.nav-sheet-in, .nav-sheet-foot { transform: translateY(-8px); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.nav-sheet.is-open .nav-sheet-in, .nav-sheet.is-open .nav-sheet-foot { transform: none; }
/* Menu ouvert : la barre est epinglee en haut de l'ecran, au-dessus du panneau.
   Sur certaines pages elle defile avec le contenu : sans cela, elle sortait de
   l'ecran et le menu se calait sur une barre invisible. Le padding du body
   (pose par nav-menu.js) compense sa sortie du flux : la page ne saute pas. */
html.nav-sheet-lock header.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.nav-sheet[hidden] { display: none; }
.nav-sheet.is-open { opacity: 1; }
.nav-sheet-in { display: flex; flex-direction: column; }
.nav-sheet-link, .nav-sheet-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid #eeeff1; font-size: 17px; font-weight: 500; color: #1c1d1f; text-decoration: none; cursor: pointer; list-style: none; }
.nav-sheet-group summary::-webkit-details-marker { display: none; }
.nav-sheet-group summary .nav-chevron { transition: transform .2s ease; }
.nav-sheet-group[open] summary .nav-chevron { transform: rotate(180deg); }
.nav-sheet-link[aria-current="page"] { color: #2f5fe3; }
.nav-sheet-group ul { margin: 0; padding: 6px 0 12px; list-style: none; border-bottom: 1px solid #eeeff1; }
.nav-sheet-group li a { display: flex; align-items: center; gap: 6px; min-height: 40px; padding-left: 12px; font-size: 15px; color: #505967; text-decoration: none; }
.nav-sheet-group li a[aria-current="page"] { color: #2f5fe3; }
.nav-sheet-group .nav-menu-arrow { width: 11px; height: 11px; color: #8f99a8; opacity: 1; transform: none; }
.nav-sheet-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.nav-sheet-account, .nav-sheet-cta { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 12px; font-size: 16px; font-weight: 500; text-decoration: none; }
.nav-sheet-account { border: 1px solid #cad0d9; color: #2e3238; background: #fff; }
.nav-sheet-cta { color: #fff; background: radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,.08), rgba(255,255,255,0)), #011767; box-shadow: inset 0 0 8px rgba(255,255,255,.16), 0 1px 2px rgba(1,23,103,.2); }
html.nav-sheet-lock, html.nav-sheet-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .nav-sheet, .nav-sheet-in, .nav-sheet-foot, .nav-burger path, .nav-sheet-group summary .nav-chevron { transition: none; } }
/* Tres petits ecrans : « Start designing » passe dans le menu (il y est deja) pour laisser la place au bouton. */
@media (max-width: 400px) { .nav .nav-right .btn-navy--sm { display: none; } }

/* Audit mobile 2026-10-01 : liens du pied de page et fils d'Ariane trop
   petits pour le doigt (20px de haut). La zone de toucher grandit, la mise
   en page ne bouge pas (marge negative). */
@media (max-width: 720px) {
  .foot-col { gap: 0; }
  .foot-col a { padding: 7px 0; }
  .foot-legal-links a { display: inline-block; padding: 8px 0; }
  .ck-crumbs a, .acc-crumbs a, .help-crumbs a, .pp-crumbs a { display: inline-block; padding: 10px 2px; margin: -10px -2px; }
}
