/* Libpress — responsive & perf overlays (desktop reste fidèle au design) */
:root {
  --bleu: #000091;
  --rouge: #e1000f;
  --creme: #fbfaf6;
  --fond: #e9e7e0;
  --encre: #0f0f2d;
  --muted: #9a978c;
  --line: #e4e1d7;
}

html { scroll-behavior: smooth; }
img, svg { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Champs formulaires (remplacent les faux inputs du design) */
.lp-input, .lp-textarea, .lp-select {
  width: 100%;
  background: #fff;
  border: 1px solid #d9d6cb;
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 15px;
  color: var(--encre);
  outline: none;
}
.lp-input:focus, .lp-textarea:focus, .lp-select:focus {
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(0,0,145,.12);
}
.lp-textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.lp-btn {
  display: inline-block;
  text-align: center;
  background: var(--bleu);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  width: 100%;
}
.lp-btn:hover { filter: brightness(1.08); }
.lp-alert {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.lp-alert-error { background: #fff1f1; color: #9b1c1c; border: 1px solid #f3c1c1; }
.lp-alert-success { background: #f0faf2; color: #146c2e; border: 1px solid #b7e0c2; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--encre);
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }

  body > div[style*="max-width:1280px"] > div[style*="padding:22px 56px"],
  body > div[style*="max-width:1280px"] > div[style*="padding:20px 40px"],
  body > div[style*="max-width:1280px"] > div[style*="padding:22px 56px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
    flex-wrap: wrap;
    gap: 14px;
  }

  body > div[style*="max-width:1280px"] nav {
    display: none !important;
    width: 100%;
    flex-direction: column;
    gap: 12px !important;
    padding: 8px 0 4px;
    white-space: normal !important;
  }
  body > div[style*="max-width:1280px"].nav-open nav,
  body > div[style*="max-width:1280px"] > .site-header.nav-open nav {
    display: flex !important;
  }

  /* Grilles principales */
  [style*="grid-template-columns:1.15fr .85fr"],
  [style*="grid-template-columns:1.05fr .95fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1.1fr .9fr"],
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns:1.3fr 1fr"],
  [style*="grid-template-columns:2fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:1.4fr 1fr 1fr 1fr"],
  [style*="grid-template-columns:240px 1fr"],
  [style*="grid-template-columns:230px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  h1[style*="font-size:62px"],
  h1[style*="font-size:52px"],
  h1[style*="font-size:48px"],
  h1[style*="font-size:46px"],
  h1[style*="font-size:44px"] {
    font-size: 34px !important;
  }

  h2[style*="font-size:40px"],
  h2[style*="font-size:38px"],
  h2[style*="font-size:34px"] {
    font-size: 28px !important;
  }

  [style*="padding:76px 56px"],
  [style*="padding:60px 56px"],
  [style*="padding:56px 56px"],
  [style*="padding:48px 56px"],
  [style*="padding:48px 64px"],
  [style*="padding:40px 56px"],
  [style*="padding:36px 56px"],
  [style*="padding:28px 56px"],
  [style*="padding:26px 56px"],
  [style*="padding:24px 56px"],
  [style*="padding:22px 56px"],
  [style*="padding:20px 56px"],
  [style*="padding:12px 56px"],
  [style*="padding:0 56px"],
  [style*="padding:64px 56px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Auth split: empiler */
  body > div[style*="display:grid;grid-template-columns:1.05fr .95fr"] {
    display: block !important;
  }
  body > div[style*="display:grid;grid-template-columns:1.05fr .95fr"] > div:last-child {
    min-height: 320px;
  }

  aside[style*="position:sticky"] {
    position: static !important;
  }
}

@media (max-width: 640px) {
  [style*="display:flex;gap:32px;margin-top:44px"] {
    flex-direction: column;
    gap: 16px !important;
  }
  [style*="display:flex;gap:32px;margin-top:44px"] > div[style*="width:1px"] {
    display: none;
  }
}

/* Bandeau cookies essentiels */
.lp-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  pointer-events: none;
}
.lp-cookie-inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #0f0f2d;
  color: #eceaff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(20, 20, 40, .28);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.lp-cookie-inner p { margin: 0; }
.lp-cookie-inner a { color: #9fa0ff; font-weight: 600; text-decoration: underline; }
.lp-cookie-btn {
  flex-shrink: 0;
  background: #fff;
  color: #000091;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
@media (max-width: 640px) {
  .lp-cookie-inner { flex-direction: column; align-items: stretch; text-align: left; }
}
