/* Site vitrine Chart's HUB (templates/landing/*). Maquette : Claude Design.
   Les mises en page propres à une section restent en `style` inline dans les
   gabarits (fidèles à la maquette) ; ce fichier porte le socle commun :
   en-tête/pied de page, boutons, survols, filtres, bandeau d'appel à l'action. */

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: #f6f7f9; color: #0d1321;
  font-family: "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: #3466cf; text-decoration: none; }
a:hover { color: #1f4fb3; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid #3466cf; outline-offset: 2px; }

.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- Textes récurrents ---- */
.lp-eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #3466cf;
}
.lp-h2 {
  margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08;
  letter-spacing: -.03em; font-weight: 600; text-wrap: balance;
}

/* ---- En-tête ---- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 249, .72);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid rgba(13, 19, 33, .07);
}
.lp-header-in {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.lp-brand {
  display: flex; align-items: center; gap: 10px; color: #0d1321;
  font-weight: 700; font-size: 18px; letter-spacing: -.02em;
}
.lp-brand:hover { color: #0d1321; }
.lp-logo {
  position: relative; width: 24px; height: 24px; border-radius: 7px; display: block;
  background: linear-gradient(135deg, #4a7de0, #2f5fc4);
}
.lp-logo span { position: absolute; width: 7px; height: 7px; background: #fff; }
.lp-logo span:first-child { left: 5px; top: 5px; border-radius: 2px; }
.lp-logo span:last-child { right: 5px; bottom: 5px; border-radius: 50%; background: #7fe0d6; }
.lp-nav { display: flex; gap: 24px; font-size: 15px; flex-wrap: wrap; }
.lp-nav a { color: #4a5263; }
.lp-nav a:hover, .lp-nav a[aria-current] { color: #0d1321; }
.lp-nav a[aria-current] { font-weight: 600; }
.lp-header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.lp-login { color: #0d1321; font-size: 15px; padding: 9px 14px; border-radius: 9px; }
.lp-signup {
  color: #fff; background: #0d1321; font-size: 15px; font-weight: 600;
  padding: 9px 16px; border-radius: 9px;
}
@media (max-width: 640px) {
  .lp-header-in { gap: 12px 20px; }
  .lp-header-cta { margin-left: 0; width: 100%; }
}

/* ---- Pied de page ---- */
.lp-footer { border-top: 1px solid #e3e6ec; background: #fff; }
.lp-footer-in {
  max-width: 1180px; margin: 0 auto; padding: 48px 24px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
}
.lp-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.lp-footer-col a { color: #0d1321; }
.lp-footer-col a:hover { color: #3466cf; }
.lp-footer-brand { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.lp-footer-tag { font-size: 14px; color: #6b7384; line-height: 1.5; }
.lp-footer-title {
  font-family: "JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: #6b7384;
}
.lp-footer-copy { max-width: 1180px; margin: 0 auto; padding: 0 24px 32px; font-size: 13px; color: #6b7384; }

/* ---- Boutons ---- */
.lp-btn { display: inline-block; font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 11px; text-align: center; }
.lp-btn-light { color: #0d1321; background: #fff; }
.lp-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.lp-btn-dark { color: #fff; background: #0d1321; }
.lp-btn-outline { color: #0d1321; border: 1px solid #cfd6e2; }
.lp-btn-teal { color: #fff; background: #13958e; box-shadow: 0 8px 20px -8px rgba(19, 149, 142, .7); }
.lp-btn-sm { font-size: 15px; padding: 12px; border-radius: 11px; }

/* ---- Survols (!important : les couleurs de base sont souvent en `style` inline) ---- */
.hv-dark:hover { background: #243049 !important; color: #fff !important; }
.hv-soft:hover { background: rgba(13, 19, 33, .05) !important; color: #0d1321 !important; }
.hv-ink:hover { color: #0d1321 !important; }
.hv-mint:hover { color: #7fe0d6 !important; }
.hv-light:hover { background: #e8ebf2 !important; color: #0d1321 !important; }
.hv-ghost:hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.hv-outline:hover { background: #f6f7f9 !important; color: #0d1321 !important; }
.hv-teal:hover { background: #0f7d77 !important; color: #fff !important; }
.hv-blue:hover { color: #fff !important; box-shadow: 0 12px 30px -8px rgba(52, 102, 207, .7) !important; }
.hv-card:hover { border-color: #3466cf !important; box-shadow: 0 8px 20px -10px rgba(52, 102, 207, .5) !important; }
.hv-lift:hover { border-color: #c9d0db !important; box-shadow: 0 10px 30px -18px rgba(13, 19, 33, .3) !important; }

/* ---- Puces de filtre / choix (boutons ou radios) ---- */
.lp-chip {
  cursor: pointer; font-size: 14px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid #d6dbe4; background: #fff; color: #4a5263; transition: all .2s;
}
.lp-chip[aria-pressed="true"] { background: #0d1321; border-color: #0d1321; color: #fff; }
.lp-pill input { position: absolute; opacity: 0; pointer-events: none; }
.lp-pill span {
  display: inline-block; cursor: pointer; font-size: 14px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); color: #c9cfdb; transition: all .2s;
}
.lp-pill input:checked + span { background: #fff; border-color: #fff; color: #0d1321; }
.lp-pill input:focus-visible + span { outline: 2px solid #7fe0d6; outline-offset: 2px; }

/* ---- Bandeau d'appel à l'action sombre ---- */
.lp-band {
  border-radius: 28px; padding: clamp(36px, 5vw, 64px); background: #0d1321; color: #fff;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.lp-band h2 {
  margin: 0; max-width: 18em; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08;
  letter-spacing: -.03em; font-weight: 600; color: #fff; text-wrap: balance;
}

/* ---- Accordéons natifs (comparatif tarifs, FAQ) ---- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lp-acc-caret { display: inline-block; width: 14px; font-family: "JetBrains Mono", monospace; color: #6b7384; transition: transform .25s; }
details[open] > summary .lp-acc-caret { transform: rotate(90deg); }
.lp-faq-plus {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d6dbe4;
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: #4a5263; transition: transform .25s;
}
details[open] > summary .lp-faq-plus { transform: rotate(45deg); }

/* ---- Animations ---- */
@keyframes chubIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lp-in { animation: chubIn .45s cubic-bezier(.2, .7, .2, 1) both; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Page « Mon compte » (templates/account) ---- */
.hv-nav:hover { background: #f6f7f9 !important; color: #0d1321 !important; }
.hv-row:hover { background: #fafbfc !important; color: #0d1321 !important; }
.lp-btn-outline { color: #0d1321; border: 1px solid #cfd6e2; }

/* ---- Accueil On-Premise (templates/landing/onpremise_home) ---- */
.lp-input {
  font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfd6e2;
  background: #fff; color: #0d1321; outline: none;
}
.lp-input:focus { border-color: #3466cf; box-shadow: 0 0 0 3px rgba(52, 102, 207, .15); }
.hv-google:hover { background: #1765cc !important; color: #fff !important; }

/* ---- Sélecteur de langue FR | EN ---- */
.lp-lang { display: inline-flex; gap: 2px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.lp-lang a { padding: 4px 7px; border-radius: 6px; color: #6b7384; }
.lp-lang a:hover { background: rgba(13, 19, 33, .05); color: #0d1321; }
.lp-lang a[aria-current] { color: #0d1321; font-weight: 600; background: rgba(13, 19, 33, .06); }

/* ---- Bandeau de lancement (templates/landing/_banner) ---- */
.lp-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  padding: 9px 16px; background: #0d1321; color: #e8ebf2; font-size: 13.5px; text-align: center;
}
.lp-banner-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px; background: #13958e; color: #fff;
}
.lp-banner-cta { color: #7fe0d6; font-weight: 600; }
.lp-banner-cta:hover { color: #fff; }

/* Texte réservé aux lecteurs d'écran et aux robots (titre de section sans rendu visuel). */
.lp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Choix de période (radio stylés) sur fond clair — page /compte. */
.lp-radio { position: relative; }
.lp-radio input { position: absolute; opacity: 0; pointer-events: none; }
.lp-radio input:checked + span { background: #0d1321 !important; border-color: #0d1321 !important; color: #fff; }
.lp-radio input:focus-visible + span { outline: 2px solid #3466cf; outline-offset: 2px; }

/* ---- CMP : bandeau de consentement (consent.js) ---- */
.lp-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 720px; margin: 0 auto; padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  background: #fff; color: #0d1321; border: 1px solid #cfd6e2; border-radius: 14px;
  box-shadow: 0 18px 50px -18px rgba(13, 19, 33, .35);
}
.lp-consent-text { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.5; color: #4a5263; }
.lp-consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.lp-consent-btn {
  cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px;
  border-radius: 10px; border: 1px solid #cfd6e2; background: #fff; color: #0d1321;
}
.lp-consent-btn:hover { background: #f6f7f9; }
.lp-consent-btn-primary { border-color: #3466cf; background: #3466cf; color: #fff; }
.lp-consent-btn-primary:hover { background: #2f5fc4; }
.lp-footer-col button.lp-consent-link {
  cursor: pointer; border: 0; background: none; padding: 0; font: inherit; color: #0d1321; text-align: left;
}
.lp-footer-col button.lp-consent-link:hover { color: #3466cf; }
