/* ============================================================
   CLEVER SECURE — chrome de site marketing (multi-pages)
   Nav sticky + footer partagés, primitives de page (hero, grilles,
   cartes, FAQ, CTA). S'appuie sur clever-secure/tokens.css.
   Bilingue FR/EN (cf site.js), dark-first + parité light.
   ============================================================ */

:root { --site-maxw: 1200px; --nav-h: 72px; }

html { scroll-behavior: smooth; }
body.site {
  margin: 0;
  background:
    radial-gradient(120% 70% at 78% -8%, rgba(198,138,78,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-top), var(--bg) 38%);
  color: var(--text-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
}
.site ::selection { background: var(--brand-copper); color: #1a1206; }
.wrapS { max-width: var(--site-maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
img { max-width: 100%; }

/* ---------- Logo « C » ---------- */
.cs-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-1); }
.cs-mark { width: 30px; height: 30px; display: block; flex: none; }
.cs-mark svg { width: 100%; height: 100%; display: block; }
/* Logo = icône app (carré arrondi sombre). On verrouille le ratio pour ne
   jamais le déformer, quel que soit le conteneur. */
.cs-mark img, .xpnav .brand .mark img, .xpfoot .brand .mark img {
  width: 100%; height: 100%; display: block; aspect-ratio: 1; object-fit: cover; border-radius: 22%;
}

/* Bandeau d'état sticky (page Expérience) : sous la nav, mis à jour au scroll. */
.nowchip-bar { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 28; pointer-events: none; }
.nowchip-bar .nowchip { pointer-events: auto; }
@media (max-width: 880px) { .nowchip-bar { display: none; } }
.cs-word { font-family: var(--font-signature); font-weight: 600; font-size: 19px; letter-spacing: .2px; color: var(--text-1); }

/* ---------- Nav sticky ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h); display: flex; align-items: center;
  background: var(--glass); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav .wrapS { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); width: 100%; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color var(--d-fast) var(--e-standard); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-1); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brand-copper); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Switchs (thème + langue) */
.chip-btn {
  height: 38px; min-width: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border-radius: var(--r-full); border: 1px solid var(--border-default);
  background: var(--glass); color: var(--text-1); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
  transition: border-color var(--d-fast), transform var(--d-fast);
}
.chip-btn:hover { border-color: var(--brand-copper); transform: translateY(-1px); }
.lang-btn .l { opacity: .5; }
.lang-btn .l.on { opacity: 1; color: var(--brand-copper-soft); }
.theme-toggle .ti { width: 18px; height: 18px; display: block; }
[data-theme="dark"] .theme-toggle .ti-moon { display: none; }
[data-theme="light"] .theme-toggle .ti-sun { display: none; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-full);
  background: var(--brand-copper); color: #1a1206; font-weight: 600; font-size: 14px; text-decoration: none;
  box-shadow: var(--glow-copper); transition: transform var(--d-fast);
}
.nav-cta:hover { transform: translateY(-2px); }
[data-theme="light"] .nav-cta { color: #fff; }

.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--border-default); border-radius: var(--r-md);
  background: var(--glass); color: var(--text-1); cursor: pointer; align-items: center; justify-content: center; }
.nav-burger .ti { width: 20px; height: 20px; display: block; }

/* Menu mobile */
.mobile-menu { display: none; }
@media (max-width: 920px) {
  .nav-links, .nav-right .nav-cta, .nav-right .lang-btn { display: none; }
  .nav-burger { display: inline-flex; }
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 40; display: none; flex-direction: column;
    padding: var(--sp-6) clamp(20px,5vw,48px); gap: var(--sp-2);
    background: var(--bg); border-top: 1px solid var(--hairline);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { color: var(--text-1); text-decoration: none; font-size: 19px; font-weight: 600; padding: var(--sp-3) 0; border-bottom: 1px solid var(--hairline); }
  .mobile-menu .mm-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
}

/* ---------- Sections / primitives ---------- */
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section.tight { padding: clamp(40px, 6vw, 80px) 0; }
.eyebrowS { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-copper-soft); font-weight: 600; }
.eyebrowS .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-copper); box-shadow: 0 0 0 4px rgba(198,138,78,.16); }
.h-page { font-family: var(--font-signature); font-weight: 600; letter-spacing: -.02em; line-height: 1.04; font-size: clamp(36px, 6vw, 68px); margin: 16px 0 0; }
.h-sec { font-family: var(--font-signature); font-weight: 600; letter-spacing: -.02em; line-height: 1.06; font-size: clamp(28px, 4vw, 46px); margin: 14px 0 0; }
.sig { color: var(--brand-copper); }
.lede { max-width: 620px; margin: 20px 0 0; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); }
.lede.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center { text-align: center; max-width: 760px; margin: 0 auto; }

/* Page hero */
.page-hero { padding: clamp(64px, 11vw, 150px) 0 clamp(30px, 5vw, 60px); }

