/* CANBUILD / daycode : feuille de style de la plateforme.
   Reprise des valeurs de l'ancien thème du site WordPress (header public lh-*, cartes de compte la-*, sidebar membre, footer). */
:root { --lh-accent: #7a5600; --lh-accent-hover: #0b0b0b; --lh-yellow: #ebad00; --lh-ink: #0b0b0b; --lh-muted: #5a524c; --lh-line: #ece4d0; --lh-soft: #fffaec; --lh-tint: #fff5d6; --lh-bad: #a23b22; --lh-bad-tint: #fdeeea; --lh-header-h: 96px; --pf-sidebar-w: 248px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 100%; line-height: 1.5; color: var(--lh-ink); background: #fff; overflow-x: clip; -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--lh-accent); }
img { max-width: 100%; }

/* Page : footer toujours en bas, contenu centré verticalement */
.pf-layout { min-height: 100vh; display: flex; flex-direction: column; }
.pf-layout-main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.pf-layout-main > * { flex-shrink: 0; }

/* Header public */
.lh-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--lh-header-h); background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--lh-line); }
.lh-header-spacer { height: var(--lh-header-h); }
.lh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lh-header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lh-logo { display: flex; align-items: center; min-width: 0; }
.lh-logo img { height: 48px; width: auto; display: block; max-width: 100%; object-fit: contain; object-position: left center; }
.lh-header-actions { display: flex; align-items: center; gap: 8px; }

