/* =========================================================
   Novalith.energy — feuille de style
   ========================================================= */

:root {
  --ink: #0e141b;
  --ink-2: #16202b;
  --ink-3: #223040;
  --paper: #f5f2eb;
  --paper-2: #ebe5d8;
  --white: #fffdf8;
  --sun: #ffd21f;
  --sun-deep: #e0b400;
  --green: #1f9d55;
  --red: #c2410c;
  --muted: #5b6470;
  --muted-light: #a9b2bd;
  --line: rgba(14, 20, 27, .14);
  --line-light: rgba(255, 253, 248, .16);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Pages éditoriales : réalisations et présentation */
.submain { padding-top: 78px; }
.subhero { background: var(--ink); color: var(--white); padding: 110px 0 100px; }
.subhero .label, .subhero h1 { color: var(--white); }
.subhero h1 { font-size: clamp(46px, 7vw, 92px); line-height: .98; letter-spacing: -.055em; margin: 22px 0 28px; max-width: 900px; }
.subhero h1 em { color: var(--sun); font-style: normal; }
.sublead { color: #c3cbd3; max-width: 620px; font-size: 19px; line-height: 1.6; }
.projects-page { background: #f3f4f6; padding: 86px 0; }
.project-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.project-page-card { background: var(--white); border: 1px solid #d9dde2; }
.project-page-card img { display: block; width: 100%; height: 340px; object-fit: contain; background: #e8ebee; }
.project-page-card > div { padding: 28px 30px 32px; }
.project-page-card h2 { color: var(--ink); font-size: 30px; margin: 13px 0 12px; letter-spacing: -.035em; }
.project-page-card p:not(.label) { color: var(--muted); line-height: 1.6; }
.project-page-card ul { border-top: 1px solid #e0e3e6; margin: 23px 0 0; padding: 18px 0 0 18px; color: var(--ink); line-height: 1.9; }
.sub-cta, .about-contact { background: var(--sun); padding: 84px 0; }
.sub-cta h2, .about-contact h2 { max-width: 700px; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; margin: 15px 0 28px; }
.about-story { padding: 100px 0; }
.about-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-story h2 { font-size: clamp(35px, 4vw, 56px); line-height: 1.02; letter-spacing: -.045em; margin: 15px 0; }
.about-story-grid > div:last-child { color: var(--muted); font-size: 18px; line-height: 1.7; }
.values { background: #f3f4f6; padding: 88px 0 100px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; }
.value-grid article { padding: 10px 34px 10px 0; border-right: 1px solid #ccd2d8; margin-right: 34px; }
.value-grid article:last-child { border: 0; margin: 0; }
.value-grid span { font-family: var(--mono); color: #9a7f00; font-size: 13px; }
.value-grid h2 { font-size: 28px; margin: 26px 0 12px; }
.value-grid p, .about-contact p:not(.label) { color: var(--muted); line-height: 1.6; }
.out-month > div:nth-child(2), .out-month > div:nth-child(3) { display: none; }
@media (max-width: 760px) {
  .submain { padding-top: 68px; }
  .subhero { padding: 72px 0 68px; }
  .project-page-grid, .about-story-grid, .value-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-page-card img { height: 260px; }
  .project-page-card > div { padding: 23px; }
  .about-story { padding: 70px 0; }
  .about-story-grid { gap: 28px; }
  .value-grid article { border-right: 0; border-bottom: 1px solid #ccd2d8; margin: 0; padding: 22px 0; }
}

@media (max-width: 1020px) {
  .subpage .top { flex-wrap: wrap; gap: 10px 18px; }
  .subpage .nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 22px; padding: 3px 0 8px; font-size: 13px; white-space: nowrap; }
  .subpage .top-phone { display: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--sun); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 128px) 0; }

/* ---------- Typo ---------- */
h1, h2 {
  font-variation-settings: "wdth" 112;
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
}
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.hl { color: var(--sun-deep); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.label-sun { color: var(--sun); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 15px 26px;
  font-size: 16px; font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px rgba(255, 210, 31, .25); }
.btn-sun:hover { background: #ffe066; box-shadow: 0 14px 30px rgba(255, 210, 31, .35); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(255, 253, 248, .5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 253, 248, .08); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; box-shadow: none; }
.btn-block { width: 100%; justify-content: space-between; }

/* ---------- En-tête ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 78px; padding: 0 var(--gutter);
  color: var(--white);
  transition: background .3s, color .3s, box-shadow .3s, height .3s;
}
.top.is-solid { background: rgba(245, 242, 235, .95); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 38px; width: auto; }
.logo-on-light { display: none; }
.top.is-solid .logo-on-dark { display: none; }
.top.is-solid .logo-on-light { display: block; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--sun); transition: right .3s var(--ease); }
.nav a:hover::after { right: 0; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.top-phone { text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.15; text-align: right; }
.top-phone span { display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-nav { position: fixed; inset: 68px 0 auto; z-index: 49; background: var(--paper); padding: 12px var(--gutter) 28px; display: grid; gap: 4px; box-shadow: 0 20px 40px rgba(14, 20, 27, .15); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 600; }
.mobile-nav .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 960px);
  display: flex; align-items: center;
  color: var(--white); background: var(--ink);
  padding: 130px 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 60% 40%; animation: slowzoom 24s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 20, 27, .95) 0%, rgba(14, 20, 27, .82) 42%, rgba(14, 20, 27, .35) 75%),
    linear-gradient(0deg, rgba(14, 20, 27, .85) 0%, rgba(14, 20, 27, 0) 40%),
    linear-gradient(180deg, rgba(14, 20, 27, .6) 0%, rgba(14, 20, 27, 0) 22%);
}
.hero-inner {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 440px); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #dfe3e8; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(255, 210, 31, .2); animation: pulse 2.6s ease-in-out infinite; }
.hero h1 { font-size: clamp(42px, 6vw, 88px); max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--sun); }
.lead { max-width: 580px; margin-top: 26px; font-size: clamp(17px, 1.4vw, 20px); color: #d4d9df; }
.lead strong { color: var(--white); font-weight: 700; }
.hero-points { display: grid; gap: 10px; margin-top: 26px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16.5px; }
.hero-points li::before, .contact-promise li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230e141b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.quick {
  background: var(--white); color: var(--ink);
  padding: 30px 30px 24px; border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  position: relative;
}
.quick::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--sun); border-radius: 4px 4px 0 0; }
.quick-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quick-title { font-size: 25px; line-height: 1.15; margin: 8px 0 20px; }
.quick-label { font-size: 13.5px; font-weight: 600; color: var(--muted); display: block; }
.quick-bill { display: block; font-size: 30px; font-weight: 750; font-variation-settings: "wdth" 110; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.quick-res { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin: 18px 0; border: 1px solid var(--line); }
.quick-res div { background: var(--paper); padding: 14px 14px 12px; }
.quick-res span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.quick-res strong { display: block; font-size: 22px; font-weight: 750; font-variation-settings: "wdth" 108; color: var(--green); font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 4px; }
.quick-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- Arguments clés ---------- */
.keys { background: var(--sun); }
.keys ul { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); }
.keys li { padding: 28px 24px 30px; border-left: 1px solid rgba(14, 20, 27, .2); display: grid; gap: 2px; }
.keys li:first-child { border-left: 0; padding-left: 0; }
.keys strong { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -.03em; line-height: 1.05; }
.keys sup { font-size: .5em; }
.keys span { font-size: 15px; font-weight: 600; }

/* ---------- Titres de section ---------- */
.head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 980px; }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }
.head-center .label { justify-content: center; }
.head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.head-split > div { max-width: 760px; }
.head-split > p { max-width: 420px; color: var(--muted); font-size: 17px; }

/* ---------- Avant / après ---------- */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px; }
.vs-card { padding: clamp(28px, 3.5vw, 44px); border-radius: 4px; }
.vs-before { background: var(--paper-2); color: var(--ink); }
.vs-after { background: var(--ink); color: var(--white); box-shadow: 0 24px 50px rgba(14, 20, 27, .18); }
.vs-tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; display: inline-block; padding: 6px 10px; border: 1px solid currentColor; margin-bottom: 22px; }
.vs-after .vs-tag { color: var(--sun); }
.vs-card h3 { font-size: clamp(24px, 2.3vw, 30px); font-variation-settings: "wdth" 110; font-weight: 750; margin-bottom: 22px; }
.vs-card li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.45; }
.vs-after li { border-color: var(--line-light); }
.vs-before li::before { content: "✕"; color: var(--red); font-weight: 700; flex: 0 0 18px; }
.vs-after li::before { content: "✓"; color: var(--sun); font-weight: 700; flex: 0 0 18px; }
.vs-arrow { align-self: center; font-size: 36px; color: var(--sun-deep); font-weight: 700; }

/* ---------- Financement ---------- */
.money { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.money::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 85% 0%, #000 0%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 85% 0%, #000 0%, transparent 60%);
}
.money .head-split > p { color: var(--muted-light); }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.phases li { background: var(--ink-2); border: 1px solid var(--line-light); padding: clamp(26px, 3vw, 38px); border-radius: 4px; position: relative; transition: transform .3s var(--ease), border-color .3s; }
.phases li:hover { transform: translateY(-4px); border-color: rgba(255, 210, 31, .5); }
.ph-when { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); }
.ph-big { display: block; font-size: clamp(44px, 4.8vw, 68px); font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -.04em; line-height: 1; color: var(--sun); margin: 20px 0 8px; }
.ph-big small { display: block; font-size: .36em; letter-spacing: -.01em; font-weight: 700; margin-bottom: 4px; }
.phases h3 { font-size: 21px; margin-bottom: 14px; }
.phases p { color: var(--muted-light); font-size: 15.5px; }
.phases .ph-win { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.ph-win .ph-when, .phases .ph-win p { color: #3d3a2a; }
.ph-win .ph-big { color: var(--ink); }
.money-cta { margin-top: 44px; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; text-align: center; font-size: 18px; font-weight: 600; }

/* ---------- Simulateur ---------- */
.sim { background: var(--paper-2); }
.sim-grid { display: grid; grid-template-columns: 1fr minmax(340px, .85fr); border: 1px solid var(--ink); background: var(--white); border-radius: 4px; overflow: hidden; }
.sim-form { padding: clamp(24px, 3.5vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; align-content: start; }
.field { display: grid; gap: 8px; }
.field > label, .field-lbl { font-size: 13.5px; font-weight: 650; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field output { font-size: 17px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.field-range { grid-column: 1 / -1; }
.field select, .field input:not([type="range"]):not([type="radio"]), .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c7c1b4; background: var(--white); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e141b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field select:focus, .field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 210, 31, .55); }
.field textarea { resize: vertical; min-height: 90px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c7c1b4; border-radius: var(--radius); min-height: 50px; }
.seg label { position: relative; display: grid; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; padding: 8px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--sun-deep); outline-offset: -3px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), #d7d1c4 var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 3px; background: #d7d1c4; }
input[type="range"]::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10.5px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }

.chart-box { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
.chart-title { font-size: 13.5px; font-weight: 650; margin-bottom: 12px; }
.chart { width: 100%; height: 170px; overflow: visible; }
.chart .bar-pos { fill: var(--green); }
.chart .bar-loan { fill: var(--sun-deep); }
.chart .zero { stroke: var(--ink); stroke-width: 1; }
.chart .loan-end { stroke: var(--muted); stroke-dasharray: 3 4; stroke-width: 1; }
.chart-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px; }

.sim-out { background: var(--ink); color: var(--white); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; }
.out-k { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-light); }
.out-big { font-size: clamp(40px, 4.6vw, 62px); font-weight: 800; font-variation-settings: "wdth" 114; letter-spacing: -.03em; color: var(--sun); line-height: 1.05; margin-top: 8px; font-variant-numeric: tabular-nums; }
.out-sub { color: var(--muted-light); font-size: 14.5px; margin-top: 6px; }
.out-month { margin: 24px 0 8px; border: 1px solid var(--line-light); border-radius: 4px; overflow: hidden; }
.out-month > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--line-light); font-size: 15px; }
.out-month > div:first-child { border-top: 0; }
.out-month strong { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.out-net { background: rgba(31, 157, 85, .16); }
.out-net strong { color: #4ade80; font-size: 22px; }
.out-net.is-neg { background: rgba(255, 210, 31, .1); }
.out-net.is-neg strong { color: var(--sun); }
.out-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.out-grid > div { padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.out-grid > div:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line-light); }
.out-grid > div:nth-child(even) { padding-left: 16px; }
.out-v { font-size: 20px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sim-out .btn { margin-top: 28px; }
.sim-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); max-width: 980px; }

/* ---------- Clé en main ---------- */
.turnkey { background: var(--white); }
.tk-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.tk-intro { position: sticky; top: 110px; }
.tk-intro > p:not(.label) { margin-top: 22px; color: var(--muted); max-width: 460px; font-size: 17.5px; }
.tk-photo { margin-top: 34px; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 2; }
.tk-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tk-photo:hover img { transform: scale(1.04); }
.tk-list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.tk-list li:first-child { border-top: 0; padding-top: 4px; }
.tk-n { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--sun); font-family: var(--mono); font-weight: 500; font-size: 14px; }
.tk-list h3 { font-size: 22px; margin-bottom: 8px; }
.tk-list p { color: var(--muted); }