/* Boutons */
.btn-copper { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: var(--r-full);
  background: var(--brand-copper); color: #1a1206; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: var(--glow-copper); }
[data-theme="light"] .btn-copper { color: #fff; }
.btn-ghostS { display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: var(--r-full);
  border: 1px solid var(--border-strong); color: var(--text-1); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: border-color var(--d-fast), background var(--d-fast); }
.btn-ghostS:hover { border-color: var(--brand-copper); background: rgba(198,138,78,.06); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Grille piliers / features */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.pillar { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); padding: 26px 22px; box-shadow: var(--shadow-card); }
.pillar .p-ico { width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  background: rgba(198,138,78,.12); color: var(--brand-copper-soft); margin-bottom: 16px; }
.pillar .p-ico [data-icon] { width: 24px; height: 24px; display: block; }
.pillar h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.pillar > p { color: var(--text-2); font-size: 14.5px; margin: 0 0 14px; }
.p-list { display: flex; flex-direction: column; gap: 9px; }
.p-list .li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.p-list .li [data-icon] { width: 17px; height: 17px; display: block; color: var(--brand-copper-soft); flex: none; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Feat list (split) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.feat-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .f-ico { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  background: var(--surface-1); border: 1px solid var(--border-subtle); color: var(--brand-copper-soft); }
.feat .f-ico [data-icon] { width: 22px; height: 22px; display: block; }
.feat h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.feat p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

/* Trust band */
.trust-band { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: var(--r-full);
  border: 1px solid var(--border-subtle); background: var(--surface-1); font-size: 13.5px; color: var(--text-1); }
.trust-chip [data-icon] { width: 18px; height: 18px; display: block; color: var(--brand-copper-soft); }

/* Stat row */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.stat { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 24px; text-align: center; }
.stat .v { font-family: var(--font-signature); font-weight: 600; font-size: clamp(28px, 4vw, 40px); color: var(--brand-copper); }
.stat .k { color: var(--text-2); font-size: 14px; margin-top: 4px; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }

/* Steps (process Cleverixe) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; counter-reset: step; }
.step { background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 26px 22px; }
.step .num { counter-increment: step; display: inline-flex; width: 38px; height: 38px; border-radius: 50%;
  align-items: center; justify-content: center; background: rgba(198,138,78,.14); color: var(--brand-copper-soft);
  font-family: var(--font-mono); font-weight: 600; margin-bottom: 14px; }
.step .num::before { content: counter(step); }
.step h4 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq-cat { margin-top: 40px; }
.faq-cat > h3 { font-family: var(--font-signature); font-weight: 600; font-size: 22px; margin: 0 0 14px; color: var(--brand-copper-soft); }
.qa { border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-1); margin-bottom: 10px; overflow: hidden; }
.qa > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 600; font-size: 16px; color: var(--text-1); }
.qa > summary::-webkit-details-marker { display: none; }
.qa .ico { width: 20px; height: 20px; flex: none; color: var(--brand-copper-soft); transition: transform var(--d-med); }
.qa[open] .ico { transform: rotate(45deg); }
.qa .a { padding: 0 20px 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* CTA / form */
.cta-block { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 60px);
  text-align: center; border: 1px solid var(--border-subtle);
  background: radial-gradient(120% 120% at 50% 0%, rgba(198,138,78,.12), transparent 60%), var(--surface-inset); }
.cta-block h2 { font-family: var(--font-signature); font-weight: 600; font-size: clamp(28px, 4.4vw, 52px); margin: 14px auto 0; max-width: 640px; line-height: 1.05; }
.cta-block p { margin: 16px auto 0; max-width: 520px; color: var(--text-2); font-size: 16px; }
.cta-form { display: flex; gap: 12px; max-width: 520px; margin: 28px auto 0; flex-wrap: wrap; }
.cta-form .inp { flex: 1 1 160px; min-width: 0; padding: 15px 18px; border-radius: var(--r-md); background: var(--surface-1);
  border: 1px solid var(--border-default); color: var(--text-1); font-size: 15px; font-family: inherit; }
.cta-form .inp::placeholder { color: var(--text-3); }
.cta-form .inp:focus { outline: none; border-color: var(--brand-copper); }
.cta-form button { padding: 15px 26px; border-radius: var(--r-md); border: none; cursor: pointer; background: var(--brand-copper);
  color: #1a1206; font-weight: 600; font-size: 15px; font-family: inherit; box-shadow: var(--glow-copper); }
[data-theme="light"] .cta-form button { color: #fff; }
.fine { font-size: 12.5px; color: var(--text-3); margin-top: 16px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--hairline); padding: clamp(40px, 6vw, 64px) 0 36px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand p { color: var(--text-3); font-size: 13.5px; max-width: 320px; margin: 14px 0 0; line-height: 1.55; }
.foot-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin: 0 0 12px; }
.foot-col a { display: block; color: var(--text-3); text-decoration: none; font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--text-1); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 13px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Reveal (léger) */
.rev { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--e-standard), transform .7s var(--e-standard); }
.rev.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rev { opacity: 1; transform: none; } }
