/* ==========================================================================
   Signyo — Design system (inspiration ruul.io)
   Sans Tailwind. CSS écrit à la main. Police : Plus Jakarta Sans.
   ========================================================================== */

/* ----- Tokens ----- */
:root {
  --bg:        #FFFFFF;
  --bg-soft:   #F5F6F2;   /* sections alternées, gris chaud très clair */
  --bg-dark:   #0E1311;   /* CTA, footer accents */
  --ink:       #0E1311;   /* titres */
  --ink-2:     #3C423F;   /* texte courant */
  --ink-3:     #6E746F;   /* texte secondaire */
  --line:      #E7E8E2;   /* bordures */
  --line-2:    #D9DBD3;
  --accent:    #FF6A1A;   /* orange */
  --accent-d:  #E85A0C;   /* orange hover */
  --accent-ink:#FFFFFF;   /* texte sur orange */

  --radius:    16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shadow:    0 1px 2px rgba(14,19,17,.04), 0 12px 30px -12px rgba(14,19,17,.12);
  --shadow-sm: 0 1px 2px rgba(14,19,17,.05), 0 4px 12px -6px rgba(14,19,17,.10);
}

/* ----- Reset léger ----- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ----- Layout ----- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap--md { max-width: 940px; }
.wrap--sm { max-width: 760px; }

.section { padding: 88px 0; position: relative; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--bg-dark); color: #C9CFCB; }
.section--dark h2 { color: #fff; }

.section__head { max-width: 640px; margin: 0 0 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.eyebrow--accent { color: #C2410C; }
.section--dark .eyebrow { color: var(--accent); }

h2 { font-size: clamp(28px, 4vw, 42px); }
.section__head p { color: var(--ink-3); font-size: 18px; margin-top: 14px; }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn span { transition: transform .15s ease; }
.btn:hover span { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #232a27; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--ink); }
.btn--link {
  background: none; padding: 8px 4px; border-radius: 0; font-size: 15px; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.btn--link:hover { color: var(--ink); }

/* surbrillance lime sur un mot */
.hl {
  background: var(--accent); color: var(--accent-ink);
  padding: 0 .22em; border-radius: .28em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }
.brand__name { font-weight: 800; font-size: 23px; letter-spacing: -0.03em; color: var(--ink); }
.brand__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transition: transform .15s ease; }
.brand:hover .brand__dot { transform: scale(1.3); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-3); text-decoration: none; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.nav__cta { background: var(--ink); color: #fff !important; padding: 9px 18px; border-radius: var(--radius-pill); font-weight: 600; }
.nav__cta:hover { background: #232a27; }
.nav a.nav--hide { } /* géré en responsive */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; top: -180px; right: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,106,26,.28), transparent 62%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--ink-2); padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(36px, 5.6vw, 62px); letter-spacing: -0.02em; line-height: 1.32;
  margin-bottom: 24px;
}
/* La surbrillance lime ne mange pas les jambages de la ligne du dessus */
.hero h1 .hl { padding: 0.04em 0.22em; border-radius: 0.3em; }
.hero__lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-3); max-width: 600px; margin-bottom: 34px; }
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 40px 0 0; }
.hero__points li { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.hero__points li::before { content: "→"; color: #C2410C; font-weight: 800; font-size: 19px; line-height: 1; }

/* ==========================================================================
   Section générateur (le widget garde son propre CSS)
   ========================================================================== */
#generateur .wrap { position: relative; }
.jls-sig-field:has(#jls-sig-colorPresets) { display: none; }

/* ==========================================================================
   Accordéons (Installation + FAQ)
   ========================================================================== */
.acc-list { display: grid; gap: 12px; }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

details.acc {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.section--soft details.acc { background: var(--bg); }
details.acc:hover { border-color: var(--line-2); }
details.acc[open] { border-color: var(--ink); box-shadow: var(--shadow-sm); }
details.acc > summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 700; color: var(--ink); font-size: 16px;
}
details.acc > summary::-webkit-details-marker { display: none; }
.acc__chevron { color: var(--ink-3); font-size: 15px; transition: transform .2s ease; flex: none; }
details.acc[open] .acc__chevron { transform: rotate(180deg); }
.acc__body { padding: 0 22px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.acc__body ol { margin: 0; padding-left: 20px; }
.acc__body ol li { margin: 6px 0; color: var(--ink-2); }
.acc__body code {
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 5px; font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.acc__body a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 2px;
}
.acc__body a:hover { color: #C2410C; }

/* ==========================================================================
   CTA sombre
   ========================================================================== */
.cta__inner { max-width: 720px; }
.section--dark .cta__lead { color: #AEB4B0; font-size: 19px; margin: 18px 0 32px; }
.cta__title { font-size: clamp(30px, 4.5vw, 48px); }
.cta__title em { font-style: normal; color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 52px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.site-footer p { color: var(--ink-3); font-size: 15px; margin-top: 10px; max-width: 420px; }
.site-footer__meta { font-size: 14px; color: var(--ink-3); text-align: right; }
.site-footer__meta a { color: var(--ink-2); text-decoration: none; }
.site-footer__meta a:hover { color: var(--ink); }
.site-footer__meta .link-strong { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.site-footer__legal { margin-top: 10px; font-size: 13px; }
.site-footer__legal a { margin: 0 4px; }

/* ==========================================================================
   Normalisation input color (générateur)
   ========================================================================== */
input[type="color"] { -webkit-appearance: none; appearance: none; border: none; padding: 0; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line); border-radius: 6px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .install-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 52px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 14px; }
  .nav--hide { display: none; }
  .section__head { margin-bottom: 32px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { text-align: left; }
}

/* ==========================================================================
   Pages légales (confidentialité, mentions)
   ========================================================================== */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal__date { color: var(--ink-3); font-size: 14px; margin-bottom: 38px; }
.legal section { margin-bottom: 30px; }
.legal h2 { font-size: 20px; margin-bottom: 10px; }
.legal p { margin-bottom: 10px; color: var(--ink-2); }
.legal ul { margin: 8px 0; padding-left: 22px; }
.legal li { margin: 5px 0; color: var(--ink-2); }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.legal a:hover { color: #C2410C; }
.legal code { background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.legal__box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.legal__back { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.header-back { font-size: 15px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
.header-back:hover { color: var(--ink); }

/* ----- Impression ----- */
@media print {
  .site-header, .site-footer, .hero__cta, .nav, .btn { display: none !important; }
}
