/* =========================================================================
   Header + popup auth — Design System (Design v2)
   Porté depuis Design System/ui_kits/marketing/header.js (CSS inline du kit).
   Le kit gère l'auth en client-side (localStorage) ; ici on garde les VRAIES
   modales Symfony (login/inscription/reset) et on reproduit uniquement le
   LOOK du kit dessus. La popup est une modale Bootstrap classnée .lgdf-auth-modal.
   ========================================================================= */

/* ---------- Soulignement rouge tracé "à la main" sur l'entrée principale ---------- */
.lgdf-nav-underline { position: relative; }
.lgdf-nav-underline::after {
	content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 4px; height: 3px; border-radius: 2px;
	background: var(--lgdf-red-500, #e4002b);
	transform: rotate(-2.8deg) skewX(-16deg) scaleX(.97); transform-origin: left center;
	opacity: .9; transition: transform .18s ease;
}
.lgdf-nav-underline:hover::after { transform: rotate(-2.8deg) skewX(-16deg) scaleX(1); }

/* ---------- Chip utilisateur connecté (dropdown compte) ---------- */
.lgdf-user-btn {
	display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px;
	border: 1px solid var(--lgdf-stone-200, #e6e2da); border-radius: 999px;
	background: var(--lgdf-paper-0, #fff); cursor: pointer; transition: background .15s, border-color .15s;
}
.lgdf-user-btn:hover, .lgdf-user-btn[aria-expanded="true"] {
	background: var(--lgdf-paper-100, #f6f4ef); border-color: var(--lgdf-ink-300, #c7d0e0);
}
.lgdf-user-ava {
	width: 34px; height: 34px; border-radius: 999px; flex: none;
	display: flex; align-items: center; justify-content: center;
	font-weight: 600; font-size: .78rem; color: #fff;
	background: linear-gradient(135deg, var(--lgdf-ink-500, #33508f), var(--lgdf-ink-800, #13234d));
}
.lgdf-user-meta { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.lgdf-user-name { font-weight: 600; color: var(--lgdf-ink-900, #0b1f44); font-size: .88rem; }
.lgdf-user-role {
	font-size: .64rem; color: var(--lgdf-stone-500, #8a8275);
	font-family: var(--lgdf-font-mono, ui-monospace, monospace);
	letter-spacing: .1em; text-transform: uppercase;
}
.lgdf-user-chev { color: var(--lgdf-stone-500, #8a8275); margin-left: 2px; }
.lgdf-user-menu {
	border: 1px solid var(--lgdf-stone-200, #e6e2da); border-radius: 14px; padding: 8px; min-width: 248px;
	box-shadow: 0 24px 60px -24px rgba(11, 42, 107, .4);
}
.lgdf-user-head { padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--lgdf-stone-100, #efece5); }
.lgdf-user-head-name { font-weight: 600; color: var(--lgdf-ink-900, #0b1f44); font-size: .92rem; }
.lgdf-user-head-mail { font-size: .8rem; color: var(--lgdf-stone-500, #8a8275); overflow: hidden; text-overflow: ellipsis; }
.lgdf-user-menu .dropdown-item { border-radius: 9px; padding: 9px 12px; font-size: .9rem; color: var(--lgdf-ink-800, #13234d); }
.lgdf-user-menu .dropdown-item:hover { background: var(--lgdf-paper-100, #f6f4ef); }
.lgdf-user-menu .lgdf-logout { color: var(--lgdf-red-600, #c30024); font-weight: 600; }
.lgdf-user-menu .lgdf-logout:hover { background: var(--lgdf-red-50, #fdecef); }

/* Mobile (navbar repliée, < lg) : le dropdown passe en flux normal pleine
   largeur — en absolu il déborderait de l'écran (menu 248px aligné à droite
   d'un chip situé à gauche). Nécessite data-bs-display="static" sur le toggle. */
@media (max-width: 991.98px) {
	/* Respiration : les liens et la zone auth ne collent plus aux bords */
	.navbar-lgdf .navbar-collapse { padding: 6px 10px 18px; }
	.navbar-collapse .dropdown { width: 100%; }
	.lgdf-user-btn { width: 100%; padding: 8px 14px 8px 8px; }
	.lgdf-user-chev { margin-left: auto; }
	.lgdf-user-menu {
		position: static; width: 100%; margin-top: 6px;
		box-shadow: none; border-color: var(--lgdf-stone-100, #efece5);
	}
}

/* ---------- Popup auth (look du kit, dans une modale Bootstrap) ---------- */
.lgdf-auth-modal .modal-dialog { max-width: 512px; }
.lgdf-auth-modal .modal-content {
	position: relative; border: 1px solid var(--lgdf-stone-200, #e6e2da); border-radius: 18px; overflow: hidden;
	box-shadow: 0 40px 90px -30px rgba(11, 42, 107, .45); background: var(--lgdf-paper-0, #fff);
}
.lgdf-auth-strip {
	height: 6px; flex: none;
	background: linear-gradient(to right, var(--lgdf-ink-700, #0b2a6b) 0 33%, #fff 33% 66%, var(--lgdf-red-500, #e4002b) 66% 100%);
}
.lgdf-auth-close {
	position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 999px; z-index: 2;
	background: var(--lgdf-paper-100, #f6f4ef); color: var(--lgdf-ink-700, #0b2a6b); font-size: 24px; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.lgdf-auth-close:hover { background: var(--lgdf-stone-200, #e6e2da); }
.lgdf-auth-body { padding: 30px 40px 34px; }
.lgdf-auth-kicker {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--lgdf-font-mono, ui-monospace, monospace);
	font-size: .72rem; text-transform: uppercase; letter-spacing: .16em;
	color: var(--lgdf-stone-500, #8a8275); font-weight: 500; margin-bottom: 14px;
}
.lgdf-auth-kicker .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--lgdf-red-500, #e4002b); }
.lgdf-auth-title { font-weight: 700; letter-spacing: -.02em; font-size: 1.7rem; color: var(--lgdf-ink-900, #0b1f44); margin: 0 0 6px; }
.lgdf-auth-sub { color: var(--lgdf-stone-500, #8a8275); font-size: .92rem; margin: 0 0 22px; }
.lgdf-auth-label { display: block; font-size: .82rem; font-weight: 600; color: var(--lgdf-ink-800, #13234d); margin-bottom: 7px; }
.lgdf-auth-input {
	width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--lgdf-stone-200, #e6e2da);
	background: var(--lgdf-paper-50, #faf9f5); color: var(--lgdf-ink-900, #0b1f44); font-size: .95rem; font-family: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.lgdf-auth-input.mb { margin-bottom: 16px; }
.lgdf-auth-input:focus {
	outline: none; border-color: var(--lgdf-ink-700, #0b2a6b); background: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--lgdf-ink-700, #0b2a6b) 14%, transparent);
}
.lgdf-auth-input::placeholder { color: var(--lgdf-stone-400, #b1aa9c); }
.lgdf-auth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lgdf-auth-pwrow { display: flex; align-items: baseline; justify-content: space-between; }
.lgdf-auth-forgot { font-size: .8rem; color: var(--lgdf-ink-700, #0b2a6b); text-decoration: none; font-weight: 500; cursor: pointer; }
.lgdf-auth-forgot:hover { text-decoration: underline; }
.lgdf-auth-pwwrap { position: relative; }
.lgdf-auth-pwwrap .lgdf-auth-input { padding-right: 46px; }
.lgdf-auth-eye {
	position: absolute; top: 0; right: 8px; height: 100%; width: 34px; border: 0; background: transparent;
	color: var(--lgdf-stone-500, #8a8275); cursor: pointer; border-radius: 8px;
	display: flex; align-items: center; justify-content: center; transition: color .15s;
}
.lgdf-auth-eye:hover { color: var(--lgdf-ink-800, #13234d); }
.lgdf-auth-submit { width: 100%; margin-top: 20px; padding-top: 11px; padding-bottom: 11px; font-weight: 600; }
.lgdf-auth-or {
	display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--lgdf-stone-500, #8a8275);
	font-family: var(--lgdf-font-mono, ui-monospace, monospace); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.lgdf-auth-or::before, .lgdf-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--lgdf-stone-200, #e6e2da); }
.lgdf-auth-social {
	width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px;
	padding: 12px 16px; border-radius: 11px; border: 1px solid var(--lgdf-stone-200, #e6e2da); background: var(--lgdf-paper-0, #fff);
	color: var(--lgdf-ink-800, #13234d); font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
	transition: background .15s, border-color .15s;
}
.lgdf-auth-social:hover { background: var(--lgdf-paper-100, #f6f4ef); border-color: var(--lgdf-ink-300, #c7d0e0); color: var(--lgdf-ink-900, #0b1f44); }
.lgdf-auth-social .li { color: #0a66c2; display: inline-flex; }
.lgdf-auth-social img { width: 18px; height: 18px; }
.lgdf-auth-foot { text-align: center; font-size: .9rem; color: var(--lgdf-stone-600, #6e6658); margin: 22px 0 0; }
.lgdf-auth-foot a { color: var(--lgdf-ink-700, #0b2a6b); font-weight: 600; text-decoration: none; cursor: pointer; }
.lgdf-auth-foot a:hover { text-decoration: underline; }

/* Bloc d'erreur : CACHÉ par défaut (corrige le bug v2 où .login-modal-error
   n'avait plus de règle display:none et restait affiché en permanence). */
.lgdf-auth-error { display: none; margin-bottom: 16px; padding: 11px 14px; border-radius: 11px;
	background: var(--lgdf-red-50, #fdecef); border: 1px solid var(--lgdf-red-200, #f7c3cf);
	color: var(--lgdf-red-600, #c30024); font-size: .86rem; }
.lgdf-auth-error.is-visible { display: block; }

/* ---------- Bandeau d'annonce (piloté par .env HEADER_BANNER) ---------- */
.lgdf-topbanner { background: var(--lgdf-ink-900, #0b1f44); }

/* ============================================================
   NOUVEAUTES - cloche header + dropdown (kit mon-compte)
   ============================================================ */
.notif-dd { position: relative; }
.notif-bell {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--lgdf-stone-200);
  background: #fff;
  border-radius: 999px;
  color: var(--lgdf-ink-700);
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
}
.notif-bell:hover { background: var(--lgdf-paper-50); border-color: var(--lgdf-stone-300); }
.notif-bell i, .notif-bell svg { width: 17px; height: 17px; }
.notif-bell .notif-badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--lgdf-red-500);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  font-variant-numeric: tabular-nums;
}
.notif-bell .notif-badge[hidden] { display: none; }
.notif-menu {
  width: 380px;
  max-width: calc(100vw - 24px);
  padding: 0;
  border: 1px solid var(--lgdf-stone-200);
  border-radius: 16px;
  box-shadow: 0 24px 48px -24px rgba(11, 42, 107, 0.28);
  overflow: hidden;
}
.notif-menu-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--lgdf-stone-100);
}
.notif-menu-head h6 { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--lgdf-ink-900); }
.notif-menu-head .nm-count { color: var(--lgdf-stone-500); font-size: 0.78rem; }
.notif-readall {
  border: 0; background: transparent;
  color: var(--lgdf-ink-700);
  font-size: 0.78rem; font-weight: 600;
  padding: 0.25rem 0.35rem; border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.notif-readall:hover { background: var(--lgdf-paper-50); }
.notif-readall:disabled { color: var(--lgdf-stone-300); cursor: default; background: transparent; }
.notif-menu-list { max-height: 340px; overflow-y: auto; }
.notif-mi {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--lgdf-stone-100);
  cursor: pointer;
  background: #fff;
  transition: background 120ms;
  text-align: left; width: 100%;
  text-decoration: none;
}
.notif-mi:hover { background: var(--lgdf-paper-50); }
.notif-mi:last-child { border-bottom: 0; }
.notif-mi .nm-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--lgdf-red-500);
  margin-top: 6px;
}
.notif-mi.is-read .nm-dot { background: transparent; }
.notif-mi .nm-title {
  font-size: 0.88rem; font-weight: 600; color: var(--lgdf-ink-900);
  line-height: 1.35; margin: 0;
}
.notif-mi.is-read .nm-title { font-weight: 500; color: var(--lgdf-ink-700); }
.notif-mi .nm-meta {
  display: flex; align-items: center; gap: 0.45rem;
  margin-top: 0.3rem;
  font-size: 0.75rem; color: var(--lgdf-stone-500);
}
.notif-menu-foot {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--lgdf-stone-100);
  background: var(--lgdf-paper-50);
  font-size: 0.84rem; font-weight: 600;
  color: var(--lgdf-ink-700);
  text-decoration: none;
}
.notif-menu-foot:hover { color: var(--lgdf-ink-900); background: var(--lgdf-stone-100); }
.notif-menu-foot i, .notif-menu-foot svg { width: 14px; height: 14px; }
.notif-menu-empty {
  padding: 2rem 1rem; text-align: center;
  color: var(--lgdf-stone-500); font-size: 0.85rem;
}

/* type chips (partagees menu + pane nouveautes) */
.nv-type {
  display: inline-flex; align-items: center; gap: 0.3rem;
  height: 20px; padding: 0 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nv-type i, .nv-type svg { width: 12px; height: 12px; }
.nv-type.t-nouveaute  { background: #eef2ff; color: #4338ca; }
.nv-type.t-amelioration { background: #ecfdf5; color: #047857; }
.nv-type.t-correctif  { background: #fffbeb; color: #b45309; }
.nv-type.t-info       { background: var(--lgdf-paper-50); color: var(--lgdf-stone-600); }

/* Cloche : desktop = menu absolu aligne a droite (dropdown-menu-end, sans Popper).
   Mobile (navbar repliee) : flux normal pleine largeur, comme .lgdf-user-menu. */
@media (max-width: 991.98px) {
  .notif-dd { width: 100%; }
  .notif-bell { margin: 0; }
  .notif-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    box-shadow: none;
    border-color: var(--lgdf-stone-100, #efece5);
  }
}
