/* ===========================================================================
   EasyWatt — design system
   Implémentation de "EasyWatt Landing.dc.html" (Claude Design "Website redesign
   reference"). Les styles inline et les conventions style-hover/style-focus du
   fichier .dc.html sont ici traduits en vraies classes CSS + états responsives.
   =========================================================================== */

:root {
  --blue: #025BFF;
  --blue-dark: #014FDB;
  --green: #1AB655;
  --green-soft: #3FD680;
  --green-pale: #7FD3A3;
  --navy: #0A1330;
  --navy-deep: #070C1F;
  --muted: #5A6478;
  --muted-2: #8A94A8;
  --muted-3: #9AA3B4;
  --muted-dark: #A8B2C7;
  --ink-2: #3A4458;
  --line: #E7EAF1;
  --line-2: #E2E7F2;
  --bg-alt: #F7F8FB;
  --bg-blue: #EEF3FF;
  --bg-green: #E8F8EF;
  --page: #fff;
  --surface: #fff;
  --text: var(--navy);
  --radius: 18px;
  --shadow-card: 0 20px 40px rgba(10, 19, 48, .09);
  --shadow-lift: 0 30px 60px rgba(10, 19, 48, .10);
  --maxw: 1200px;
  --font-head: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: inherit; }
::selection { background: var(--blue); color: #fff; }

/* ---- keyframes (du helmet du design) ---- */
@keyframes ewFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes ewFloat2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(12px)} }
@keyframes ewPulse { 0%{transform:scale(.85);opacity:.55} 70%{transform:scale(1.45);opacity:0} 100%{opacity:0} }
@keyframes ewMarchV { to{background-position:0 18px} }
@keyframes ewBlob { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(24px,-18px) scale(1.08)} 66%{transform:translate(-18px,14px) scale(.96)} }
@keyframes ewRise { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }

/* ---- reveal au scroll (remplace animation-timeline:view()) ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 32px; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.inner { max-width: var(--maxw); margin: 0 auto; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.eyebrow--bare::before { display: none; }
.eyebrow--green { color: var(--green); }
.eyebrow--green-light { color: var(--green-pale); }
.eyebrow--green span, .eyebrow--green-light span { background: var(--green); }

.h2 { font-size: 40px; line-height: 1.1; font-weight: 800; }
.lead { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.section--dark .lead { color: var(--muted-dark); }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-weight: 600; font-size: 16px; padding: 15px 26px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  text-align: center; line-height: 1.2;
}
.btn-sm { font-size: 15px; padding: 11px 20px; border-radius: 11px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(2,91,255,.26); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 16px 32px rgba(2,91,255,.32); }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue); font-weight: 700; }
.btn-light:hover { transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---- header / nav ---- */
.ew-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(231,234,241,0);
  transition: box-shadow .3s ease;
}
.ew-header.scrolled { box-shadow: 0 1px 0 #E7EAF1, 0 10px 30px rgba(10,19,48,.06); }
.ew-nav { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ew-brand { display: flex; align-items: center; gap: 11px; }
.ew-brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(2,91,255,.3); }
.ew-brand-mark svg { width: 18px; height: 18px; fill: #fff; }
.ew-brand-text { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -0.035em; color: var(--navy); }
.ew-brand-text .accent { color: var(--blue); }
.ew-navlinks { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; color: var(--muted); }
.ew-navlinks a { transition: color .2s; }
.ew-navlinks a:hover, .ew-navlinks a.active { color: var(--navy); }
.ew-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--navy); }
.ew-burger svg { width: 26px; height: 26px; }
.ew-mobile-menu { display: none; }

