:root{
  --navy:#0B1F3A;
  --ocean:#0EA5A6;
  --sky:#E6F6F6;
  --ink:#0F172A;
  --muted:#475569;
  --surface:#FFFFFF;
  --bg:#F6F8FB;
  --border:#E2E8F0;

  --success:#166534;
  --success-bg:#DCFCE7;
  --error:#991B1B;
  --error-bg:#FEE2E2;

  --radius-lg:16px;
  --radius-md:12px;

  --shadow:0 8px 20px rgba(15, 23, 42, 0.06);
  --wrap:1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.55;
  background:var(--bg);
  color:var(--ink);
}
img{ max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

:focus-visible{ outline:2px solid var(--ocean); outline-offset:3px; }

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 18px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:var(--navy);
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  z-index:2000;
}
.skip-link:focus{ left:12px; }

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:1200;
  background:rgba(11,31,58,0.96);
  border-bottom:1px solid rgba(255,255,255,0.10);
  backdrop-filter:saturate(180%) blur(8px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}
.brand{
  color:#fff;
  font-weight:850;
  letter-spacing:0.2px;
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-logo{
  width:28px;
  height:28px;
  flex:0 0 auto;
  border-radius:10px;
  box-shadow:0 8px 18px rgba(0,0,0,0.18);
}
.brand-name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.nav{ display:flex; align-items:center; gap:18px; }
.nav-desktop{ display:none; }
.nav-link{
  color:rgba(255,255,255,0.88);
  font-weight:650;
  padding:10px 6px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.nav-link:hover{ color:#fff; background:rgba(255,255,255,0.06); text-decoration:none; }
.nav-link.is-active{ color:#fff; background:rgba(255,255,255,0.10); }
.nav-muted{ color:rgba(255,255,255,0.74); font-weight:550; }

.header-actions{ display:flex; align-items:center; gap:12px; }

.ico{ width:18px; height:18px; flex:0 0 auto; }
.nav-label{ display:inline-block; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 16px;
  border-radius:var(--radius-md);
  border:1px solid transparent;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  gap:10px;
}
.btn-primary{
  background:var(--ocean);
  color:#fff;
  box-shadow:0 10px 18px rgba(14,165,166,0.20);
}
.btn-primary:hover{ filter:brightness(1.05); text-decoration:none; }
.btn-secondary{
  background:rgba(255,255,255,0.10);
  color:#fff;
  border-color:rgba(255,255,255,0.22);
}
.btn-secondary:hover{ background:rgba(255,255,255,0.16); text-decoration:none; }
.btn-ghost{
  background:transparent;
  color:var(--navy);
  border-color:rgba(11,31,58,0.18);
}
.btn-ghost:hover{ background:rgba(11,31,58,0.06); text-decoration:none; }
.btn-menu{
  min-height:44px;
  padding:10px 14px;
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,0.24);
}
.btn-menu:hover{ background:rgba(255,255,255,0.06); text-decoration:none; }
.btn-block{ width:100%; }

.nav-mobile-only{ display:inline-flex; }
.nav-mobile{
  border-top:1px solid rgba(255,255,255,0.10);
  background:rgba(11,31,58,0.98);
}
.nav-mobile-inner{ padding:14px 0 16px; display:flex; flex-direction:column; gap:10px; }
.nav-mobile-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.14);
  color:rgba(255,255,255,0.90);
}
.nav-mobile-link:hover{ background:rgba(255,255,255,0.06); text-decoration:none; }

@media (min-width: 980px){
  .brand-logo{ width:32px; height:32px; }
  .nav-desktop{ display:flex; }
  .nav-mobile-only{ display:none; }
  .nav-mobile{ display:none !important; }
}

/* Content */
main{ display:block; }

.hero{
  padding:46px 0 18px;
  background:linear-gradient(180deg, rgba(230,246,246,0.90) 0%, var(--bg) 70%);
}
.page-hero{
  padding:34px 0 18px;
  background:linear-gradient(180deg, rgba(230,246,246,0.90) 0%, var(--bg) 80%);
}
.eyebrow{
  margin:0 0 10px;
  color:rgba(11,31,58,0.70);
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:0.82rem;
}

h1{
  margin:0 0 10px;
  color:var(--navy);
  font-size:clamp(26px, 4.4vw, 44px);
  line-height:1.15;
  letter-spacing:-0.3px;
}
.lead{
  margin:0 0 16px;
  color:var(--muted);
  font-size:clamp(16px, 1.5vw, 18px);
  max-width:70ch;
}
.note{
  margin:16px 0 0;
  color:var(--muted);
  font-size:0.95rem;
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:start;
}
@media (min-width: 980px){
  .hero-grid{ grid-template-columns:1.15fr 0.85fr; }
}

.hero-panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:var(--shadow);
}
.panel-title{ margin:0 0 10px; font-weight:900; color:var(--navy); }

.cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin:0 0 14px; }

.pills{ display:flex; flex-wrap:wrap; gap:10px; padding:0; margin:0; list-style:none; }
.pill{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 10px;
  font-weight:750;
  color:var(--ink);
  font-size:0.95rem;
}
.pill-accent{
  background:var(--sky);
  border-color:rgba(14,165,166,0.22);
  color:var(--navy);
}

.section{ padding:46px 0; }
.section-alt, .section-soft{
  background:linear-gradient(180deg, #ffffff 0%, rgba(246,248,251,1) 100%);
  border-top:1px solid rgba(15,23,42,0.06);
  border-bottom:1px solid rgba(15,23,42,0.06);
}
.section h2{
  margin:0 0 14px;
  font-size:clamp(20px, 2.3vw, 28px);
  letter-spacing:-0.2px;
  color:var(--navy);
}
.section p{ margin:0 0 12px; }

.grid-2,
.grid-3{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media (min-width: 820px){
  .grid-2{ grid-template-columns:repeat(2, 1fr); }
  .grid-3{ grid-template-columns:repeat(3, 1fr); }
}

.split{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:start;
}
@media (min-width: 980px){
  .split{ grid-template-columns:1.2fr 0.8fr; }
}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:var(--shadow);
}
.card h2{ margin:0 0 10px; }
.card h3{ margin:0 0 8px; font-size:1.05rem; color:var(--navy); }
.card p{ margin:0; }

.card-link{ display:block; }
.card-link:hover{ border-color:rgba(14,165,166,0.40); text-decoration:none; }

.card-highlight{
  border-color:rgba(14,165,166,0.35);
  box-shadow:0 10px 24px rgba(14,165,166,0.10);
}

.muted{ color:var(--muted); }
.small{ font-size:0.92rem; }
.micro{ font-size:0.88rem; }

.tag{
  display:inline-block;
  font-size:0.82rem;
  font-weight:850;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:rgba(11,31,58,0.78);
  background:rgba(230,246,246,0.70);
  border:1px solid rgba(14,165,166,0.18);
  border-radius:999px;
  padding:6px 10px;
  margin:0 0 10px;
}

.bullets,
.mini{
  margin:12px 0 0;
  padding-left:18px;
}
.bullets li{ margin:10px 0; color:var(--muted); }
.mini li{ margin:8px 0; color:var(--muted); }

.notice{
  margin:18px 0;
  background:var(--sky);
  border:1px solid rgba(14,165,166,0.22);
  border-radius:var(--radius-lg);
  padding:14px 16px;
}
.notice code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:0.92em;
}