/* Boutons */
.lh-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.lh-btn:focus-visible, .lh-input:focus-visible { outline: 2px solid var(--lh-ink); outline-offset: 2px; }
.lh-btn-primary, .lh-btn-primary:visited { background: var(--lh-yellow); color: var(--lh-ink); }
.lh-btn-primary:hover { background: var(--lh-accent-hover); color: #fff; }
.lh-btn-ghost, .lh-btn-ghost:visited { background: transparent; color: var(--lh-ink); padding: 0 14px; }
.lh-btn-ghost:hover { background: var(--lh-soft); color: var(--lh-ink); }
.lh-btn-outline, .lh-btn-outline:visited { background: #fff; color: var(--lh-ink); border: 1px solid #e5e2dc; }
.lh-btn-outline:hover { border-color: var(--lh-accent); color: var(--lh-accent); }
.lh-btn-danger, .lh-btn-danger:visited { background: #a23b22; color: #fff; }
.lh-btn-danger:hover { background: #7a2d19; color: #fff; }
.lh-btn-block { width: 100%; min-height: 50px; font-size: 16px; }
.lh-btn.buttonload { cursor: progress; }
.lh-btn.buttonload .button_text { visibility: hidden; opacity: 0; }
.lh-btn.buttonload::after { content: ""; position: absolute; inset: 0; width: 20px; height: 20px; margin: auto; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: lh-spin .7s linear infinite; }
.lh-btn-outline.buttonload::after { border-color: rgba(122,86,0,.25); border-top-color: var(--lh-accent); }
@keyframes lh-spin { to { transform: rotate(360deg); } }

/* Formulaires */
.lh { color: var(--lh-ink); line-height: 1.5; text-align: left; }
.lh-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.lh-form-sub { font-size: 14px; color: var(--lh-muted); }
.lh-field { display: flex; flex-direction: column; gap: 6px; }
.lh-label { font-size: 14px; font-weight: 500; color: #3c3934; }
.lh-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lh-small-link { font-size: 13px; font-weight: 600; color: var(--lh-accent); text-decoration: none; }
.lh-small-link:hover { text-decoration: underline; }
.lh-input { width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid #e5e2dc; border-radius: 12px; background: #fff; font-family: inherit; font-size: 16px; color: var(--lh-ink); transition: border-color .15s, box-shadow .15s; }
.lh-input:focus { border-color: var(--lh-accent); box-shadow: 0 0 0 3px rgba(235,173,0,.4); outline: none; }
.lh-input.field_error { border-color: #a23b22; box-shadow: 0 0 0 3px rgba(180,35,24,.10); }
.lh-input.la-readonly { background: var(--lh-soft); color: var(--lh-muted); border-color: var(--lh-line); cursor: not-allowed; -webkit-text-fill-color: var(--lh-muted); opacity: 1; }
.lh-input.la-code { max-width: none; font-size: 16px; letter-spacing: .12em; text-align: left; font-variant-numeric: tabular-nums; } /* même largeur et même taille que le champ du mot de passe, sur toutes les pages */
.lh-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: #3c3934; padding: 12px 14px; border: 1px solid #e5e2dc; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.lh-check:hover { border-color: var(--lh-accent); background: var(--lh-soft); }
.lh-check:has(input:checked) { border-color: var(--lh-accent); background: var(--lh-tint); }
.lh-check:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(235,173,0,.18); }
.lh-check:has(input:disabled) { cursor: not-allowed; background: var(--lh-soft); border-color: var(--lh-line); color: var(--lh-muted); }
.lh-check input { appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0; width: 20px; height: 20px; border: 2px solid #c9c3b7; border-radius: 6px; background: #fff center / 14px no-repeat; cursor: inherit; transition: background-color .15s, border-color .15s; }
.lh-check input:checked { background-color: var(--lh-yellow); border-color: var(--lh-ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.lh-check input:disabled:checked { background-color: #b7ae9e; border-color: #b7ae9e; }
.lh-check input:disabled:not(:checked) { background-color: #fff; border-color: #e5e2dc; }
.lh-check input:focus-visible { outline: none; }
.lh-msg { font-size: 14px; line-height: 1.45; border-radius: 12px; padding: 10px 14px; }
.lh-msg p + p { margin-top: 4px; }
.lh-msg-error { background: #fdeeea; color: #7a2d19; }
.lh-msg-ok { background: #fff5d6; color: #0b0b0b; }

/* Carte de compte */
.la { display: flex; justify-content: center; width: 100%; padding: 32px 16px 48px; }
.la-card { width: 100%; max-width: 460px; padding: 32px; background: #fff; border: 1px solid #f3ece0; border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(11,11,11,.25); display: flex; flex-direction: column; gap: 16px; }
.la-card-wide { max-width: 520px; }
.la-card-wide.la-card-activites { max-width: 760px; }
.la-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.la-icon { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; background: var(--lh-tint); color: var(--lh-accent); display: flex; align-items: center; justify-content: center; }
.la-icon-ok { background: #fff5d6; color: #0b0b0b; }
.la-icon-warn { background: #fff4e5; color: #b54708; }
.la-icon-danger { background: #fdeeea; color: #a23b22; }
.la-title { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -.015em; font-weight: 800; color: var(--lh-ink); }
.la-note { font-size: 14px; color: var(--lh-muted); }
.la-rules { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.la-rules li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.4; color: #837c70; }
.la-rules li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #b4aa99; }
.la-rules li.la-rule-ok { color: #0b0b0b; }
.la-rules li.la-rule-ko { color: #a23b22; font-weight: 600; }
.la-rules li.la-rule-ok::before, .la-rules li.la-rule-ko::before { top: 2px; left: 0; width: auto; height: auto; border-radius: 0; background: none; font-size: 13px; line-height: 1.4; font-weight: 700; }
.la-rules li.la-rule-ok::before { content: "\2713"; }
.la-rules li.la-rule-ko::before { content: "\2715"; }
.la-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.la-foot { margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--lh-line); text-align: center; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.la-foot a { color: var(--lh-muted); font-weight: 600; text-decoration: none; }
.la-foot a:hover { color: var(--lh-accent); }
.la-email { padding: 12px 14px; border-radius: 12px; background: var(--lh-soft); border: 1px solid var(--lh-line); font-weight: 700; color: var(--lh-ink); word-break: break-all; text-align: center; }
.la-steps { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: la-step; display: flex; flex-direction: column; gap: 18px; }
.la-steps > li { position: relative; padding-left: 44px; counter-increment: la-step; }
.la-steps > li::before { content: counter(la-step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--lh-tint); color: var(--lh-accent); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.la-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 36px; bottom: -14px; width: 1px; background: var(--lh-line); }
.la-steps-title { margin: 4px 0 2px; font-weight: 700; color: var(--lh-ink); font-size: 15px; }
.la-steps-text { margin: 0 0 8px; font-size: 14px; color: var(--lh-muted); }
.la-key { padding: 10px 12px; border-radius: 10px; background: var(--lh-soft); border: 1px dashed #dbd6ce; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .08em; color: var(--lh-ink); overflow-wrap: anywhere; user-select: all; }
.la-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.la-codes .la-key { text-align: center; letter-spacing: .1em; }

/* Sidebar membre */
.pf-sidebar { background: #fff; color: #25231f; display: flex; gap: 28px; text-align: left; }
.pf-sidebar a { text-decoration: none; }
.pf-sb-brand { display: flex; align-items: center; padding: 0 8px; }
.pf-sb-brand img { height: 36px; width: auto; }
.pf-sb-label { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #827b6e; padding: 0 12px 6px; }
.pf-sb-group { display: flex; flex-direction: column; gap: 4px; }
.pf-sb-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #4f4b44; font-weight: 500; line-height: 1.3; transition: background .15s, color .15s; }
.pf-sb-link:hover { background: #fbf8f4; color: #25231f; }
.pf-sb-link.is-active { background: #ffeab0; color: var(--lh-ink); font-weight: 600; }
.pf-sb-link svg { flex-shrink: 0; }
.pf-sb-form { margin: 0; }
button.pf-sb-link { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.pf-sb-link.is-danger { color: #a23b22; }
.pf-sb-link.is-danger:hover { background: #fdeeea; color: #a23b22; }
.pf-sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #f4ede2; padding-top: 16px; }
.pf-sb-me { display: flex; align-items: center; gap: 10px; padding: 0 8px; min-width: 0; line-height: 1.3; }
.pf-sb-avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #f4ede2; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #4f4b44; }
.pf-sb-acc summary { list-style: none; cursor: pointer; border-radius: 12px; padding: 8px; }
.pf-sb-acc summary::-webkit-details-marker { display: none; }
.pf-sb-acc summary:hover { background: var(--lh-tint); }
.pf-sb-acc summary:focus-visible { outline: 2px solid var(--lh-ink); outline-offset: 2px; }
.pf-sb-chevron { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #827b6e; border-bottom: 2px solid #827b6e; transform: rotate(45deg); transition: transform .15s; flex: none; }
.pf-sb-acc[open] .pf-sb-chevron { transform: rotate(-135deg); }
.pf-sb-acc-links { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 4px; }
.pf-sb-me-text { display: flex; flex-direction: column; min-width: 0; }
.pf-sb-me-title { font-size: 14px; font-weight: 500; }
.pf-sb-me-mail { font-size: 13px; color: #827b6e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Header membre (mobile) : logo + menu du compte (<details>, sans JavaScript) */
.pf-mobile-header { position: relative; z-index: 4; /* au-dessus du fond d'onglet fixe (qui couvre tout l'écran) */ display: none; align-items: center; justify-content: space-between; height: 62px; padding: 0 12px 0 16px; background: #fff; border-bottom: 1px solid #f4ede2; }
.pf-mobile-header img { height: 36px; width: auto; display: block; }
.pf-acc { position: relative; }
.pf-acc summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #25231f; cursor: pointer; }
.pf-acc summary::-webkit-details-marker { display: none; }
.pf-acc summary:hover, .pf-acc[open] summary { background: var(--lh-tint); color: var(--lh-accent); }
.pf-acc-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; min-width: 230px; padding: 8px; background: #fff; border: 1px solid #f4ede2; border-radius: 14px; box-shadow: 0 12px 32px rgba(20,20,60,.14); display: flex; flex-direction: column; gap: 2px; }
.pf-acc-menu a { text-decoration: none; }
.pf-acc-menu { min-width: 250px; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto; gap: 0; }
.pf-acc-group { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.pf-acc-group + .pf-acc-group { border-top: 1px solid var(--lh-line); }
.pf-acc-label { padding: 2px 12px 4px; }
@media (min-width: 641px) {
  .pf-sidebar { position: fixed; z-index: 3; left: 0; top: 0; bottom: 0; width: var(--pf-sidebar-w); flex-direction: column; padding: 24px 16px; border-right: 1px solid #f4ede2; overflow-y: auto; }
  .logged-in .pf-layout { margin-left: var(--pf-sidebar-w); }
  .logged-in { --pf-retrait: var(--pf-sidebar-w); }   /* voir --pf-sbw plus bas */
}
@media (max-width: 640px) {
  .pf-sidebar { display: none; }
  .pf-mobile-header { display: flex; }
  /* l'en-tête mobile (62 px) est hors de .pf-layout : sans cette soustraction la page dépassait toujours de sa hauteur et défilait même avec peu de contenu */
  .logged-in .pf-layout { min-height: calc(100vh - 62px); min-height: calc(100dvh - 62px); }
}

/* Footer */
/* Mêmes couleurs que le pied de la vitrine (public/css/pied.css) : fond #0b0b0b, copyright #b0a8a2 ; liens (Legal notice, Privacy policy) en blanc */
.footer-homepage { background: #0b0b0b; color: #b0a8a2; font-size: 14px; }
.footer-homepage a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-homepage a:hover { text-decoration: underline; }
.footer-homepage ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 24px; }
.footer-homepage li { position: relative; display: flex; align-items: center; margin: 10px 0; }
.footer-homepage li + li::before { content: "|"; position: absolute; left: -13px; top: 50%; transform: translate(-50%, -50%); }
.footer-logo img { height: 32px; width: auto; padding-right: 10px; vertical-align: middle; }
.pf-footer-compact { font-size: 13px; }
@media (max-width: 800px) { .pf-footer-compact { font-size: 11px; } }
@media (max-width: 640px) {
  :root { --lh-header-h: 76px; }
  .pf-hide-mobile { display: none; }
  .lh-wrap { padding-left: 16px; padding-right: 16px; }
  .lh-logo img { height: 40px; }
  .lh-header-actions .lh-btn { padding: 0 14px; }
  .la { padding: 16px 12px 32px; }
  .la-card { padding: 24px 20px; border-radius: 18px; }
  .la-title { font-size: 21px; }
  .la-rules { grid-template-columns: 1fr; }
  .la-steps > li { padding-left: 40px; }
}


/* ===== Pages publiques (reprise de l'ancien thème : accueil lh-*, deduplication ld-*, pages légales lp-*) ===== */
.lh-header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lh-logo { display: flex; align-items: center; min-width: 0; flex-shrink: 1; }
.lh-logo img { height: 48px; width: auto; display: block; }   /* logo : 48 px ordinateur, 40 px mobile */
.lh-logo img { max-width: 100%; object-fit: contain; object-position: left center; }
.lh-nav { display: flex; align-items: center; gap: 28px; }
.lh-nav a { color: #605b52; font-size: 15px; font-weight: 500; text-decoration: none; transition: color .15s; }
.lh-nav a:hover { color: var(--lh-accent); }
/* ---------- Homepage ---------- */
.lh { color: var(--lh-ink); line-height: 1.5; text-align: left; }
.lh *, .lh *::before, .lh *::after { box-sizing: border-box; }
.lh .display-none { display: none !important; }
.lh h1, .lh h2, .lh h3, .lh p, .lh ul, .lh ol { margin: 0; text-align: left; }
.lh section { scroll-margin-top: calc(var(--lh-header-h) + 16px); }
#ScrollPosition { scroll-margin-top: calc(var(--lh-header-h) + 16px); }
.lh-accent { color: var(--lh-accent); }

/* Hero */
.lh-hero { border-bottom: 1px solid var(--lh-line); }
.lh-hero:not(.lh-hero-photo) { background: var(--lh-soft); }   /* sans photo : fond gris clair */
/* Photo du hero (balise <picture> en tête de section, chargée en priorité pour le LCP) */
.lh-hero-photo { position: relative; isolation: isolate; background: #25231f; }
.lh-hero-bg, .lh-hero-bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.lh-hero-bg img { max-width: none; object-fit: cover; object-position: center; }
@media screen and (min-width: 601px) {
  /* Effet « fond fixe » d'origine : l'image reste immobile pendant que la page défile, découpée à la section */
  .lh-hero-photo { clip-path: inset(0); }
  .lh-hero-bg img { position: fixed; height: 100vh; filter: brightness(.8); }   /* = voile noir à 20 % d'origine */
}
/* Bloc de texte du hero sur fond blanc, pour rester lisible sur la photo (même style que la carte des formulaires) */
.lh-panel { background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.7); border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(11,11,11,.35); padding: 36px 40px; }
.pf-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Accueil de l'application : la carte de connexion / d'inscription seule, au centre du fond */
.pf-acces .lh-hero-in { justify-content: center; }
/* Accueil de l'application : fond uni (pas de photo), la carte au centre de la hauteur de l'écran, pas de défilement inutile
   (le pied de page est en bas ; l'espace de l'en-tête fixe est retiré de la hauteur minimale, comme pour les pages à fond) */
.pf-layout:has(.pf-acces) { min-height: calc(100vh - var(--lh-header-h)); min-height: calc(100dvh - var(--lh-header-h)); }
.pf-acces, .pf-acces .lh-hero { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.pf-acces .lh-hero-in { padding-top: 40px; padding-bottom: 40px; }
.lh-hero-in { padding-top: 96px; padding-bottom: 104px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 32px; }
.lh-hero-text { flex: 1 1 460px; display: flex; flex-direction: column; justify-content: center; gap: 24px; min-width: 0; }
.lh-h1 { font-size: 68px; line-height: 1.02; letter-spacing: -.035em; font-weight: 800; color: var(--lh-ink); }
.lh-lead { font-size: 20px; color: #605b52; max-width: 520px; }
.lh-checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: #3c3934; }
.lh-checks li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
.lh-checks svg { flex-shrink: 0; color: var(--lh-accent); }

/* Carte des formulaires */
.lh-card { flex: 0 1 420px; min-width: 0; width: 100%; background: #fff; border-radius: 20px; border: 1px solid #f3ece0; box-shadow: 0 24px 48px -24px rgba(11,11,11,.35); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.lh-tabs { display: flex; gap: 4px; background: #f9f6f0; border: 1px solid #f3ece0; border-radius: 16px; padding: 5px; }
.lh-tab { flex: 1; min-height: 48px; margin: 0; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; font-family: inherit; font-size: 16px; font-weight: 600; color: #605b52; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.lh-tab:hover { background: #f5efe4; color: var(--lh-ink); }
.lh-tab.is-active, .lh-tab.is-active:hover { background: var(--lh-yellow); color: var(--lh-ink); font-weight: 700; box-shadow: 0 6px 14px -6px rgba(235,173,0,.6); cursor: default; }
.lh-form { display: flex; flex-direction: column; gap: 16px; margin: 0; overflow: visible; max-height: none; }   /* annule la règle globale « form { overflow: auto; max-height: 90% } » */
.lh-form-head { display: flex; flex-direction: column; gap: 4px; }
.lh-form-title { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; color: var(--lh-ink); }
.lh-form-sub { font-size: 14px; color: var(--lh-muted); }
.lh-field { display: flex; flex-direction: column; gap: 6px; }
.lh-label { font-size: 14px; font-weight: 500; color: #3c3934; }
.lh-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lh-small-link { font-size: 13px; font-weight: 600; color: var(--lh-accent); text-decoration: none; }
.lh-small-link:hover { text-decoration: underline; }
.lh-input { width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid #e5e2dc; border-radius: 12px; background: #fff; font-family: inherit; font-size: 16px; color: var(--lh-ink); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.lh-input::placeholder { color: #b4aa99; }
.lh-input:focus { border-color: var(--lh-accent); box-shadow: 0 0 0 3px rgba(235,173,0,.4); outline: none; }
.lh-input.field_error { border-color: #a23b22; box-shadow: 0 0 0 3px rgba(180,35,24,.10); }
.lh-input-code { letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.lh-msg:empty { display: none; }
.lh-msg p { margin: 0; font-size: 14px; line-height: 1.45; }
.lh-switch { font-size: 14px; color: #837c70; text-align: center !important; }
.lh-linkbtn { margin: 0; padding: 6px 2px; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--lh-accent); cursor: pointer; }
.lh-linkbtn:hover { text-decoration: underline; }

/* Sections */
.lh-section { background: #fff; padding: 104px 0 40px; }
.lh-section-tight { padding: 64px 0 104px; }
.lh-section-full { padding-bottom: 104px; }
/* Section sur fond gris clair entre deux sections blanches (homepage : Tools), cartes blanches */
.lh-section-alt { background: var(--lh-soft); border-top: 1px solid var(--lh-line); border-bottom: 1px solid var(--lh-line); padding: 104px 0; }
.lh-section-alt .lh-tool { background: #fff; border: 1px solid var(--lh-line); }
.lh-section-alt .lh-tool-more { border: 1.5px dashed #dbd6ce; }
.lh-section-alt .lh-icon-white { background: var(--lh-tint); }
.lh-section-alt .lh-hashes { background: var(--lh-soft); }
.lh-section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 48px; }
.lh-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lh-accent); }
.lh-h2 { font-size: 42px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; color: var(--lh-ink); }
.lh-h3 { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--lh-ink); }
.lh-h3-lg { font-size: 24px; letter-spacing: -.01em; }
.lh-grid { display: grid; gap: 20px; }
.lh-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lh-feature { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 18px; border: 1px solid var(--lh-line); background: #fff; }
.lh-feature p, .lh-tool p, .lh-steps p { font-size: 15px; color: var(--lh-muted); }
.lh-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--lh-tint); color: var(--lh-accent); display: flex; align-items: center; justify-content: center; }
.lh-icon-solid { background: var(--lh-yellow); color: var(--lh-ink); }
.lh-icon-white { background: #fff; color: var(--lh-accent); }

/* Outils */
.lh-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.lh-tools-side { display: flex; flex-direction: column; gap: 20px; }
.lh-tool { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 22px; background: var(--lh-soft); }
.lh-tool-main { padding: 32px; gap: 16px; }
.lh-tool-main p { max-width: 600px; }
.lh-tool-main .lh-btn { align-self: flex-start; }
.lh-tool-more { background: #fff; border: 1.5px dashed #dbd6ce; }
.lh-hashes { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #f3ece0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; color: #4f4b44; }
.lh-hashes div { display: flex; justify-content: space-between; gap: 12px; }
.lh-ok { color: #0b0b0b; font-weight: 600; }
.lh-ko { color: #a23b22; font-weight: 600; }

/* « Have a specific need? » (design H3) */
.lh-how { background: #fff; padding: 96px 0 112px; }
.lh-how-in { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.lh .lh-how-title { max-width: 760px; text-align: center; }
.lh-steps { list-style: none; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lh-steps li { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 0; }
.lh .lh-steps h3, .lh .lh-steps p { text-align: center; }
.lh-steps p { max-width: 320px; }
.lh-step-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--lh-tint); color: var(--lh-accent); display: flex; align-items: center; justify-content: center; }

/* ---------- Écrans moyens et mobiles ---------- */
@media screen and (max-width: 1024px) {
  .lh-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lh-tools { grid-template-columns: minmax(0, 1fr); }
  .lh-h1 { font-size: 56px; }

}
@media screen and (max-width: 800px) {
  .lh-nav { display: none; }
  .lh-hero-in { padding-top: 40px; padding-bottom: 48px; gap: 20px; }
  .lh-hero-text { flex-basis: 100%; }
  .lh-card { flex-basis: 100%; }
  .lh-steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lh-section { padding-top: 72px; }
  .lh-section-tight { padding: 48px 0 72px; }
  .lh-section-full { padding-bottom: 72px; }
  .lh-section-alt { padding: 72px 0; }
  .lh-how { padding: 72px 0 80px; }
  .lh-h2 { font-size: 32px; }

}
@media screen and (max-width: 640px) {
  :root { --lh-header-h: 76px; }
  .lh-wrap { padding-left: 16px; padding-right: 16px; }   /* côtés seulement : ne pas écraser les marges haut/bas des sections */
  .lh-logo img { height: 40px; }
  .lh-header-actions .lh-btn { padding: 0 14px; }
  .lh-h1 { font-size: 44px; }
  .lh-lead { font-size: 18px; }
  .lh-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .lh-card { padding: 20px; }
  .lh-panel { padding: 24px 20px; }
  .lh-feature, .lh-tool, .lh-tool-main { padding: 24px; }

}

/* =====================================================================
   Page Deduplication (/deduplication/)
   Classes ld-* ; s'appuie sur le bloc « Homepage et header public » (lh-*).
   Pas de photo de fond : fond gris clair du hero, cartes blanches.
   ===================================================================== */
.ld .lh-hero { background: var(--lh-soft); }
.ld-h1 { font-size: 60px; }
.ld-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ld-center { margin-left: auto; margin-right: auto; align-items: center; }
.lh .ld-center h2, .lh .ld-center p { text-align: center; }

/* Illustration du hero : bases → chiffrement → doublons repérés → message unique */
.ld-visual { flex: 0 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border: 1px solid #f3ece0; border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(235,173,0,.22); }
.ld-visual-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ld-source { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--lh-soft); font-size: 14px; font-weight: 600; color: #3c3934; }
.ld-source .lh-icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.ld-visual-step { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--lh-tint); color: var(--lh-accent); font-size: 13px; font-weight: 600; }
.ld-hashes { gap: 10px; }
.ld-visual-result { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--lh-ink); color: #fff; font-size: 15px; font-weight: 600; }
.ld-visual-result svg { flex-shrink: 0; }

/* Hero de /deduplication : le texte est une lettre blanche (papier, pli, ombres) qui sort d'une enveloppe ouverte (gris très clair) ; tout en CSS, aucune image */
.ld-env { position: relative; flex: 1 1 520px; min-width: 0; padding: 128px 34px 0; display: flex; flex-direction: column; justify-content: center; }
.ld-env::before { content: ""; position: absolute; left: 0; right: 0; top: 188px; bottom: 0; background: linear-gradient(90deg, #f9f6f0 0, #fcfcfe 4%, #fefefd 50%, #fcfcfe 96%, #f9f6f0 100%); border: 1px solid rgba(11,11,11,.09); border-top: 0; border-radius: 0 0 3px 3px; box-shadow: 0 22px 34px -22px rgba(11,11,11,.5); }   /* extérieur blanc de l'enveloppe : bas droit, coins carrés, relief sur les côtés ; la lettre est posée devant */
.ld-env-flap { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 190px; filter: drop-shadow(0 -1px 2px rgba(11,11,11,.2)); }   /* rabat ouvert : bord blanc, intérieur de l'enveloppe plus foncé (gris) */
.ld-env-charniere { position: absolute; left: 0; right: 0; top: 188px; bottom: 0; filter: drop-shadow(0 1px 0 rgba(255,255,255,.95)); }   /* charnière du rabat : le gris de l'intérieur se prolonge en biais ; au-delà, le blanc est celui de l'enveloppe (aucun liseré à part) */
.ld-env-charniere::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #e9e6e1 0, #e3dfd8 45%, #ddd9d2 100%); clip-path: polygon(0.0px 0.0px, 14.0px 0.6px, 24.0px 2.5px, 34.0px 6.5px, 46.0px 13.5px, 50% 52%, calc(100% - 46.0px) 13.5px, calc(100% - 34.0px) 6.5px, calc(100% - 24.0px) 2.5px, calc(100% - 14.0px) 0.6px, calc(100% - 0.0px) 0.0px); }   /* intérieur gris */
.ld-env-flap::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 100%, calc(50% - 14.6px) 8.2px, calc(50% - 12.7px) 7.2px, calc(50% - 10.7px) 6.3px, calc(50% - 8.6px) 5.6px, calc(50% - 6.5px) 5.1px, calc(50% - 4.4px) 4.7px, calc(50% - 2.2px) 4.4px, calc(50% + 0.0px) 4.4px, calc(50% + 2.2px) 4.4px, calc(50% + 4.4px) 4.7px, calc(50% + 6.5px) 5.1px, calc(50% + 8.6px) 5.6px, calc(50% + 10.7px) 6.3px, calc(50% + 12.7px) 7.2px, calc(50% + 14.6px) 8.2px, 100% 100%); background: #fefefd; }
.ld-env-flap::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 100%, calc(50% - 14.6px) 8.2px, calc(50% - 12.7px) 7.2px, calc(50% - 10.7px) 6.3px, calc(50% - 8.6px) 5.6px, calc(50% - 6.5px) 5.1px, calc(50% - 4.4px) 4.7px, calc(50% - 2.2px) 4.4px, calc(50% + 0.0px) 4.4px, calc(50% + 2.2px) 4.4px, calc(50% + 4.4px) 4.7px, calc(50% + 6.5px) 5.1px, calc(50% + 8.6px) 5.6px, calc(50% + 10.7px) 6.3px, calc(50% + 12.7px) 7.2px, calc(50% + 14.6px) 8.2px, 100% 100%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23c9ccd5'/%3E%3Cstop offset='.55' stop-color='%23d7d9e0'/%3E%3Cstop offset='1' stop-color='%23e1e3e9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 101 L0 100 L47 8 Q50 1.5 53 8 L100 100 L100 101' fill='url(%23g)' stroke='%23fdfdfe' stroke-width='16' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }   /* intérieur gris : liseré blanc de largeur constante (trait de 2 × 8 px, rogné par le contour) */
/* Enveloppe de la lettre (sans filtre ni transformation : un filter sur un parent rendait le texte flou) ; la lettre porte son inclinaison et ses ombres, rectangle droit sans pli */
.ld-letter-wrap { position: relative; z-index: 2; flex: none; margin-bottom: 38px; }
.ld-letter { position: relative; padding: 36px 40px 40px; border-radius: 3px; transform: rotate(-.3deg);
  background: linear-gradient(90deg, #fff 0, #fefefe 60%, #fcfaf7 100%);
  border: 1px solid rgba(11,11,11,.07); box-shadow: 0 1px 1px rgba(11,11,11,.08), 0 8px 14px -8px rgba(11,11,11,.25), 0 26px 40px -24px rgba(11,11,11,.4); }
.ld-env .ld-h1 { font-size: 52px; }
.ld-hero .ld-visual { align-self: center; }
.ld-hero.lh-hero-photo { background: var(--lh-soft); }   /* mobile : pas de photo (source vide dans la page), fond gris clair d'avant */
@media screen and (min-width: 601px) { .ld-hero.lh-hero-photo { background: #25231f; } .ld-hero .lh-hero-bg img { position: absolute; height: 100%; } }   /* bureau : même photo que l'accueil, mais attachée à la section (le hero est plus haut que l'écran d'un portable : l'effet « fixe » laisserait une bande unie en bas) */
@media (max-width: 700px) {
  .ld-env { flex-basis: 100%; padding: 84px 14px 0; }
  .ld-env::before { top: 128px; }
  .ld-env-flap { height: 130px; }
    .ld-env-flap::before, .ld-env-flap::after { clip-path: polygon(0 100%, calc(50% - 12.4px) 9.8px, calc(50% - 10.8px) 8.6px, calc(50% - 9.2px) 7.7px, calc(50% - 7.4px) 6.9px, calc(50% - 5.6px) 6.3px, calc(50% - 3.8px) 5.8px, calc(50% - 1.9px) 5.6px, calc(50% + 0.0px) 5.5px, calc(50% + 1.9px) 5.6px, calc(50% + 3.8px) 5.8px, calc(50% + 5.6px) 6.3px, calc(50% + 7.4px) 6.9px, calc(50% + 9.2px) 7.7px, calc(50% + 10.8px) 8.6px, calc(50% + 12.4px) 9.8px, 100% 100%); }
    .ld-env-flap::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23c9ccd5'/%3E%3Cstop offset='.55' stop-color='%23d7d9e0'/%3E%3Cstop offset='1' stop-color='%23e1e3e9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 101 L0 100 L47 8 Q50 1.5 53 8 L100 100 L100 101' fill='url(%23g)' stroke='%23fdfdfe' stroke-width='12' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
  .ld-env-charniere { top: 128px; }
    .ld-env-charniere::after { clip-path: polygon(0.0px 0.0px, 8.4px 0.4px, 14.4px 1.5px, 20.4px 3.9px, 27.6px 8.1px, 50% 52%, calc(100% - 27.6px) 8.1px, calc(100% - 20.4px) 3.9px, calc(100% - 14.4px) 1.5px, calc(100% - 8.4px) 0.4px, calc(100% - 0.0px) 0.0px); }
  .ld-letter-wrap { margin-bottom: 28px; }
  .ld-letter { padding: 24px 20px 34px; transform: none; }
  .ld-env .ld-h1 { font-size: 36px; }
}

/* Problème → solution, et avant → après */
.ld-section .lh-lead { max-width: 640px; }
.ld-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 20px; }
.ld-card { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 22px; background: #fff; border: 1px solid var(--lh-line); }
.ld-card-solution { border: 1.5px solid var(--lh-accent); box-shadow: 0 24px 48px -28px rgba(235,173,0,.35); }
.ld-card-head { display: flex; align-items: center; gap: 12px; }
.ld-card-head .lh-h3 { font-size: 22px; }
.ld-badge { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.ld-badge-problem { background: #fdeeea; color: #a23b22; }
.ld-badge-solution { background: var(--lh-yellow); color: var(--lh-ink); }
.lh .ld-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ld-list li { position: relative; margin: 0; padding: 0 0 0 30px; font-size: 15px; color: var(--lh-muted); line-height: 1.5; }
.ld-list li b { color: var(--lh-ink); }
.ld-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 12px 12px; }
.ld-list-problem li::before { background-color: #fdeeea; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M17 7 7 17M7 7l10 10'/%3E%3C/svg%3E"); }
.ld-list-solution li::before { background-color: var(--lh-tint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5600' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.ld-compare-arrow { display: flex; align-items: center; justify-content: center; }
.ld-compare-arrow span { width: 52px; height: 52px; border-radius: 50%; background: var(--lh-yellow); color: var(--lh-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -10px rgba(235,173,0,.6); }

/* Résultats */
.ld-results { background: var(--lh-soft); border-top: 1px solid var(--lh-line); padding-bottom: 104px; }
.ld-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.ld-stat { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--lh-line); }
.ld-stat-num { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--lh-ink); }
.ld-stat-label { font-size: 15px; color: var(--lh-muted); }
.ld-stat-removed .ld-stat-num { color: #a23b22; }
.ld-stat-main { background: var(--lh-ink); border-color: var(--lh-ink); }
.ld-stat-main .ld-stat-num { color: #fff; }
.ld-stat-main .ld-stat-label { color: #d7cfc9; }
.ld-bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; margin-bottom: 48px; background: #fff; border: 1px solid var(--lh-line); font-size: 14px; font-weight: 700; }
.ld-bar > div { display: flex; align-items: center; padding: 0 16px; white-space: nowrap; }
.ld-bar-unique { flex: 0 0 83%; background: var(--lh-yellow); color: var(--lh-ink); }
.ld-bar-dup { flex: 1 1 auto; justify-content: center; color: #a23b22; background: repeating-linear-gradient(135deg, #fdeeea 0 8px, #fdeeea 8px 16px); }

/* Appel à l'action */
.ld-cta-section { background: #fff; padding: 96px 0; }
.ld-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: 28px; background: var(--lh-ink); color: #fff; }
.ld-cta-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.lh .ld-cta-title { color: #fff; }
.lh .ld-cta p { color: #d7cfc9; font-size: 17px; }
.ld-btn-white, .ld-btn-white:visited { background: #fff; color: var(--lh-accent); }
.ld-btn-white:hover { background: #fff5d6; color: var(--lh-accent); }

/* Fenêtre du formulaire d'audit */
.ld-modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(11,11,11,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ld-modal { position: fixed; z-index: 1001; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: 460px; max-height: calc(100% - 32px); overflow-y: auto; box-sizing: border-box; padding: 32px; background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(11,11,11,.45); }
.ld-modal.display-none, .ld-modal-overlay.display-none { display: none !important; }
.ld-modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--lh-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ld-modal-close:hover { background: var(--lh-soft); color: var(--lh-ink); }
.ld-select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5b78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px; }
.ld-cancel { color: var(--lh-muted); }

@media screen and (max-width: 1024px) {
  .ld-h1 { font-size: 48px; }

}
@media screen and (max-width: 800px) {
  .ld-compare { grid-template-columns: minmax(0, 1fr); }
  .ld-compare-arrow span { transform: rotate(90deg); }
  .ld-stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ld-stat-num { font-size: 42px; }
  .ld-cta { padding: 32px 24px; }
  .ld-cta-section { padding: 64px 0; }
  .ld-results { padding-bottom: 72px; }
  .ld-visual { flex-basis: 100%; }

}
@media screen and (max-width: 640px) {
  .ld-h1 { font-size: 38px; }
  .ld-card { padding: 24px; }
  .ld-visual { padding: 20px; }
  .ld-visual-sources { grid-template-columns: minmax(0, 1fr); }
  .ld-modal { padding: 24px 20px; }
  .ld-actions .lh-btn { width: 100%; }
  .ld-bar-unique { padding: 0 10px; font-size: 13px; }

}

/* =====================================================================
   Pages légales (/legal-notice/, /privacy-policy/)
   Classes lp-* ; s'appuie sur le bloc « Homepage et header public » (lh-*).
   Mise en page « document » : en-tête, sommaire collant à gauche, texte confortable à lire.
   ===================================================================== */
.lp { background: #fff; }   /* zone de lecture blanche (le fond du site est gris) */
.lp-hero { background: var(--lh-soft); border-bottom: 1px solid var(--lh-line); }
.lp-hero-in { padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.lp-title { font-size: 52px; }
.lh .lp-updated { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #f3ece0; font-size: 14px; font-weight: 600; color: #4f4b44; }

.lp-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 96px; }

/* Sommaire */
.lp-toc { position: sticky; top: calc(var(--lh-header-h) + 24px); max-height: calc(100vh - var(--lh-header-h) - 48px); overflow-y: auto; }
.logged-in .lp-toc { top: 24px; max-height: calc(100vh - 48px); }
.lp-toc-box { border: 0; }
.lp-toc-title { list-style: none; cursor: default; pointer-events: none; user-select: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lh-muted); padding: 0 12px 10px; }
.lp-toc-title::-webkit-details-marker { display: none; }
.lh .lp-toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-toc-list li { margin: 0; padding: 0; }
.lp-toc-list a { display: flex; gap: 10px; padding: 7px 12px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--lh-muted); text-decoration: none; transition: color .15s, background .15s; }
.lp-toc-list a:hover { color: var(--lh-ink); background: var(--lh-soft); }
.lp-toc-list a.is-active { color: var(--lh-ink); background: #ffeab0; font-weight: 600; }
.lp-toc-num { flex-shrink: 0; min-width: 18px; font-variant-numeric: tabular-nums; color: inherit; opacity: .7; }

/* Texte */
.lp-doc { max-width: 760px; min-width: 0; font-size: 16px; line-height: 1.7; color: #45413b; }
.lp-section { scroll-margin-top: calc(var(--lh-header-h) + 24px); padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--lh-line); }
.logged-in .lp-section { scroll-margin-top: 24px; }
.lp-section:last-child { border-bottom: 0; margin-bottom: 0; }
.lp-h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 18px !important; font-size: 26px; line-height: 1.25; letter-spacing: -.015em; font-weight: 800; color: var(--lh-ink); }
.lp-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--lh-tint); color: var(--lh-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; letter-spacing: 0; }
.lp-h3 { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 10px !important; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--lh-ink); }
.lp-subnum { color: var(--lh-accent); font-variant-numeric: tabular-nums; }
.lh .lp-doc p { margin: 0 0 14px; }
.lp-doc strong, .lp-doc b { color: var(--lh-ink); }
.lp-doc a { color: var(--lh-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lp-doc a:hover { color: var(--lh-accent-hover); }
.lh .lp-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.lp-list li { position: relative; margin: 0; padding-left: 22px; }
.lp-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--lh-accent); opacity: .55; }
.lp-card { margin: 4px 0 16px; padding: 20px 24px; border-radius: 16px; background: var(--lh-soft); border: 1px solid var(--lh-line); line-height: 1.8; }

/* Écrans moyens et mobiles : sommaire repliable au-dessus du texte */
@media screen and (max-width: 900px) {
  .lp-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 72px; }
  .lp-toc, .logged-in .lp-toc { position: static; max-height: none; overflow: visible; }
  .lp-toc-box { border: 1px solid #f3ece0; border-radius: 14px; background: #fff; }
  .lp-toc-title { pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; font-size: 13px; color: var(--lh-ink); }
  .lp-toc-title::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
  .lp-toc-box[open] .lp-toc-title::after { transform: rotate(-135deg); margin-top: 4px; }
  .lh .lp-toc-list { border-left: 0; padding: 0 8px 10px; }
  .lp-toc-list a { margin-left: 0; border-left: 0; border-radius: 8px; }
  .lp-title { font-size: 40px; }
  .lp-hero-in { padding-top: 40px; padding-bottom: 36px; }

}
@media screen and (max-width: 640px) {
  .lp-title { font-size: 34px; }
  .lp-h2 { font-size: 21px; gap: 10px; }
  .lp-num { width: 32px; height: 32px; font-size: 14px; }
  .lp-doc { font-size: 15px; }
  .lp-card { padding: 16px 18px; }

}


/* Cookie policy : tableau des cookies */
.lc .lc-note { font-size: 14px; color: var(--lh-muted); }
.lc .lc-contact { line-height: 1.8; }
.lc .lc-table-wrap { margin: 16px 20px 20px; border: 1px solid var(--lh-line); border-radius: 12px; overflow: hidden; }
.lc .lc-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 14px; line-height: 1.5; table-layout: fixed; }
.lc .lc-table caption { caption-side: top; padding: 10px 14px; background: var(--lh-soft); border-bottom: 1px solid var(--lh-line); text-align: left; font-size: 13px; font-weight: 700; color: var(--lh-ink); }
.lc .lc-table th { padding: 10px 14px 6px; border: 0; background: #fff; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lh-muted); }
.lc .lc-table th:nth-child(1) { width: 32%; } .lc .lc-table th:nth-child(2) { width: 22%; }
.lc .lc-table td { padding: 10px 14px; border: 0; border-top: 1px solid var(--lh-line); vertical-align: top; overflow-wrap: anywhere; color: #4f4b44; }
.lc .lc-table td.lc-name { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--lh-ink); }
@media screen and (max-width: 640px) {
  .lc .lc-table-wrap { margin: 14px 16px 16px; }
  .lc .lc-table, .lc .lc-table tbody, .lc .lc-table tr, .lc .lc-table td { display: block; width: auto; }
  .lc .lc-table thead { display: none; }
  .lc .lc-table caption { display: block; }
  .lc .lc-table tr { padding: 10px 14px; border-top: 1px solid var(--lh-line); }
  .lc .lc-table tbody tr:first-child { border-top: 0; }
  .lc .lc-table td { padding: 2px 0; border: 0; }
  .lc .lc-table td.lc-name { font-weight: 600; padding-bottom: 4px; }
  .lc .lc-table td:not(.lc-name)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--lh-muted); }
}

/* Hero avec photo sur la page deduplication : le panneau de texte garde le style de la carte */
.ld .lh-hero-photo .lh-hero-text { flex: 1 1 460px; }
.lh-nav a { white-space: nowrap; }

/* Lien d'accès rapide au contenu (clavier) */
.lh-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--lh-accent); font-weight: 600; }
.lh-skip:focus { left: 8px; }
.ld .lh-hero-photo .ld-visual { align-self: center; }

/* Lien de section en cours : pastille de fond jaune pâle, jamais de trait (décision du 1er décembre 2026) */
.lh-nav a { position: relative; padding: 6px 12px; border-radius: 999px; }
.lh-nav a.is-active { background: #ffeab0; color: var(--lh-ink); font-weight: 700; }

/* Grand bouton (« Let's build your solution », pages deduplication) */
.lh-btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; font-weight: 700; }
.lh-btn-lg.ld-btn-white, .ld-cta .lh-btn-lg { flex-shrink: 0; }

/* Pied de page : logo 40 px + 4 px dessous + liseré = 45 px de haut, comme sur WordPress */
.footer-homepage .footer-logo { margin: 0 !important; padding: 0 0 4px !important; }
.footer-homepage .footer-logo img { height: 32px; width: auto; padding: 0 10px 0 0; vertical-align: middle; display: block; }

/* Pages mot de passe, e-mail et suppression : photo en fond derrière la carte */
.pf-layout-main.pf-fond, .logged-in .pf-layout-main { position: relative; isolation: isolate; }
/* Pages de compte publiques avec fond photo : la zone sous l'en-tête fixe tient dans l'écran (pas de défilement inutile pour voir le pied de page). */
.pf-layout:has(.pf-fond) { min-height: calc(100vh - var(--lh-header-h)); min-height: calc(100dvh - var(--lh-header-h)); }
.pf-fond > .la { padding-top: 20px; padding-bottom: 20px; } /* le fond photo couvre toute la zone de contenu des pages connectées */
.la-bg, .la-bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.la-bg img { max-width: none; object-fit: cover; object-position: center; }
/* Fonds d'onglet (SVG intégrés, voir App\Support\FondOnglet) : teinte de base par onglet, formes ancrées à droite */
.pf-fo { position: fixed; height: 100vh; height: 100dvh; pointer-events: none; } /* le fond garde la taille de l'écran et reste en haut : le contenu défile par-dessus */
.pf-layout > .footer-homepage { position: relative; z-index: 1; } /* le pied de page passe devant le fond fixe */
.pf-fo svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/* Databases et API access : les cartes font 1100 px de large et cachent le fond ; le motif est placé en haut à droite, à taille fixe, au-dessus de la carte (qui en cache seulement le bas) */
.pf-fo-api svg, .pf-fo-imports svg { left: auto; top: 12px; right: 20px; height: auto; overflow: visible; }
.pf-fo-imports svg { top: 50%; transform: translateY(-50%); } /* Databases : au milieu de la hauteur, à droite */ /* API access : en haut à droite (top: 12px), sans bande qui décale le contenu */
.pf-fo-api svg { width: clamp(300px, 26vw, 460px); } .pf-fo-imports svg { width: clamp(230px, 19vw, 340px); } /* grandit avec l'écran */
@media (max-width: 1499px) { .pf-fo svg { display: none; } } /* sous 1500 px de large : plus de formes, seulement la teinte de l'onglet */
.pf-fo-dashboard { background: #f6f7fc; } .pf-fo-imports { background: #fffaec; } .pf-fo-campagnes { background: #fffaec; }
.pf-fo-resultats { background: #fffaec; } .pf-fo-organisation { background: #fff5d6; } .pf-fo-compte { background: #fbf8f4; } .pf-fo-api { background: #fffaec; }
.pf-fo-campagnes g { mix-blend-mode: multiply; } /* deux cercles qui se recouvrent : la zone commune est plus foncée */

/* Avis sur les cookies et bouton « Cookies » : public/css/cmp.css (fichier commun avec la vitrine) */

/* QR code de la 2FA (SVG fabriqué par le serveur) */
.la-qr { display: inline-flex; margin: 4px 0 10px; padding: 10px; background: #fff; border: 1px solid var(--lh-line); border-radius: 14px; }
.la-qr svg { display: block; width: 180px; height: 180px; max-width: 100%; }
@media (max-width: 640px) { .la-qr svg { width: 160px; height: 160px; } }


/* =====================================================================
   Fenêtre « Your session has expired » (reconnexion après inactivité)
   Fenêtre de reconnexion ; s'appuie sur les classes lh-*.
   ===================================================================== */
.lh-relogin { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; background: rgba(11,11,11,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.lh-relogin-card { position: relative; width: 100%; max-width: 420px; max-height: calc(100% - 16px); overflow-y: auto; box-sizing: border-box; padding: 32px; background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(11,11,11,.45); animation: lh-relogin-in .22s ease-out; }
@keyframes lh-relogin-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.lh-form[hidden], .lh-relogin-card .lh-form[hidden] { display: none; }   /* « hidden » l'emporte sur le display: flex des formulaires (accueil : étapes mot de passe / code) */
.lh-relogin-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.lh-relogin-icon { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; background: var(--lh-tint); color: var(--lh-accent); display: flex; align-items: center; justify-content: center; }
.lh .lh-relogin-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--lh-line); text-align: center; font-size: 14px; }
.lh-relogin-foot a { color: var(--lh-muted); font-weight: 600; text-decoration: none; }
.lh-relogin-foot a:hover { color: var(--lh-accent); }
@media screen and (max-width: 640px) {
  .lh-relogin { align-items: flex-end; padding: 0; }
  .lh-relogin-card { max-width: none; max-height: 92%; border-radius: 20px 20px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  @keyframes lh-relogin-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

}
@media (prefers-reduced-motion: reduce) { .lh-relogin-card { animation: none; } 
}

.lh-relogin[hidden] { display: none; }

/* Organisations : liste de caractéristiques, étiquettes */
.lh-field[hidden] { display: none; }
/* Groupes de choix (fieldset) : cadre gris à coins arrondis au lieu du cadre carré par défaut du navigateur */
fieldset.lh-field { margin: 0; min-width: 0; padding: 14px; border: 1px solid #e5e2dc; border-radius: 16px; }
fieldset.lh-field > legend { padding: 0 6px; }
.la-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.la-dl dt { color: var(--lh-muted); }
.la-dl dd { margin: 0; font-weight: 600; color: var(--lh-ink); word-break: break-word; }
.la-h2 { font-size: 16px; font-weight: 700; margin: 8px 0 0; }
.la-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.la-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--lh-line); border-radius: 12px; overflow-wrap: anywhere; }
.la-list li > span:first-child { flex: 1 1 14rem; min-width: 0; }
.la-actions { display: flex; gap: 8px; flex: none; }
.la-actions a { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--lh-line); text-decoration: none; color: var(--lh-ink); }
.la-actions a:hover { border-color: var(--lh-accent); color: var(--lh-accent); }
.la-sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font-size: 14px; color: var(--lh-muted); margin: 0 0 4px; }
.la-telecharger { min-height: 40px; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.la-tag { flex: none; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--lh-tint); color: var(--lh-accent); }

/* Actions en ligne dans une liste (membres, invitations) : boutons discrets sous forme de liens */
.la-inline { display: inline; margin-left: .5rem; }
.la-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

.la-table{width:100%;border-collapse:collapse;font-size:.9rem;margin:0 0 1rem}
.la-table th,.la-table td{padding:.4rem .5rem;border-bottom:1px solid rgba(128,128,128,.3);text-align:right}
.la-table th:first-child,.la-table td:first-child{text-align:left}
@media (max-width:640px){.la-table{display:block;overflow-x:auto}}

.la-ok { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 999px; background: #0b0b0b; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; vertical-align: middle; position: relative; top: -1px; }

.la-foot a.la-danger { color: #a23b22; }
.la-foot a.la-danger:hover { color: #a23b22; }
.la-terms { max-height: 60vh; overflow: auto; padding: 4px 14px; border: 1px solid var(--lh-line); border-radius: 12px; font-size: 14px; line-height: 1.55; margin: 12px 0 16px; }
.la-terms h2 { font-size: 16px; margin: 18px 0 6px; }
.la-terms h3 { font-size: 14px; margin: 14px 0 4px; }

.la-card-terms, .la-card-liste { max-width: 1100px; }
.la-card-terms .la-terms { font-size: 15px; padding: 8px 24px; }
/* Pages Terms : la page (fond) ne défile pas, seul le texte des Terms défile ; la carte épouse la hauteur de l'écran. */
body:has(.la-card-terms) { overflow: hidden; }
.pf-layout:has(.la-card-terms) { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.pf-layout:has(.la-card-terms) .pf-layout-main { flex: 1 1 auto; min-height: 0; justify-content: stretch; }
.pf-layout-main > .la:has(.la-card-terms) { flex: 1 1 auto; min-height: 0; padding: 16px; align-items: stretch; }
.la-card-terms { display: flex; flex-direction: column; max-height: 100%; overflow-y: auto; }
.la-card-terms > * { flex-shrink: 0; }
.la-card-terms .la-terms { flex: 1 1 auto; min-height: 160px; max-height: none; }
@media (max-width: 640px) { .la-card-terms .la-terms { padding: 4px 12px; } .pf-layout-main > .la:has(.la-card-terms) { padding: 8px; } }

/* Page Databases : liste façon « fichiers », quotas, bouton + (ajout d'une base selon le rôle) */
.bd-card { max-width: 1100px; }
.la-card-wide.bd-envoi { max-width: 760px; }
/* Aide sous un champ : encadré discret collé au champ, une idée par ligne, l'essentiel en gras */
.bd-aide { margin: 2px 0 0; padding: 10px 14px; border: 1px solid var(--lh-line); border-radius: 12px; background: var(--lh-soft); font-size: 14px; line-height: 1.45; color: var(--lh-muted); }
.bd-aide ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bd-aide li { position: relative; padding-left: 16px; }
.bd-aide li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: #b4aa99; }
.bd-aide strong { color: var(--lh-ink); }
.bd-aide li.bd-aide-cle { color: var(--lh-ink); } /* mise en avant par la couleur seulement : un seul gras sur le site */
strong, b { font-weight: 700; } /* « bolder » dans un parent en semi-gras donnait un 3e poids */
/* Page « Who can use this database? » : une carte par campaign manager */
.bd-clients { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bd-client { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border: 1px solid var(--lh-line); border-radius: 16px; background: #fff; }
.bd-client-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 15px; }
.bd-client-soi { font-weight: 400; color: var(--lh-muted); }
.bd-client-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.bd-client form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.bd-client form .lh-check { flex: 1 1 22rem; }
.bd-client form .lh-btn { flex: none; }
/* Aide collée au champ du dessus : le champ garde ses coins arrondis, le gris se glisse derrière lui */
.lh-field > .lh-input, .lh-field > input[type=file] { position: relative; z-index: 1; }
.bd-aide.bd-aide-lie { margin-top: -14px; padding-top: 20px; border-top: 0; border-radius: 0 0 12px 12px; }
.bd-aide-role { display: inline-block; margin-right: 4px; padding: 0 8px; border-radius: 999px; background: var(--lh-tint); color: var(--lh-accent); font-size: 12px; font-weight: 700; }
.bd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bd-titre { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.bd-titre .la-icon { flex: none; margin-bottom: 0; }
.bd-section { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.bd-section .la-h2 { margin: 0; }
.bd-ajout { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 12px; background: var(--lh-yellow); color: var(--lh-ink); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; box-shadow: 0 1px 2px rgba(11,11,11,.18), 0 8px 16px -10px rgba(235,173,0,.7); transition: background .15s, box-shadow .15s, transform .15s; }
.bd-ajout::-webkit-details-marker { display: none; }
.bd-ajout:hover, .bd-add[open] > .bd-ajout { background: var(--lh-accent-hover); color: #fff; transform: translateY(-1px); }
.bd-ajout:focus-visible, .bd-plus-actions summary:focus-visible { outline: 2px solid var(--lh-ink); outline-offset: 2px; }
.bd-menu-point { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 999px; background: var(--lh-accent); }
.bd-menu-point.bd-editeur { background: var(--lh-ink); }
.bd-add, .bd-plus-actions { position: relative; }
.bd-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; display: flex; flex-direction: column; padding: 6px; background: #fff; border: 1px solid #f3ece0; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(11,11,11,.35); }
.bd-menu a, .bd-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; text-align: left; color: var(--lh-ink); text-decoration: none; cursor: pointer; }
.bd-menu a:hover, .bd-menu button:hover { background: var(--lh-soft); }
.bd-menu .bd-danger { color: #a23b22; }
.bd-menu form { margin: 0; }
.bd-quotas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.bd-quota { padding: 16px 18px; border: 1px solid var(--lh-line); border-radius: 16px; background: var(--lh-soft); display: flex; flex-direction: column; gap: 8px; }
.bd-quota h2 { margin: 0; font-size: 15px; font-weight: 700; }
.bd-quota .lh-form-sub { margin: 0; font-size: 13px; }
.bd-meter { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--lh-muted); }
.bd-meter span { flex: 0 0 6.5rem; }
.bd-meter b { flex: none; min-width: 5rem; text-align: right; font-weight: 700; color: var(--lh-ink); font-variant-numeric: tabular-nums; }
.bd-meter progress, .bd-prog progress { flex: 1; height: 8px; border: 0; border-radius: 999px; background: #f3ece0; overflow: hidden; -webkit-appearance: none; appearance: none; }
.bd-meter progress::-webkit-progress-bar, .bd-prog progress::-webkit-progress-bar { background: #f3ece0; border-radius: 999px; }
.bd-meter progress::-webkit-progress-value, .bd-prog progress::-webkit-progress-value { background: var(--lh-accent); border-radius: 999px; }
.bd-meter progress::-moz-progress-bar, .bd-prog progress::-moz-progress-bar { background: var(--lh-accent); border-radius: 999px; }
.bd-liste { display: flex; flex-direction: column; border: 1px solid var(--lh-line); border-radius: 16px; background: #fff; }
.bd-ligne { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 2fr) minmax(0, .9fr) minmax(0, .9fr) 44px; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--lh-line); font-size: 14px; }
.bd-ligne:first-child, .bd-entete + .bd-ligne { border-top: 0; }
.bd-ligne:not(.bd-entete):hover { background: var(--lh-soft); }
.bd-ligne:last-child { border-radius: 0 0 16px 16px; }
.bd-entete { border-top: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lh-muted); background: var(--lh-soft); border-radius: 16px 16px 0 0; }
.bd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-cellule { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.bd-nom-cell { flex-wrap: nowrap; gap: 12px; }
.bd-fichier { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--lh-tint); color: var(--lh-accent); }
.bd-fichier.bd-editeur { background: #ece7df; color: var(--lh-ink); }
.bd-nom-bloc { display: flex; flex-direction: column; min-width: 0; }
.bd-nom-bloc small { color: var(--lh-muted); font-size: 12px; }
.bd-tag-gris { background: #f7f2e9; color: var(--lh-muted); }
.bd-tag-alerte { background: #fff1e6; color: #a34a00; }
.bd-tag-rouge { background: #fdeeea; color: #a23b22; }
.bd-actions { justify-content: flex-end; }
.bd-plus-actions > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--lh-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.bd-plus-actions > summary::-webkit-details-marker { display: none; }
.bd-plus-actions > summary:hover, .bd-plus-actions[open] > summary { background: #f6f0e6; color: var(--lh-ink); }
.bd-vide { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 36px 16px; border: 1.5px dashed #e5e2dc; border-radius: 16px; background: var(--lh-soft); }
.bd-vide p { margin: 0; }
.bd-vide-icone { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 20px; background: var(--lh-tint); color: var(--lh-accent); }
.bd-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--lh-line); border-radius: 16px; font-size: 14px; }
.bd-rows li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr); align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--lh-line); overflow-wrap: anywhere; }
.bd-rows li:first-child { border-top: 0; }
.bd-nom { font-weight: 600; }
.bd-prog { display: flex; align-items: center; gap: 10px; color: var(--lh-muted); font-size: 13px; }
@media (max-width: 760px) {
  .bd-entete { display: none; }
  .bd-ligne { grid-template-columns: 1fr 44px; grid-template-areas: "nom act" "st st" "id id" "sent sent"; gap: 8px 12px; }
  .bd-ligne .bd-nom-cell { grid-area: nom; }
  .bd-ligne .bd-actions { grid-area: act; }
  .bd-ligne > [data-label="Status"] { grid-area: st; }
  .bd-ligne > [data-label="Identifiers"] { grid-area: id; }
  .bd-ligne > [data-label="Sent"] { grid-area: sent; }
  .bd-ligne > [data-label="Identifiers"]::before, .bd-ligne > [data-label="Sent"]::before { content: attr(data-label) ": "; color: var(--lh-muted); }
  .bd-meter span { flex-basis: 5.5rem; }
  .bd-rows li { grid-template-columns: 1fr; gap: 4px; }
}

/* Page Organization : cartes d'information, liste des membres (mode liste comme Databases), zone de fermeture */
.mb-card { max-width: 1100px; }
.mb-fiche { border: 1px solid var(--lh-line); border-radius: 16px; background: #fff; overflow: hidden; }
.mb-fiche-ligne { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; padding: 16px 20px; min-width: 0; }
.mb-fiche-ligne + .mb-fiche-ligne { border-top: 1px solid var(--lh-line); }
.mb-fiche-val { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mb-fiche-val.mb-tags { flex-direction: row; }
.mb-fiche-val strong { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.mb-fiche small { color: var(--lh-muted); font-size: 13px; }
.mb-fiche-fin { display: flex; justify-content: flex-end; }
.mb-etiquette { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lh-muted); }
.mb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-doux { color: var(--lh-muted); font-size: 14px; }
.mb-edit { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--lh-line); background: #fff; color: var(--lh-ink); font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; }
.mb-edit:hover { border-color: var(--lh-accent); color: var(--lh-accent); }
.mb-nombre { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--lh-tint); color: var(--lh-accent); font-size: 12px; font-weight: 700; vertical-align: middle; }
.mb-liste .bd-ligne { grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 44px; }
.mb-liste.mb-avec-terms .bd-ligne { grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) 44px; }
.mb-liste.cx-partenaires .bd-ligne { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.6fr) minmax(0, 1.8fr) minmax(0, 1.1fr) 44px; }
.mb-liste.cx-clients .bd-ligne { grid-template-columns: minmax(0, 3fr) minmax(0, 1.6fr) minmax(0, 1.2fr) 44px; }
.mb-liste.cx-campagnes .bd-ligne { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.7fr) minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, 1.1fr) 44px; }
.mb-liste.cx-etats .bd-ligne { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); }
.mb-liste.cx-campagnes .la-link { text-decoration: none; color: inherit; }
.mb-liste.cx-campagnes .la-link:hover { color: var(--lh-accent); }
.mb-avatar { flex: none; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--lh-tint); color: var(--lh-accent); font-weight: 700; font-size: 15px; }
.mb-avatar-attente { background: #f7f2e9; color: var(--lh-muted); }
.mb-invitation { background: var(--lh-soft); }
.mb-invite-menu { width: 380px; max-width: calc(100vw - 48px); padding: 16px; }
.mb-invite-menu .lh-form { gap: 14px; }
.mb-danger { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 8px; padding: 18px 20px; border: 1px solid #efc4b8; border-radius: 16px; background: #fdeeea; }
.mb-danger p { margin: 2px 0 0; }
.mb-danger > div { flex: 1 1 22rem; min-width: 0; }
.mb-danger > .lh-btn { flex: none; margin-left: auto; }
.mb-danger .lh-btn { min-height: 48px; padding: 0 28px; font-size: 16px; }
@media (max-width: 760px) {
  .mb-fiche-ligne { grid-template-columns: minmax(0, 1fr); }
  .mb-fiche-fin { justify-content: flex-start; }
  .mb-liste .bd-ligne, .mb-liste.mb-avec-terms .bd-ligne, .mb-liste.cx-partenaires .bd-ligne, .mb-liste.cx-clients .bd-ligne { grid-template-columns: 1fr 44px; grid-template-areas: none; }
  .mb-liste.cx-etats .bd-ligne { grid-template-columns: 1fr; grid-template-areas: none; }
  .mb-liste.cx-campagnes .bd-ligne { grid-template-columns: 1fr 44px; grid-template-areas: none; }
  .mb-liste .bd-ligne > .bd-nom-cell { grid-column: 1; grid-row: 1; }
  .mb-liste .bd-ligne > .bd-actions { grid-column: 2; grid-row: 1; }
  .mb-liste .bd-ligne > [data-label] { grid-area: auto; grid-column: 1 / -1; }
  .mb-liste .bd-ligne > [data-label]::before { content: attr(data-label) ": "; color: var(--lh-muted); }
  .mb-danger .lh-btn { width: 100%; }
}
.bd-menu.mb-invite-menu .lh-btn-primary { display: inline-flex; width: 100%; padding: 0 20px; border-radius: 999px; background: var(--lh-yellow); color: var(--lh-ink); text-align: center; font-size: 15px; font-weight: 600; }
.bd-menu.mb-invite-menu .lh-btn-primary:hover { background: var(--lh-accent-hover); color: #fff; }
.bd-menu.mb-invite-menu .lh-btn-danger { display: inline-flex; width: 100%; padding: 0 20px; border-radius: 999px; background: #a23b22; color: #fff; text-align: center; font-size: 15px; font-weight: 600; }
.bd-menu.mb-invite-menu .lh-btn-danger:hover { background: #7a2d19; color: #fff; }
.cx-menu-titre { display: block; margin-bottom: 4px; } /* titre du menu : gras seulement, même taille que le texte */
.mb-danger .mb-bouton-grise, .mb-danger .mb-bouton-grise:hover { background: #f2eadd; color: #a59985; border-color: transparent; box-shadow: none; cursor: not-allowed; }
.mb-ok { background: #fff5d6; color: #0b0b0b; }
.mb-verif { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mb-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--lh-soft); border: 1px solid var(--lh-line); color: var(--lh-muted); font-size: 14px; }
.mb-note svg { flex: none; }
/* Résultats et détail d'une campagne (même style que Organization et Connections) */
.mb-liste.cx-resultats .bd-ligne { grid-template-columns: minmax(0, 2.6fr) minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.1fr) 44px; }
.mb-liste.cx-editeurs .bd-ligne { grid-template-columns: 84px minmax(0, 2.4fr) minmax(0, 2fr) minmax(0, 1fr) 44px; }
.mb-liste.cx-editeurs.cx-lecture .bd-ligne { grid-template-columns: 84px minmax(0, 2.4fr) minmax(0, 2fr) minmax(0, 1fr); }
.mb-liste.cx-chiffres .bd-ligne { grid-template-columns: minmax(0, 2.6fr) repeat(4, minmax(0, 1fr)); }
.cx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cx-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--lh-line); border-radius: 16px; background: var(--lh-soft); }
.cx-stat strong { font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cx-stat-final { background: #fff5d6; border-color: transparent; }
.cx-stat-final strong { color: #0b0b0b; }
.mb-fiche-ligne > .lh-input { min-width: 0; }
form.mb-fiche-ligne { margin: 0; }
.cx-ordre { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; }
.cx-ordre-texte p { margin: 4px 0 0; }
.cx-groupe { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-valider { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; }
.cx-valider .lh-check { align-self: stretch; }
.cx-valider .lh-btn { min-height: 48px; padding: 0 28px; font-size: 16px; }
.cx-valider p { margin: 0; }
/* Programmation d'une campagne : date, heure par pas de 15 minutes, fuseau (détecté par le navigateur, modifiable) */
.cx-horaire { align-self: stretch; }
.cx-horaire[hidden], .cx-valider .bd-aide[hidden] { display: none; }
.cx-horaire-champs { display: flex; flex-wrap: wrap; gap: 12px; }
.cx-horaire-champ { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; min-width: 0; }
.cx-horaire-champ .lh-input { width: 100%; }
.cx-valider .bd-aide { align-self: stretch; }
.cx-suivi { flex-direction: column; align-items: stretch; }
.cx-suivi progress { width: 100%; height: 8px; border: 0; border-radius: 999px; }
@media (max-width: 760px) {
  .cx-stats { grid-template-columns: 1fr; }
  .mb-liste.cx-resultats .bd-ligne, .mb-liste.cx-editeurs .bd-ligne, .mb-liste.cx-editeurs.cx-lecture .bd-ligne, .mb-liste.cx-chiffres .bd-ligne { grid-template-columns: 1fr; grid-template-areas: none; }
  .mb-liste.cx-editeurs .bd-ligne { grid-template-columns: 1fr 44px; }
  .mb-liste.cx-resultats .bd-ligne { grid-template-columns: 1fr 44px; }
  .mb-liste.cx-resultats .bd-ligne > .bd-actions { grid-column: 2; grid-row: 1; }
  .mb-liste.cx-editeurs .bd-ligne > .bd-actions { grid-column: 2; grid-row: 1; }
}
.cx-final { color: #0b0b0b; }
.cx-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.bd-ajout.cx-secondaire { background: #fff; color: var(--lh-ink); border: 1px solid #e5e2dc; }
.bd-ajout.cx-secondaire:hover, .bd-add[open] > .bd-ajout.cx-secondaire { background: var(--lh-soft); color: var(--lh-accent); border-color: var(--lh-accent); }
.bd-ajout.cx-grise, .bd-ajout.cx-grise:hover { background: #f2eadd; color: #a59985; cursor: not-allowed; transform: none; }
.cx-menu-large { width: 460px; max-width: calc(100vw - 48px); }
.cx-rang-cell { display: flex; align-items: center; gap: 10px; }
.cx-poignee { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 32px; color: #b7ae9e; cursor: grab; touch-action: none; user-select: none; border-radius: 8px; }
.cx-poignee:hover { color: var(--lh-accent); background: var(--lh-tint); }
.bd-ligne.cx-deplace { background: var(--lh-tint); box-shadow: 0 8px 24px -8px rgba(11,11,11,.35); position: relative; z-index: 2; }
body.cx-glisse, body.cx-glisse * { cursor: grabbing !important; user-select: none; }
.cx-disparues { background: #fdeeea; border: 1px solid #efc4b8; color: var(--lh-ink); }
.cx-disparues-liste { margin: 6px 0; padding-left: 20px; }
.cx-reprise-disparues[hidden] { display: none; }
.cx-editeur { color: var(--lh-muted); font-size: 13px; }
.cx-remplacer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; }
.cx-remplacer .lh-input { flex: 1 1 220px; min-width: 0; }
.cx-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.cx-barre form { margin: 0 0 0 auto; }
.cx-filtre { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cx-filtre-lien { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--lh-border, #ddd8d0); border-radius: 999px; font-size: 14px; color: inherit; text-decoration: none; background: #fff; }
.cx-filtre-lien:hover { background: #faf7f2; }
.cx-filtre-lien.cx-actif { background: #fff5d6; border-color: #7a5600; color: #5a3d00; font-weight: 600; }
button.bd-ajout { border: 0; font: inherit; cursor: pointer; }
.lh-btn.cx-indispo, .lh-btn:disabled { background: #f2eadd; border-color: #f2eadd; color: #a59985; cursor: not-allowed; opacity: .85; box-shadow: none; }
.cx-raison { margin: 8px 0 0; font-size: 13px; color: var(--lh-muted); }
/* Barres de progression : piste grise, remplissage qui grandit en douceur (toutes les pages) */
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: 0; border-radius: 999px; background: #f3ece0; overflow: hidden; vertical-align: middle; }
progress::-webkit-progress-bar { background: #f3ece0; border-radius: 999px; }
progress::-webkit-progress-value { background: var(--lh-accent); border-radius: 999px; transition: width .6s ease; }
progress::-moz-progress-bar { background: var(--lh-accent); border-radius: 999px; }
progress[hidden] { display: none; }
.cx-suivi-ligne { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.cx-suivi-ligne progress { height: 8px; }
.cx-suivi-texte { color: var(--lh-muted); font-size: 12px; }
/* Choix du fichier à envoyer */
.la input[type=file] { width: 100%; box-sizing: border-box; padding: 18px; border: 2px dashed #dbd6ce; border-radius: 14px; background: #fff; color: var(--lh-muted); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.la input[type=file]:hover, .la input[type=file]:focus-visible { border-color: var(--lh-accent); background: #fff; outline: none; }
.la input[type=file]::file-selector-button { margin-right: 14px; padding: 9px 16px; border: 0; border-radius: 10px; background: var(--lh-yellow); color: var(--lh-ink); font: inherit; font-weight: 600; cursor: pointer; }
.bd-choisi { font-weight: 600; color: var(--lh-accent); }
.bd-rapport { margin-left: 8px; font-size: 12px; }
.bd-fixe { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--lh-soft); }
.cx-stat-retire { background: #fdeeea; border-color: transparent; }
.cx-stat-retire strong { color: #a23b22; }
.cx-stats-note { margin: 8px 0 0; }
/* Tableau de bord */
.db-wrap { width: 100%; max-width: 1100px; }
.db-hero { padding: 28px 30px; border-radius: 24px; background: var(--lh-ink); color: #fff; box-shadow: 0 18px 40px -18px rgba(11, 11, 11, .5); }
.db-hello { margin: 0; opacity: .85; font-size: 14px; letter-spacing: .02em; }
.db-titre { margin: 2px 0 12px; font-size: 1.9rem; line-height: 1.2; color: #fff; }
.db-chips { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.db-puce { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); font-size: 13px; font-weight: 600; }
.db-section { margin-top: 24px; padding: 26px; border-radius: 26px; background: #fff; border: 1px solid var(--lh-line); box-shadow: 0 1px 2px rgba(11, 11, 11, .05), 0 18px 40px -22px rgba(11, 11, 11, .22); --db-teinte: #7a5600; --db-fond: #fff5d6; }
.db-sechead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.db-sechead h2 { margin: 0; font-size: 1.3rem; }
.db-sechead p { margin: 2px 0 0; color: var(--lh-muted); font-size: 14px; }
.db-icone { width: 46px; height: 46px; border-radius: 14px; background: var(--db-fond); color: var(--db-teinte); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.db-general { margin-top: 24px; --db-teinte: #7a5600; --db-fond: #fff5d6; } .db-general .db-steps { margin-bottom: 0; } /* étapes communes à l'organisation */
.db-steps { margin-bottom: 16px; padding: 16px 20px; border-radius: 18px; background: var(--db-fond); }
.db-steps-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.db-steps-top span { color: var(--lh-muted); }
.db-steps progress { height: 8px; background: rgba(255, 255, 255, .8); }
.db-steps progress::-webkit-progress-bar { background: rgba(255, 255, 255, .8); }
.db-steps progress::-webkit-progress-value { background: var(--db-teinte); }
.db-steps progress::-moz-progress-bar { background: var(--db-teinte); }
.db-steps ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 18px; counter-reset: etape; }
.db-steps li { counter-increment: etape; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.db-steps li::before { content: counter(etape); flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--db-teinte); color: var(--db-teinte); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #fff; }
.db-steps li.ok { color: var(--lh-muted); }
.db-steps li.ok::before { content: "✓"; background: var(--db-teinte); color: #fff; }
.db-steps a { color: var(--lh-ink); font-weight: 600; text-decoration: none; }
.db-steps a:hover { color: var(--db-teinte); text-decoration: underline; }
.db-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.db-card { border-radius: 18px; padding: 20px; background: #fffdf7; min-width: 0; border: 1px solid var(--lh-line); }
.db-large { grid-column: span 2; }
@media (max-width: 700px) { .db-large { grid-column: auto; } .db-titre { font-size: 1.5rem; } .db-hero { padding: 22px; } .db-section { padding: 18px; } }
.db-h { font-size: .8rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--lh-muted); }
.db-sub { color: var(--lh-muted); margin: 0 0 12px; font-size: 14px; }
.db-sous { display: block; color: var(--lh-muted); font-size: 12px; margin-top: 2px; }
.db-vide { margin: 0; color: var(--lh-muted); font-size: 14px; }
.db-lien { font-weight: 600; color: var(--lh-ink); text-decoration: none; }
.db-lien:hover { color: var(--db-teinte); text-decoration: underline; }
.db-nom { font-weight: 600; word-break: break-word; }
.db-rows { list-style: none; margin: 0; padding: 0; }
.db-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--lh-line); align-items: flex-start; }
.db-rows li:first-child { border-top: 0; padding-top: 0; }
.db-r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.db-r small { color: var(--lh-muted); }
.db-rouge { color: #a23b22; }
.db-vert { color: #0b0b0b; }
.db-h a { color: inherit; text-decoration: none; } .db-h a:hover, .db-h a:focus-visible { color: var(--lh-ink); text-decoration: underline; } /* le nom de la rubrique est le lien */
.db-jauge { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 0 6px; }
.db-jauge:first-of-type { margin-top: 0; }
.db-grand { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--lh-ink); }
.db-grand small { font-size: .95rem; font-weight: 500; color: var(--lh-muted); }
.db-legende { display: block; color: var(--lh-muted); font-size: 13px; }
.db-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db-chart { width: 100%; height: auto; }
.db-alerte { background: #fff8ec; border-color: #f5d9a6; }
.db-sans-client { margin-top: 14px; padding: 10px 12px; background: #fff8ec; border: 1px solid #f5d9a6; border-radius: 8px; }
.db-sans-client h4 { margin: 0 0 4px; font-size: 14px; }
.db-sans-client p { margin: 0 0 6px; font-size: 13px; color: var(--lh-muted); }
.db-section progress { height: 9px; }
/* Sous-catégorie du menu (Your organization sous Deduplication) */
.pf-sb-souslabel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--lh-line); font-size: 11px; }
.pf-layout.pf-gris { background: #faf8f3; } /* pages connectées sans photo de fond : gris par défaut (tableau de bord, documentation API…) */
.pf-sb-acc { padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid #f4ede2; } /* barre entre « Your account » et « Help & support » */

/* Connexion en un seul écran : formulaire compact pour que l'accueil ne déborde pas (10 novembre 2026) */
.lh-form-compact { gap: 12px; }
.lh-form-compact .lh-input { height: 44px; }
.lh-form-compact .lh-btn-block { min-height: 46px; }
.lh-form-compact .lh-form-head { margin-bottom: 2px; }
.lh-label-hint { font-weight: 400; color: var(--lh-muted); }
.lh-center { align-self: center; }
/* Bascule « Code / Passkey » à droite du libellé du deuxième facteur */
.lh-form [hidden] { display: none !important; }
.lh-seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--lh-soft); border-radius: 9px; }
.lh-seg-b { margin: 0; height: 26px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--lh-muted); cursor: pointer; }
.lh-seg-b[aria-pressed="true"] { background: #fff; color: var(--lh-ink); box-shadow: 0 1px 2px rgba(11,11,11,.12); }
.lh-seg-b:focus-visible { outline: 2px solid var(--lh-ink); outline-offset: 1px; }
.lh-input.la-code::placeholder { letter-spacing: normal; font-variant-numeric: normal; }   /* l'espacement des lettres ne vaut que pour le code saisi, pas pour le texte d'aide */

/* Page « API access » : la clé affichée une seule fois */
.cx-cle-api { display: block; padding: 10px 12px; background: #fff; border: 1px solid #e5e2dc; border-radius: 10px; font-size: 14px; word-break: break-all; user-select: all; }
.bd-api-id code { font-size: 12px; user-select: all; }

/* Page « API access » : bandeau de documentation, tableau des clés, bouton CSV */
.ak-doc { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid #f0d98a; border-radius: 16px; background: var(--lh-tint, #fff5d6); color: var(--lh-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ak-doc:hover { border-color: var(--lh-accent); box-shadow: 0 10px 28px -14px rgba(235,173,0,.45); transform: translateY(-1px); }
.ak-doc-icone { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--lh-yellow); color: var(--lh-ink); }
.ak-doc-texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ak-doc-texte strong { font-size: 16px; }
.ak-doc-texte small { font-size: 13px; color: var(--lh-muted); line-height: 1.4; }
.ak-doc-fleche { flex: none; font-size: 14px; font-weight: 600; color: var(--lh-accent); }
.mb-liste.ak-liste .bd-ligne { grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.1fr) 44px; }
.ak-liste .bd-entete span { white-space: nowrap; }
.ak-liste .bd-cellule[data-label] { white-space: nowrap; }
.ak-cle { flex-wrap: wrap; gap: 8px 10px; }
.ak-prefixe { padding: 3px 8px; border-radius: 8px; background: var(--lh-soft); border: 1px solid var(--lh-line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--lh-ink); }
.ak-masque { font-size: 13px; letter-spacing: 1px; color: #bbb2a3; user-select: none; }
.ak-csv { width: max-content; text-decoration: none; }
@media (max-width: 760px) {
  .ak-doc { flex-wrap: wrap; }
  .ak-doc-fleche { margin-left: auto; }
  .mb-liste.ak-liste .bd-ligne { grid-template-columns: 1fr 44px; }
  .mb-liste.ak-liste .bd-ligne > .ak-cle { grid-column: 1; grid-row: 1; }
}
.ak-cle-ligne { display: flex; align-items: stretch; gap: 10px; }
.ak-cle-ligne .cx-cle-api { flex: 1 1 auto; min-width: 0; }
.ak-copier-cle { flex: none; padding: 0 20px; }
.ak-avertissement { padding: 12px 14px; border: 1px solid #f0c27b; border-radius: 12px; background: #fff7e8; color: #5c3b00; font-size: 14px; line-height: 1.5; }
.ak-avertissement ul { margin: 6px 0 0; padding-left: 18px; }
.ak-avertissement li { margin: 3px 0; }
@media (max-width: 520px) { .ak-cle-ligne { flex-direction: column; } .ak-copier-cle { min-height: 44px; } }

/* Fenêtre « Your new API key » : modale, seul moyen de la fermer est de confirmer */
.ak-popin { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 28px; border: 0; border-radius: 20px; background: #fff; color: var(--lh-ink); box-shadow: 0 40px 90px -20px rgba(11,11,11,.55); display: flex; flex-direction: column; gap: 14px; }
.ak-popin:not([open]) { display: none; }
.ak-popin::backdrop { background: rgba(11,11,11,.62); backdrop-filter: blur(3px); }
.ak-popin-titre { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.ak-confirme { margin: 2px 0 0; }
.ak-popin .lh-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ak-popin:not(:modal) { position: static; width: auto; margin-bottom: 16px; border: 1px solid #f0c27b; box-shadow: none; } /* sans JavaScript : simple encadré dans la page */
/* champ piège des formulaires publics : hors écran, jamais display:none (certains robots l'ignorent alors) */
.lh-note { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* En-tête identique à celui de la vitrine (logo 150 × 42, même hauteur, « Log in » en contour) : on ne doit pas sentir qu'on change de site */
:root { --lh-header-h: 89px; }   /* = en-tête de la vitrine : 22 + 44 + 22 px + 1 px de trait (89 px) */
.lh-logo img { width: 150px; height: auto; max-width: 100%; }   /* comme la vitrine : 150 px de large, hauteur proportionnelle (42,2 px) */
.lh-header-actions { gap: 32px; }
.lh-header-actions .lh-btn-ghost { padding: 0 22px; border: 2px solid var(--lh-ink); }
.lh-header-actions .lh-btn-ghost:hover { background: var(--lh-ink); color: #fff; }
.lh-header-actions .lh-btn-primary { padding: 0 22px; border: 2px solid var(--lh-yellow); }
.lh-header-actions .lh-btn-primary:hover { border-color: var(--lh-ink); }
@media screen and (max-width: 640px) {
  :root { --lh-header-h: 75.17px; }   /* = vitrine mobile : 16 + 42,17 (logo) + 16 + 1 px de trait */
  .lh-logo img { width: 150px; height: auto; }
  .lh-header-actions { gap: 8px; }
  .lh-header-actions .lh-btn { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
}
/* Accueil : carte plus large et rangée de garanties dessous (pas de texte commercial) */
.pf-acces .lh-hero-in { flex-direction: column; align-items: center; gap: 28px; }
.pf-acces .lh-card { flex: none; width: 100%; max-width: 480px; padding: 36px; gap: 20px; }
.pf-garanties { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 14px; font-weight: 500; color: var(--lh-muted); }
.pf-garanties li { display: flex; align-items: center; gap: 8px; }
.pf-garanties li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lh-yellow); }
@media screen and (max-width: 640px) { .pf-acces .lh-card { padding: 24px 20px; } .pf-garanties { flex-direction: column; align-items: flex-start; } }

/* Pied de page de la page de connexion : public/css/pied.css (fichier commun avec la vitrine) */
/* Accueil : formulaire plus large, texte d'aide du code moins gros */
.pf-acces .lh-card { max-width: 560px; }
.lh-input.la-code::placeholder { font-size: 14px; }

/* Accueil : la hauteur ne change jamais (demande du propriétaire, 1er décembre 2026) */
.pf-panneaux { display: grid; }   /* Sign up, Log in et mot de passe oublié dans la même cellule : la carte garde la hauteur du plus grand */
.pf-panneaux > * { grid-area: 1 / 1; min-width: 0; }
.pf-panneaux > .display-none { display: block !important; visibility: hidden; }   /* masqué mais gardant sa place (invisible aussi pour le clavier et les lecteurs d'écran) */
.pf-pile { display: grid; }   /* champ du code et aide « Passkey » superposés : basculer ne change pas la hauteur */
.pf-pile > * { grid-area: 1 / 1; min-width: 0; }
.pf-pile > .la-code { align-self: start; }
.lh-form .pf-pile > [hidden] { display: block !important; visibility: hidden; }   /* l'emporte sur « .lh-form [hidden] » (display: none !important) */
.pf-pile > p { align-self: center; margin: 0; }
@media screen and (max-width: 640px), screen and (max-height: 780px) { .pf-garanties { display: none; } }   /* petit écran : pas de rangée de garanties, donc pas de défilement inutile */
/* Trait sous l'en-tête seulement après défilement (entete.js), comme sur la vitrine */
.lh-header { border-bottom-color: transparent; transition: border-color .15s; }
.lh-header.is-scrolled { border-bottom-color: rgba(11,11,11,.12); }

/* Pas de décalage latéral entre pages avec et sans barre de défilement, calculé EN CSS en direct :
   largeur d'une barre (--pf-sbw-max, mesurée une fois par barre-defilement.js dans le <head>, avant le premier affichage ; 0 sur mobile)
   moins celle qui est déjà là (100vw − largeur disponible : 0 sans barre, une barre avec). Les bandes pleine largeur (en-tête, bandeau crème, pieds,
   fond des pages) réservent cette place À L'INTÉRIEUR d'elles (padding) : leur fond reste pleine largeur, seul le contenu se décale.
   Se met à jour tout seul quand une barre apparaît ou disparaît (contenu qui change, redimensionnement). --pf-retrait : largeur de la barre latérale
   quand le contenu est décalé par elle (pages connectées sur ordinateur). */
body { --pf-retrait: 0px; --pf-sbw: max(0px, calc(var(--pf-sbw-max, 0px) - (100vw - 100%) - var(--pf-retrait))); }
.lh-header, .lh-hero, .footer-homepage { padding-right: var(--pf-sbw); }
footer.foot.pf-pied-vitrine { --pad: max(var(--foot-gutter), calc((100% - var(--pf-sbw) - 1152px) / 2)); padding-right: calc(var(--pad) + var(--pf-sbw)); }   /* le pied calcule ses marges en % de la largeur de la page : la réserve est retirée du calcul pour garder 1152 px de contenu */
.pf-layout-main:not(:has(.lh-hero)) { padding-right: var(--pf-sbw); }
/* Accueil : le sélecteur Code / Passkey garde sa place (invisible) avant que cles-d-acces.js l'affiche : pas de saut de mise en page (CLS) au chargement */
.lh-form #connexion-mode[hidden] { display: inline-flex !important; visibility: hidden; }