/* ---- accents / pills ---- */
.accent-blue { color: var(--blue); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.pill .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-green); display: inline-flex; align-items: center; justify-content: center; }
.pill .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pill--mini { font-weight: 600; }
.pill--mini::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- hero ---- */
.ew-hero { position: relative; padding: 148px 32px 76px; background: linear-gradient(180deg,#F6F9FF 0%,#FFFFFF 62%); overflow: hidden; }
.ew-hero .glow { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.ew-hero .glow-1 { top: -120px; right: -80px; width: 520px; height: 520px; background: radial-gradient(circle,rgba(2,91,255,.14),rgba(2,91,255,0) 70%); }
.ew-hero .glow-2 { top: 60px; left: -140px; width: 460px; height: 460px; background: radial-gradient(circle,rgba(26,182,85,.12),rgba(26,182,85,0) 70%); }
.ew-badge { display: flex; justify-content: center; margin-bottom: 28px; }
.ew-badge > span { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 13.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(10,19,48,.05); }
.ew-badge .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(26,182,85,.18); }
.ew-badge .tag { display: inline-flex; align-items: center; background: #F1F4FA; border-radius: 999px; padding: 3px 10px; color: var(--muted); font-weight: 600; }
.ew-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.ew-hero-title { font-size: 58px; line-height: 1.04; font-weight: 800; max-width: 13ch; }
.ew-hero-lead { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 48ch; }
.ew-hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.ew-hero-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.btn-ext { width: 15px; height: 15px; margin-left: 7px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ew-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* ---- hero diagram (variant "Schéma") ---- */
.ew-diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow-lift); }
.ew-diagram .cap { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.ew-diagram .col { display: flex; flex-direction: column; align-items: center; }
.ew-node { display: inline-flex; align-items: center; gap: 14px; border-radius: 16px; padding: 18px 26px; }
.ew-node small { font-size: 13px; color: var(--muted); font-weight: 600; display: block; }
.ew-node strong { font-size: 17px; font-weight: 700; }
.ew-node .nd { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.ew-node--prod { background: var(--bg-green); border: 1px solid #C7EBD6; }
.ew-node--prod .nd { background: var(--green); }
.ew-node--cons { background: var(--bg-blue); border: 1px solid #CFDDFB; }
.ew-node--cons .nd { background: var(--blue); }
.ew-flow { width: 3px; height: 34px; background-size: 3px 18px; animation: ewMarchV 1s linear infinite; }
.ew-flow--green { background: repeating-linear-gradient(180deg,var(--green) 0 6px,transparent 6px 18px); }
.ew-flow--blue { background: repeating-linear-gradient(180deg,var(--blue) 0 6px,transparent 6px 18px); }
.ew-core { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 116px; height: 116px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 16px 36px rgba(2,91,255,.32); }
.ew-core .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); animation: ewPulse 2.6s ease-out infinite; }
.ew-core b { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.ew-core span { font-size: 11px; opacity: .85; margin-top: 2px; }
.ew-diagram-foot { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid #EEF1F7; }
.ew-diagram-foot .num { font-size: 22px; font-weight: 800; font-family: var(--font-head); }
.ew-diagram-foot small { font-size: 12px; color: var(--muted-2); }

/* ---- trust strip ---- */
.ew-trust { display: flex; align-items: center; justify-content: center; gap: 46px; flex-wrap: wrap; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-3); max-width: 1100px; margin: 0 auto; }
.ew-trust .sep { width: 5px; height: 5px; border-radius: 50%; background: #D4DAE6; }

/* ---- 2-col blocks ---- */
.ew-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ew-concept-visual { position: relative; aspect-ratio: 1000 / 620; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(180deg,#EAF2FF 0%,#EFF6FF 45%,#EAF7EE 100%); box-shadow: 0 24px 48px rgba(10,19,48,.1); }
.ew-concept-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ew-float-cap { position: absolute; left: 18px; bottom: 16px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: rgba(255,255,255,.82); backdrop-filter: blur(4px); padding: 6px 11px; border-radius: 8px; box-shadow: 0 4px 12px rgba(10,19,48,.08); }
.ew-float-card { position: absolute; right: 18px; top: 18px; background: var(--surface); border-radius: 14px; padding: 14px 18px; box-shadow: 0 14px 30px rgba(10,19,48,.12); animation: ewFloat 6.5s ease-in-out infinite; }
.ew-float-card small { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.ew-float-card div { font-size: 14px; font-weight: 700; max-width: 18ch; margin-top: 3px; }

/* ---- card grids ---- */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ew-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ew-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: #D6DEEC; }
.ew-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; }
.ew-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.ew-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--bg-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ew-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* dark variant */
.ew-card--dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); transition: transform .25s, background .25s; }
.ew-card--dark:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); box-shadow: none; border-color: rgba(255,255,255,.1); }
.ew-card--dark h3 { color: #fff; }
.ew-card--dark p { color: var(--muted-dark); }
.ew-icon--dark { background: rgba(26,182,85,.16); }
.ew-icon--dark svg { stroke: var(--green-soft); }

.section--dark .glow { position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.section--dark .glow-a { top: -100px; right: -60px; width: 480px; height: 480px; background: radial-gradient(circle,rgba(2,91,255,.3),transparent 70%); }
.section--dark .glow-b { bottom: -120px; left: -80px; width: 440px; height: 440px; background: radial-gradient(circle,rgba(26,182,85,.22),transparent 70%); }

/* ---- steps + stats ---- */
.ew-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.ew-step .n { font-family: var(--font-head); font-size: 54px; font-weight: 800; line-height: 1; color: #E5EAF4; }
.ew-step .bar { width: 38px; height: 3px; background: var(--green); border-radius: 3px; margin: 14px 0 18px; }
.ew-step h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.ew-step p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.ew-stats { margin-top: 72px; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; background: var(--green); border-radius: 24px; padding: 46px 40px; box-shadow: 0 26px 54px rgba(2,91,255,.22); }
.ew-stats .item { text-align: center; color: #fff; }
.ew-stats .item:not(:last-child) { border-right: 1px solid rgba(255,255,255,.2); }
.ew-stats .big { font-family: var(--font-head); font-size: 52px; font-weight: 800; line-height: 1; }
.ew-stats .lbl { font-size: 15px; opacity: .92; margin-top: 8px; }

/* ---- services ---- */
.ew-service { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ew-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--blue); }
.ew-service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ew-service-top .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-blue); display: flex; align-items: center; justify-content: center; }
.ew-service-top .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ew-service-top .arrow { color: var(--blue); font-size: 20px; font-weight: 700; transition: transform .25s; }
.ew-service:hover .arrow { transform: translateX(4px); }
.ew-service h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.ew-service p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---- pricing ---- */
.ew-price { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lift); }
.ew-price-main { background: var(--blue); color: #fff; padding: 42px 36px; display: flex; flex-direction: column; justify-content: center; }
.ew-price-main .k { font-size: 14px; font-weight: 600; opacity: .9; text-transform: uppercase; letter-spacing: .05em; }
.ew-price-main .amount { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.ew-price-main .amount .cur { font-size: 18px; font-weight: 600; opacity: .85; }
.ew-price-main .amount .val { font-family: var(--font-head); font-size: 64px; font-weight: 800; line-height: 1; }
.ew-price-main .per { font-size: 15px; opacity: .92; }
.ew-price-main .note { font-size: 13.5px; line-height: 1.5; opacity: .85; margin-top: 18px; }
.ew-price-list { padding: 42px 38px; }
.ew-price-list .k { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.ew-price-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ew-price-list li { display: flex; align-items: center; gap: 13px; font-size: 15.5px; font-weight: 500; }
.ew-check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-green); display: inline-flex; align-items: center; justify-content: center; }
.ew-check::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---- testimonials ---- */
.ew-quotes { columns: 3; column-gap: 20px; }
.ew-quote { break-inside: avoid; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.ew-quote .mark { font-family: var(--font-head); font-size: 40px; line-height: .6; color: var(--blue); height: 22px; }
.ew-quote p { font-size: 15.5px; line-height: 1.6; color: #2A3448; margin: 6px 0 20px; }
.ew-quote .who { display: flex; align-items: center; gap: 12px; }
.ew-quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.ew-quote .nm { font-size: 15px; font-weight: 700; }
.ew-quote .rl { font-size: 13px; color: var(--muted-2); }

/* ---- faq ---- */
.ew-faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ew-faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.ew-faq-item.open { border-color: #CFDDFB; }
.ew-faq-q { width: 100%; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; text-align: left; }
.ew-faq-q span.q { font-size: 17px; font-weight: 700; color: var(--navy); }
.ew-faq-q .sign { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-blue); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; transition: all .2s; }
.ew-faq-item.open .sign { background: var(--blue); color: #fff; }
.ew-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.ew-faq-a p { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.62; color: var(--muted); }

/* ---- contact ---- */
.ew-contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.ew-contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 34px; }
.ew-contact-list .row { display: flex; align-items: flex-start; gap: 14px; }
.ew-contact-list .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; flex: none; }
.ew-contact-list .ic svg { width: 18px; height: 18px; fill: none; stroke: var(--green-pale); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ew-contact-list small { font-size: 12px; color: var(--muted-2); }
.ew-contact-list strong { font-size: 16px; font-weight: 700; line-height: 1.4; }
.ew-form-card { background: var(--surface); border-radius: 22px; padding: 34px; color: var(--navy); }
.ew-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ew-field { margin-bottom: 16px; }
.ew-field label, .ew-form-2 label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.ew-field input, .ew-field textarea, .ew-form-2 input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 11px;
  font-size: 15px; outline: none; transition: border-color .2s; background: var(--surface); color: var(--navy);
}
.ew-field textarea { resize: vertical; }
.ew-field input:focus, .ew-field textarea:focus, .ew-form-2 input:focus { border-color: var(--blue); }
.ew-form-success { text-align: center; padding: 48px 16px; }
.ew-form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.ew-form-success .ok::after { content: ""; width: 22px; height: 12px; border-left: 4px solid var(--green); border-bottom: 4px solid var(--green); transform: rotate(-45deg); margin-top: -6px; }
.ew-form-success h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.ew-form-success p { font-size: 16px; color: var(--muted); line-height: 1.55; }
.ew-form-error { margin: 4px 0 14px; font-size: 14px; font-weight: 600; color: #e23b3b; }
.is-hidden { display: none !important; }

/* ---- newsletter ---- */
.ew-newsletter { max-width: 1000px; margin: 0 auto; background: var(--blue); border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; box-shadow: 0 30px 60px rgba(2,91,255,.24); }
.ew-newsletter h3 { font-size: 26px; font-weight: 800; color: #fff; }
.ew-newsletter p { font-size: 15.5px; color: rgba(255,255,255,.9); margin-top: 8px; line-height: 1.5; }
.ew-newsletter-form { display: flex; gap: 10px; background: var(--surface); border-radius: 13px; padding: 7px; }
.ew-newsletter-form input { flex: 1; border: none; outline: none; padding: 11px 14px; font-size: 15px; background: transparent; }
.ew-newsletter-form button { background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 22px; border: none; border-radius: 9px; cursor: pointer; transition: transform .2s, background .2s; box-shadow: 0 6px 16px rgba(2,91,255,.3); }
.ew-newsletter-form button:hover { transform: translateY(-1px); background: var(--blue-dark); }
/* newsletter Infomaniak (webform) habillée aux couleurs du site */
.ew-nl-form { width: 100%; }
.ew-nl-row { display: flex; gap: 10px; background: var(--surface); border-radius: 13px; padding: 7px; }
.ew-nl-row .inf-input { flex: 1; margin: 0; }
.ew-nl-row .inf-input input { width: 100%; height: auto; border: none; outline: none; padding: 11px 14px; font-size: 15px; background: transparent; color: var(--text); }
.ew-nl-row .inf-submit { display: flex; }
.ew-nl-row .inf-submit input { background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 22px; border: none; border-radius: 9px; cursor: pointer; transition: transform .2s, background .2s; box-shadow: 0 6px 16px rgba(2,91,255,.3); }
.ew-nl-row .inf-submit input:hover { transform: translateY(-1px); background: var(--blue-dark); }
.ew-nl-form .inf-input.inf-error input { box-shadow: 0 0 0 1px #ffb4b4; }
.ew-nl-form .inf-input.inf-error .inf-message { display: block; color: #fff; font-size: 12.5px; margin-top: 6px; }
.ew-nl-form .inf-rgpd { font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 12px; line-height: 1.45; }
.ew-nl-success p { color: #fff; font-size: 15px; line-height: 1.5; }

/* ---- footer ---- */
.ew-footer { background: var(--navy-deep); color: var(--muted-dark); padding: 96px 32px 40px; }
.ew-footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ew-footer .brand-text { color: #fff; }
.ew-footer .brand-text .accent { color: #5B9CFF; }
.ew-footer-about p { font-size: 14.5px; line-height: 1.6; max-width: 34ch; margin-top: 4px; }
.ew-footer-col .k { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6B7488; margin-bottom: 16px; }
.ew-footer-col .links { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.ew-footer-col .links a { transition: color .2s; }
.ew-footer-col .links a:hover { color: #fff; }
.ew-footer-col .addr { font-size: 14.5px; line-height: 1.7; }
.ew-footer-col .addr a { color: var(--green-pale); }
.ew-footer-bottom { max-width: var(--maxw); margin: 46px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; flex-wrap: wrap; gap: 12px; }
.ew-footer-bottom .links { display: flex; gap: 24px; }
.ew-footer-bottom .links a { transition: color .2s; }
.ew-footer-bottom .links a:hover { color: #fff; }

/* =====================  service detail pages  ===================== */
.ew-page-hero { padding: 104px 32px 64px; background: linear-gradient(180deg,#F6F9FF 0%,#FFFFFF 100%); }
.ew-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted-2); margin-bottom: 22px; }
.ew-breadcrumb a:hover { color: var(--blue); }
.ew-breadcrumb .sep { color: #C7CEDB; }
.ew-breadcrumb .current { color: var(--ink-2); font-weight: 600; }
.ew-page-hero .ico { width: 56px; height: 56px; border-radius: 15px; background: var(--bg-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.ew-page-hero .ico svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ew-page-hero h1 { font-size: 46px; line-height: 1.06; font-weight: 800; margin-bottom: 16px; max-width: 16ch; }
.ew-page-hero .sub { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.ew-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.ew-detail-body p { font-size: 17px; line-height: 1.7; color: var(--muted); margin-bottom: 18px; }
.ew-detail-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.ew-legal { max-width: 760px; }
.ew-legal-block { margin-bottom: 40px; }
.ew-legal-block h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.ew-legal-block p { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin-bottom: 14px; }
.ew-legal-block p:last-child { margin-bottom: 0; }
.ew-legal-block ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.ew-legal-block li { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin-bottom: 8px; }
.ew-legal-block li::marker { color: var(--blue); }
.ew-detail-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 22px; }
.ew-detail-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ew-detail-card li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.ew-detail-card .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-green); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.ew-detail-card .ck svg { width: 13px; height: 13px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ew-cta { max-width: var(--maxw); margin: 0 auto; background: var(--blue); border-radius: 24px; padding: 56px 40px; text-align: center; color: #fff; box-shadow: 0 30px 60px rgba(2,91,255,.24); }
.ew-cta h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.ew-cta p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto 28px; }
.ew-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================  responsive  ===================== */
@media (max-width: 980px) {
  .ew-navlinks, .ew-nav .btn { display: none; }
  .ew-burger { display: inline-flex; }
  .ew-mobile-menu.open { display: flex; flex-direction: column; gap: 4px; padding: 12px 32px 22px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .ew-mobile-menu a { padding: 12px 4px; font-size: 16px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
  .ew-mobile-menu a:last-child { border-bottom: none; }

  .ew-hero-grid, .ew-2col, .ew-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .ew-steps { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .ew-quotes { columns: 2; }
  .ew-price { grid-template-columns: 1fr; }
  .ew-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .ew-newsletter { grid-template-columns: 1fr; }
  .ew-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ew-hero-title { font-size: 46px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 22px; }
  .ew-hero { padding: 120px 22px 56px; }
  .container { padding: 0 22px; }
  .h2, .ew-page-hero h1 { font-size: 30px; }
  .ew-page-hero { padding-top: 92px; }
  .ew-hero-title { font-size: 36px; max-width: none; }
  .ew-hero-lead { font-size: 17px; }
  .grid-4, .grid-3, .ew-steps { grid-template-columns: 1fr; }
  .ew-quotes { columns: 1; }
  .ew-stats { grid-template-columns: 1fr; gap: 28px; padding: 36px 26px; }
  .ew-stats .item:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 22px; }
  .ew-form-2 { grid-template-columns: 1fr; }
  .ew-footer-grid { grid-template-columns: 1fr; }
  .ew-trust { gap: 16px 22px; }
  .ew-newsletter, .ew-cta { padding: 32px 24px; }

  /* Newsletter : formulaire empilé pour éviter le débordement à droite */
  .ew-newsletter-form { flex-direction: column; }
  .ew-newsletter-form input { min-width: 0; }
  .ew-newsletter-form button { width: 100%; }
  .ew-nl-row { flex-direction: column; }
  .ew-nl-row .inf-input input { min-width: 0; }
  .ew-nl-row .inf-submit, .ew-nl-row .inf-submit input { width: 100%; }

  /* Concept : étiquettes sous l'illustration plutôt qu'en surimpression */
  .ew-concept-visual { aspect-ratio: auto; overflow: hidden; display: flex; flex-direction: column; }
  .ew-concept-visual svg { position: static; height: auto; }
  .ew-float-cap { position: static; align-self: flex-start; margin: 12px 0 0 14px; }
  .ew-float-card { position: static; align-self: stretch; margin: 8px 14px 14px; animation: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* =====================  bouton bascule de thème  ===================== */
.ew-nav-end { display: flex; align-items: center; gap: 14px; }
.ew-theme-toggle {
  flex: none; width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}
.ew-theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.ew-theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ew-theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .ew-theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .ew-theme-toggle .ic-moon { display: none; }

/* =====================  mode sombre  ===================== */
[data-theme="dark"] {
  --page: #0B1020;
  --surface: #161C2E;
  --text: #E7EBF4;
  --ink-2: #C4CBDB;
  --muted: #9AA3B7;
  --muted-2: #7C8599;
  --muted-3: #6C7488;
  --line: #262E47;
  --line-2: #2D3654;
  --bg-alt: #11172A;
  --bg-blue: rgba(2,91,255,.15);
  --bg-green: rgba(26,182,85,.15);
  --shadow-card: 0 18px 40px rgba(0,0,0,.45);
  --shadow-lift: 0 26px 56px rgba(0,0,0,.55);
}
/* surfaces translucides du header / menu mobile */
[data-theme="dark"] .ew-header { background: rgba(11,16,32,.72); }
[data-theme="dark"] .ew-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.5); }
[data-theme="dark"] .ew-mobile-menu.open { background: rgba(15,20,36,.97); }
/* fonds dégradés clairs -> sombres */
[data-theme="dark"] .ew-hero { background: linear-gradient(180deg,#0E1426 0%,#0B1020 62%); }
[data-theme="dark"] .ew-page-hero { background: linear-gradient(180deg,#0E1426 0%,#0B1020 100%); }
/* textes définis explicitement en navy -> texte clair */
[data-theme="dark"] .ew-brand-text,
[data-theme="dark"] .ew-burger,
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .ew-mobile-menu a,
[data-theme="dark"] .ew-faq-q span.q,
[data-theme="dark"] .ew-form-card,
[data-theme="dark"] .ew-navlinks a:hover,
[data-theme="dark"] .ew-navlinks a.active { color: var(--text); }
/* couleurs ponctuelles en dur à corriger */
[data-theme="dark"] .ew-quote p { color: var(--ink-2); }
[data-theme="dark"] .ew-step .n { color: #3A4570; }
[data-theme="dark"] .ew-card:hover { border-color: var(--line-2); }
[data-theme="dark"] .ew-faq-item.open { border-color: rgba(2,91,255,.55); }
[data-theme="dark"] .ew-diagram-foot { border-top-color: var(--line); }
[data-theme="dark"] .ew-node--prod, [data-theme="dark"] .ew-node--cons { border-color: var(--line); }
[data-theme="dark"] .ew-trust .sep { background: var(--line); }
[data-theme="dark"] .ew-breadcrumb .sep { color: var(--muted-3); }
[data-theme="dark"] .ew-float-cap { background: rgba(22,28,46,.78); }
/* champs de formulaire : fond plus sombre que la carte + texte clair */
[data-theme="dark"] .ew-field input,
[data-theme="dark"] .ew-field textarea,
[data-theme="dark"] .ew-form-2 input { background: #1E2640; color: var(--text); border-color: #38426A; }
[data-theme="dark"] .ew-newsletter-form { background: #1E2640; border: 1px solid #38426A; }
[data-theme="dark"] .ew-newsletter-form input { color: var(--text); }
[data-theme="dark"] .ew-nl-row { background: #1E2640; border: 1px solid #38426A; }
[data-theme="dark"] .ew-nl-row .inf-input input { color: var(--text); }