.cta-banner{
  display:flex;
  flex-direction:column;
  gap:14px;
  background:rgba(11,31,58,0.96);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:18px;
}
.cta-banner h2{ color:#fff; margin:0 0 10px; }
.cta-banner .muted{ color:rgba(255,255,255,0.78); }
@media (min-width: 980px){
  .cta-banner{ flex-direction:row; align-items:center; justify-content:space-between; }
}

.quote{
  font-weight:650;
  color:var(--ink);
  line-height:1.5;
}

.price{
  font-size:1.6rem;
  font-weight:950;
  color:var(--navy);
  margin:14px 0;
}
.h3{ font-size:1.1rem; margin:0 0 8px; color:var(--navy); }

/* Quiz demo */
.form{ max-width:860px; }
fieldset.card{ border:none; }
.legend{ font-weight:900; color:var(--navy); }
.question{ margin:8px 0 14px; font-weight:700; color:var(--ink); }

.choices{ display:flex; flex-direction:column; gap:10px; }
.choice{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  background:#fff;
}
.choice:hover{ border-color:rgba(14,165,166,0.35); }
.choice input{ margin-top:3px; }

.result{
  margin-top:14px;
  border-radius:var(--radius-lg);
  padding:14px;
  border:1px solid var(--border);
  background:#fff;
}
.result-title{ margin:0 0 8px; font-weight:950; }
.result-ok{ border-color:rgba(22,101,52,0.25); background:var(--success-bg); }
.result-ok .result-title{ color:var(--success); }
.result-bad{ border-color:rgba(153,27,27,0.25); background:var(--error-bg); }
.result-bad .result-title{ color:var(--error); }

.mini-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media (min-width: 820px){
  .mini-grid{ grid-template-columns:repeat(3, 1fr); }
}

/* Forms */
.field{ margin:0 0 14px; }
label{ display:block; font-weight:800; margin:0 0 6px; }
input[type="email"], input[type="password"], input[type="text"], textarea{
  width:100%;
  padding:12px 12px;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  background:#fff;
  font-size:16px;
}
input:focus-visible, textarea:focus-visible{ outline:2px solid var(--ocean); outline-offset:2px; }
.help{ color:var(--muted); font-size:0.92rem; margin:6px 0 0; }
.error{ color:var(--error); background:var(--error-bg); border:1px solid rgba(153,27,27,0.20); padding:10px 12px; border-radius:12px; }
.success{ color:var(--success); background:var(--success-bg); border:1px solid rgba(22,101,52,0.20); padding:10px 12px; border-radius:12px; }

/* FAQ */
details{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:12px 14px;
}
details + details{ margin-top:10px; }
summary{ cursor:pointer; font-weight:850; }

/* Footer */
.site-footer{
  margin-top:28px;
  padding:44px 0 26px;
  background:rgba(11,31,58,0.96);
  color:#fff;
}
.footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
@media (min-width: 820px){
  .footer-grid{ grid-template-columns:1.5fr 1fr 1fr 1fr; }
}
.footer-brand{
  font-weight:950;
  margin-bottom:8px;
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-logo{ width:22px; height:22px; flex:0 0 auto; }
.footer-title{ font-weight:950; margin-bottom:10px; }
.footer-link{ display:block; padding:6px 0; color:rgba(255,255,255,0.86); }
.footer-link:hover{ color:#fff; text-decoration:none; }
.footer-bottom{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,0.12);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.site-footer .muted{ color:rgba(255,255,255,0.74); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}

/* ---------------------------------
   Components used by page templates
   --------------------------------- */

.lead{ font-size:clamp(16px, 1.6vw, 18px); color:var(--muted); max-width:70ch; }
.note{ color:var(--muted); font-size:0.95rem; margin-top:10px; }

.eyebrow{
  display:inline-block;
  margin:0 0 10px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--sky);
  border:1px solid rgba(14,165,166,0.20);
  color:var(--ocean);
  font-weight:800;
  font-size:0.9rem;
}

.page-hero{
  padding:40px 0 18px;
  background:linear-gradient(180deg, rgba(230,246,246,0.90) 0%, var(--bg) 70%);
}

.section-alt{ background:linear-gradient(180deg, #ffffff 0%, rgba(246,248,251,1) 100%); border-top:1px solid rgba(15,23,42,0.06); border-bottom:1px solid rgba(15,23,42,0.06); }

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin:16px 0;
}

/* Grid aliases (used in templates) */
.grid-2, .grid-3{ display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width: 820px){
  .grid-2{ grid-template-columns:repeat(2, 1fr); }
  .grid-3{ grid-template-columns:repeat(3, 1fr); }
}

.hero-panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:var(--shadow);
}
.panel-title{ margin:0 0 10px; font-weight:900; color:var(--navy); }

.bullets{ margin:10px 0 0; padding-left:18px; color:var(--muted); }
.bullets li{ margin:10px 0; }

.mini{ margin:10px 0 0; padding-left:18px; color:var(--muted); }
.mini li{ margin:8px 0; }

.tag{
  display:inline-block;
  margin:0 0 8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,0.10);
  background:#fff;
  font-weight:800;
  font-size:0.86rem;
  color:var(--ink);
}

.notice{
  background:var(--sky);
  border:1px solid rgba(14,165,166,0.20);
  border-radius:var(--radius-lg);
  padding:14px 16px;
  margin:16px 0;
}

.card-link{ transition:transform 120ms ease, box-shadow 120ms ease; }
.card-link:hover{ transform:translateY(-1px); box-shadow:0 12px 24px rgba(15,23,42,0.08); text-decoration:none; }

.cta-banner{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:var(--shadow);
}

.quote{ margin:0; font-size:1.02rem; color:var(--ink); }

.price{ font-size:1.6rem; font-weight:950; color:var(--navy); margin:10px 0 12px; }
.card-highlight{ border-color:rgba(14,165,166,0.30); box-shadow:0 14px 30px rgba(14,165,166,0.08); }

/* Quiz / demo */
.legend{ font-weight:900; color:var(--navy); }
.question{ margin:10px 0 0; font-weight:750; color:var(--ink); }

.choices{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.choice{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
}
.choice:hover{ background:#F8FAFC; }
.choice input{ margin-top:3px; }

.result{ margin-top:14px; border-radius:var(--radius-lg); padding:14px; border:1px solid var(--border); background:#fff; }
.result-ok{ border-color:rgba(22,101,52,0.25); background:var(--success-bg); }
.result-bad{ border-color:rgba(153,27,27,0.25); background:var(--error-bg); }
.result-title{ margin:0 0 8px; font-weight:900; color:var(--ink); }

.mini-grid{ display:grid; grid-template-columns:1fr; gap:12px; margin-top:10px; }
@media (min-width: 980px){
  .mini-grid{ grid-template-columns:repeat(3, 1fr); }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .card-link{ transition:none; }
}

/* -------------------------------------------------
   Iconographie (production) — légère, cohérente
   ------------------------------------------------- */

.btn{ gap:10px; }

.panel-title,
.card h3{
  display:flex;
  align-items:center;
  gap:10px;
}

.panel-title::before,
.card h3::before{
  content:"";
  width:18px;
  height:18px;
  flex:0 0 auto;
  background-repeat:no-repeat;
  background-size:18px 18px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230EA5A6' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 2l1.6 4.8L18 8l-4.4 1.2L12 14l-1.6-4.8L6 8l4.4-1.2L12 2z'/%3E%3C/svg%3E");
}

.checklist,
.bullets,
.mini{
  list-style:none;
  padding:0;
  margin:12px 0 0;
}

.checklist li,
.bullets li,
.mini li{
  position:relative;
  padding-left:28px;
}

.checklist li{ margin:10px 0; color:var(--muted); }
.bullets li{ margin:10px 0; color:var(--muted); }
.mini li{ margin:8px 0; color:var(--muted); }

.checklist li::before,
.bullets li::before,
.mini li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.25em;
  width:18px;
  height:18px;
  background-repeat:no-repeat;
  background-size:18px 18px;
}

.checklist li::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230EA5A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.bullets li::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 5l7 7-7 7'/%3E%3C/svg%3E");
}

.mini li::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3' fill='%230EA5A6'/%3E%3C/svg%3E");
}

.footer-link{
  position:relative;
  padding-left:14px;
}
.footer-link::before{
  content:"";
  position:absolute;
  left:0;
  top:0.55em;
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(14,165,166,0.70);
}
