/* ── VARIABLES CSS ──────────────────────────────────────────────────────── */
:root {
  --navy: #072638;
  --navy-mid: #0d3a52;
  --navy-light: #1a4d6b;
  --amber: #F5A623;
  --amber-light: #ffc15e;
  --white: #ffffff;
  --light: #e8eef2;
  --muted: rgba(232,238,242,.55);

  /* Tokens sémantiques */
  --bg: var(--navy);
  --surface: rgba(13,58,82,.45);
  --surface2: rgba(7,38,56,.6);
  --border: rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.06);
  --text: var(--white);
  --text-muted: rgba(232,238,242,.55);
  --text-light: #e8eef2;
  --nav-bg: rgba(7,38,56,.95);
  --footer-bg: rgba(0,0,0,.3);

  --transition-theme: background .25s, color .25s, border-color .25s;
}

/* ── LIGHT MODE ─────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --navy: #f0f4f8;
  --navy-mid: #ffffff;
  --navy-light: #e2eaf2;
  --white: #1a2b3c;
  --light: #2d4a63;
  --muted: rgba(45,74,99,.55);
  --bg: #f0f4f8;
  --surface: rgba(255,255,255,.9);
  --surface2: rgba(240,244,248,.8);
  --border: rgba(7,38,56,.1);
  --border2: rgba(7,38,56,.07);
  --text: #1a2b3c;
  --text-muted: rgba(45,74,99,.6);
  --text-light: #2d4a63;
  --nav-bg: rgba(255,255,255,.95);
  --footer-bg: rgba(230,237,244,.6);
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* { transition: var(--transition-theme); }

/* ── BASE ────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: 'DM Sans', sans-serif; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHIE ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }

.slabel {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .7rem;
}

.stitle {
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: .6rem;
}

.stitle em { font-style: normal; color: var(--amber); }

.ssub {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 460px;
}

.page-hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
}

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 3rem; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--amber);
  color: var(--navy) !important;
  padding: .8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 20px rgba(245,166,35,.3);
  white-space: nowrap;
}
.btn-p:hover { background: var(--amber-light); transform: translateY(-2px); }

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--white);
  padding: .8rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-o:hover { border-color: var(--white); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 2px solid rgba(255,255,255,.15);
  color: var(--light);
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-cp {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  padding: .65rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  transition: background .2s;
  text-decoration: none;
}
.btn-cp:hover { background: var(--amber-light); }

.btn-co {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: .65rem 1.4rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.2);
  transition: border-color .2s;
  text-decoration: none;
}
.btn-co:hover { border-color: var(--white); }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.main-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border2);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  height: 64px;
  width: 100%;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.nav-logo-text {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  white-space: nowrap;
}

.nav-logo-text span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,.05); }

.nav-link.active {
  color: var(--white);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .7rem;
  right: .7rem;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.nav-cta {
  background: var(--amber);
  color: var(--navy) !important;
  padding: .48rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--amber-light); }

.nav-hub {
  font-size: .76rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: color .2s;
  white-space: nowrap;
}

.nav-hub:hover { color: var(--white); }

/* Compte / Connexion dans la nav centrale */
.nav-account-link {
  display: flex !important;
  align-items: center;
  gap: .35rem;
  margin-left: .5rem;
  padding-left: 1rem !important;
  border-left: 1px solid rgba(255,255,255,.1);
}

[data-theme="light"] .nav-account-link {
  border-left-color: rgba(7,38,56,.1);
}

/* Hamburger */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--light);
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all .25s;
}

.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Menu mobile */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(7,38,56,.98);
  backdrop-filter: blur(16px);
  z-index: 199;
  flex-direction: column;
  padding: 1.5rem;
  gap: .4rem;
  overflow-y: auto;
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  font-size: 1rem;
  padding: .8rem 1rem;
  border-radius: 12px;
  color: var(--light);
}

.nav-mobile .nav-cta {
  text-align: center;
  padding: .85rem;
  border-radius: 50px;
  font-size: .95rem;
  margin-top: .5rem;
  display: block;
}

.nav-mobile .nav-hub {
  justify-content: center;
  padding: .7rem;
  font-size: .85rem;
}


.nav-mobile-sep {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: .4rem 0;
}

/* Theme toggle */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .42rem .75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all .2s;
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--amber); color: var(--amber); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.main-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border2);
  padding: 3rem 2.5rem 1.5rem;
  margin-top: 5rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .flogo {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: .8rem;
  display: block;
  color: var(--text);
}

.flogo span { color: var(--amber); }

.footer-brand p {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 220px;
  margin-bottom: 1rem;
}

.footer-apps { display: flex; gap: .5rem; flex-wrap: wrap; }

.app-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .4rem .85rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  transition: all .2s;
}

.app-btn:hover { border-color: var(--amber); color: var(--amber); }

.footer-col h4 {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--amber);
  margin-bottom: .9rem;
}

.footer-col a {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: .5rem;
  transition: color .2s;
}

.footer-col a:hover { color: var(--white); }

.footer-social-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: .5rem;
  transition: color .2s;
}

.footer-social-link:hover { color: var(--amber); }
.footer-social-link svg { flex-shrink: 0; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}

.footer-bottom p { font-size: .72rem; color: var(--muted); }

.footer-bottom-links { display: flex; gap: 1.2rem; }

.footer-bottom-links a {
  font-size: .72rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-bottom-links a:hover { color: var(--white); }

/* ── STATS BAR ───────────────────────────────────────────────────────────── */
.stats-bar { background: var(--amber); padding: 3rem; }

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
}

.stat { text-align: center; }