/* ---------- Secteurs ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.sector-grid article { padding: 30px 26px 34px 0; border-right: 1px solid var(--line); position: relative; }
.sector-grid article + article { padding-left: 26px; }
.sector-grid article:last-child { border-right: 0; }
.sector-grid article::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 3px; background: var(--sun); transition: width .4s var(--ease); }
.sector-grid article:hover::before { width: 100%; }
.sec-i { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.sector-grid h3 { font-size: 24px; margin: 34px 0 12px; font-variation-settings: "wdth" 108; }
.sector-grid p { color: var(--muted); font-size: 15.5px; }

/* ---------- Bandeau CTA ---------- */
.band { background: var(--sun); padding: clamp(40px, 5vw, 60px) 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band p { font-size: clamp(24px, 2.8vw, 36px); font-weight: 750; font-variation-settings: "wdth" 110; letter-spacing: -.02em; line-height: 1.15; max-width: 760px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-grid header { position: sticky; top: 110px; }
.faq h2 { font-size: clamp(30px, 3.4vw, 46px); }
.faq-side { margin-top: 24px; color: var(--muted); }
.faq-side a { font-weight: 650; text-underline-offset: 4px; text-decoration-color: var(--sun-deep); text-decoration-thickness: 2px; color: var(--ink); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-size: 19px; font-weight: 650; position: relative; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--muted); max-width: 720px; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); }
.contact .label { color: var(--sun); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-copy > p:not(.label) { margin-top: 22px; max-width: 480px; font-size: 18px; color: #d4d9df; }
.contact-promise { display: grid; gap: 12px; margin-top: 30px; }
.contact-promise li { display: flex; gap: 12px; align-items: center; font-weight: 650; font-size: 17px; }
.contact-lines { margin-top: 40px; border-top: 1px solid var(--line-light); }
.contact-lines li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-light); align-items: baseline; }
.contact-lines span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-light); }
.contact-lines a, .contact-lines p { font-weight: 650; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--sun); }
.lead-form { background: var(--white); color: var(--ink); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 16px; border-radius: 4px; box-shadow: 14px 14px 0 var(--sun); }
.form-title { font-size: 26px; font-weight: 750; font-variation-settings: "wdth" 110; letter-spacing: -.02em; margin-bottom: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.form-err { color: #b3261e; font-size: 14px; font-weight: 600; }
.form-err:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn-dark { flex: 1 1 240px; justify-content: space-between; background: #1faa59; }
.form-actions .btn-dark:hover { background: #178a47; }
.form-legal { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-legal a { color: var(--ink); }

/* ---------- Pied de page ---------- */
.foot { background: #090d12; color: var(--muted-light); padding: 72px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.logo-light { margin-bottom: 20px; }
.foot-grid p { font-size: 15px; max-width: 340px; }
.foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.foot a { text-decoration: none; }
.foot nav a:hover, .foot-contact a:hover { color: var(--sun); }
.foot-contact { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 13px; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); transform: translateY(120px); transition: transform .4s var(--ease); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float.is-visible { transform: none; }

.mbar { display: none; }

/* ---------- Animations ---------- */
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 210, 31, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.quick { animation: rise 1s .35s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .top-phone { display: none; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid article:nth-child(2) { border-right: 0; }
  .sector-grid article:nth-child(3) { padding-left: 0; }
  .sector-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: block; }
  .top .btn-sm { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .quick { max-width: 520px; }
  .keys ul { grid-template-columns: 1fr 1fr; }
  .keys li:nth-child(3) { border-left: 0; padding-left: 0; }
  .keys li:nth-child(n+3) { border-top: 1px solid rgba(14, 20, 27, .2); }
  .vs { grid-template-columns: 1fr; }
  .vs-arrow { transform: rotate(90deg); justify-self: center; }
  .phases { grid-template-columns: 1fr; }
  .tk-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .tk-intro, .faq-grid header { position: static; }
  .head-split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sim-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 58px; }
  .top, .top.is-solid { height: 64px; }
  .mobile-nav { top: 64px; }
  .logo-img { height: 30px; }
  .hero { padding-top: 100px; min-height: auto; }
  .hero::before { background: linear-gradient(0deg, rgba(14, 20, 27, .97) 35%, rgba(14, 20, 27, .65) 100%); }
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
  .quick { padding: 26px 20px 20px; }
  .keys li { padding: 20px 14px 22px; }
  .keys li:nth-child(odd) { padding-left: 0; }
  .keys span { font-size: 14px; }
  .sim-form { grid-template-columns: 1fr; }
  .out-month > div { font-size: 14px; padding: 12px 14px; }
  .sector-grid { grid-template-columns: 1fr; }
  .sector-grid article, .sector-grid article + article { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .sector-grid article:first-child { border-top: 0; }
  .sector-grid h3 { margin-top: 14px; }
  .band-inner .btn { width: 100%; justify-content: space-between; }
  .row { grid-template-columns: 1fr; }
  .lead-form { box-shadow: 8px 8px 0 var(--sun); }
  .contact-lines li { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 17px; padding-right: 36px; }
  .faq-list details p { padding-right: 0; }
  .wa-float { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--ink); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
  }
  .mbar a { display: grid; place-items: center; min-height: 58px; text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--white); }
  .mbar-wa { background: #1faa59; }
  .mbar .mbar-cta { background: var(--sun); color: var(--ink); }
}

/* ---------- En-tête : logo Novalith.energy (plus large) ---------- */
.nav a, .top-phone, .top .btn-sm { white-space: nowrap; }
@media (max-width: 1500px) { .top-phone { display: none; } .nav { gap: clamp(14px, 1.6vw, 26px); } }
@media (max-width: 1180px) { .nav { font-size: 14px; } }

/* =========================================================
   Aération : plus d'espace, texte plus lisible
   ========================================================= */
body { font-size: 18px; line-height: 1.7; }
.section { padding: clamp(96px, 12vw, 176px) 0; }
.label { margin-bottom: 28px; }
h2 { line-height: 1.06; }
.head { margin-bottom: clamp(56px, 6vw, 88px); }
.head-split { gap: 80px; }
.head-split > p { font-size: 18px; line-height: 1.7; }

/* En-tête de la section Réalisations (n'avait pas de mise en page) */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; margin-bottom: clamp(56px, 6vw, 88px); }
.section-head > div { flex: 1 1 auto; max-width: 820px; }
.section-head > p { max-width: 420px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.projects-real .real-grid { gap: 32px; margin-top: 0; }
.projects-real .real-card > div { padding: 30px 32px 36px; }
.projects-real .real-card h3 { margin: 16px 0 12px; }
.projects-real .real-card p { font-size: 16px; line-height: 1.65; }

/* Hero */
.lead { margin-top: 32px; line-height: 1.65; }
.hero-ctas { margin-top: 44px; }
.quick { padding: 38px 36px 30px; }
.quick-title { margin-bottom: 26px; }
.quick-res { margin: 24px 0; }

/* Blocs */
.keys li { padding: 40px 28px 44px; }
.vs { gap: 32px; }
.vs-card { padding: clamp(32px, 4.5vw, 56px); }
.vs-card h3 { margin-bottom: 28px; }
.vs-card li { padding: 16px 0; }
.phases { gap: 28px; }
.phases li { padding: clamp(32px, 3.6vw, 48px); }
.phases p { font-size: 16.5px; line-height: 1.65; }
.money-cta { margin-top: 64px; }
.sim-form { gap: 28px 32px; padding: clamp(28px, 4vw, 52px); }
.sim-out { padding: clamp(28px, 4vw, 52px); }
.sim-note { margin-top: 24px; }
.tk-list li { padding: 36px 0; gap: 24px; }
.tk-list p { font-size: 17px; }
.sector-grid article { padding-top: 40px; padding-bottom: 44px; }
.sector-grid h3 { margin-top: 44px; }
.sector-grid p { font-size: 16.5px; line-height: 1.65; }
.band { padding: clamp(56px, 7vw, 92px) 0; }
.faq-list summary { padding-top: 30px; padding-bottom: 30px; }
.faq-list details p { padding-bottom: 32px; }
.contact-copy > p:not(.label) { margin-top: 28px; }
.contact-promise { gap: 16px; margin-top: 36px; }
.lead-form { gap: 20px; padding: clamp(28px, 4vw, 52px); }
.foot { padding: 100px 0 32px; }

@media (max-width: 1020px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .section { padding: 80px 0; }
  .head, .section-head { margin-bottom: 44px; }
  .keys li { padding: 26px 14px 28px; }
  .quick { padding: 28px 22px 22px; }
  .vs-card, .phases li { padding: 28px 24px; }
  .projects-real .real-card > div { padding: 24px 22px 28px; }
  .tk-list li { padding: 28px 0; }
}