.stat-n {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-l {
  font-size: .82rem;
  color: rgba(7,38,56,.65);
  font-weight: 500;
  margin-top: .25rem;
}

/* ── INTEGRATIONS BAR ────────────────────────────────────────────────────── */
.integrations {
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  padding: 1.5rem 3rem;
  background: rgba(255,255,255,.02);
}

.int-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.int-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.int-logos {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.int-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  transition: border-color .2s, color .2s;
}

.int-badge:hover { border-color: rgba(245,166,35,.4); color: var(--white); }

/* ── CTA SECTION ─────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  text-align: center;
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(245,166,35,.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  max-width: 560px;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.cta-section > p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  font-size: .95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-dual {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 1.75rem 2.2rem;
  text-align: center;
  max-width: 260px;
  transition: border-color .3s, transform .3s;
}

.cta-card:hover { border-color: rgba(245,166,35,.4); transform: translateY(-3px); }
.cta-ico { font-size: 1.8rem; margin-bottom: .6rem; }
.cta-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.cta-card p { font-size: .8rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.1rem; }

/* ── LIGHT MODE OVERRIDES ────────────────────────────────────────────────── */
[data-theme="light"] .main-nav { background: var(--nav-bg) !important; border-bottom-color: var(--border2) !important; }
[data-theme="light"] .nav-logo-text { color: var(--text) !important; }
[data-theme="light"] .nav-link { color: var(--text-muted) !important; }
[data-theme="light"] .nav-link:hover { color: var(--text) !important; background: rgba(7,38,56,.06) !important; }
[data-theme="light"] .nav-hub { color: var(--text-muted) !important; }
[data-theme="light"] .nav-hub:hover { color: var(--text) !important; }
[data-theme="light"] .nav-burger { color: var(--text) !important; }
[data-theme="light"] .nav-mobile { background: rgba(255,255,255,.98) !important; }
[data-theme="light"] .nav-mobile .nav-link { color: var(--text) !important; }
[data-theme="light"] .main-footer { background: #dde8f0 !important; border-top-color: rgba(7,38,56,.1) !important; }
[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-bottom p,
[data-theme="light"] .footer-bottom-links a,
[data-theme="light"] .footer-social-link { color: rgba(45,74,99,.65) !important; }
[data-theme="light"] .footer-col a:hover,
[data-theme="light"] .footer-bottom-links a:hover { color: var(--text) !important; }
[data-theme="light"] .flogo { color: var(--text) !important; }
[data-theme="light"] .app-btn { border-color: rgba(7,38,56,.15) !important; color: rgba(45,74,99,.7) !important; }
[data-theme="light"] .integrations { background: #f0f4f8 !important; border-color: rgba(7,38,56,.08) !important; }
[data-theme="light"] .int-badge { background: #ffffff !important; border-color: rgba(7,38,56,.1) !important; color: #2d4a63 !important; }
[data-theme="light"] .stats-bar { background: var(--amber) !important; }
[data-theme="light"] .stat-n { color: #1a2b3c !important; }
[data-theme="light"] .stat-l { color: rgba(26,43,60,.65) !important; }
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] h4 { color: var(--text) !important; }
[data-theme="light"] p { color: var(--text-muted) !important; }
[data-theme="light"] .cta-section { background: var(--bg) !important; }
[data-theme="light"] .cta-card { background: #ffffff !important; border-color: rgba(7,38,56,.1) !important; }
[data-theme="light"] section { background: var(--bg) !important; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hub { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  section { padding: 4rem 1.5rem; }
  .integrations, .stats-bar { padding: 2rem 1.5rem; }
}

@media (max-width: 640px) {
  section { padding: 3rem 1.2rem; }
}

@media (max-width: 500px) {
  .nav-logo-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── ENTRY CONTENT (articles/pages) ─────────────────────────────────────── */
.entry-content { line-height: 1.8; color: var(--muted); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text); margin: 1.5rem 0 .7rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { margin: .8rem 0 .8rem 1.5rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content a { color: var(--amber); text-decoration: underline; }
.entry-content blockquote { border-left: 3px solid var(--amber); padding-left: 1rem; margin: 1.5rem 0; font-style: italic; }

/* ── BREADCRUMB ──────────────────────────────────────────────────────────── */
.lky-breadcrumb a:hover { color: var(--white) !important; }

/* ── FORM STYLES ─────────────────────────────────────────────────────────── */
.lky-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.lky-form .form-row.single { grid-template-columns: 1fr; }
.lky-form .field { display: flex; flex-direction: column; gap: .4rem; }
.lky-form label { font-size: .78rem; font-weight: 700; color: var(--light); letter-spacing: .05em; text-transform: uppercase; }
.lky-form input, .lky-form select, .lky-form textarea {
  background: rgba(7,38,56,.7);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .9rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s;
  outline: none;
  width: 100%;
}
.lky-form input::placeholder, .lky-form textarea::placeholder { color: var(--muted); }
.lky-form input:focus, .lky-form select:focus, .lky-form textarea:focus {
  border-color: var(--amber);
  background: rgba(7,38,56,.9);
}
.lky-form textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%;
  background: var(--amber);
  color: var(--navy);
  border: none;
  padding: 1rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background .2s, transform .2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-submit:hover { background: var(--amber-light); transform: translateY(-2px); }

/* ── WP PAGINATION ───────────────────────────────────────────────────────── */
.navigation.pagination .nav-links,
.nav-pagination .nav-links { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.05); color: var(--muted);
  text-decoration: none; transition: all .2s; border: 1px solid rgba(255,255,255,.08);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--amber); color: var(--navy); border-color: var(--amber);
}
