/* =====================================================================
   Kelios Energy : feuille de styles unique
   Code couleur énergétique : ambre = production solaire,
   courant (cyan) = stockage et consommation, gris = réseau électrique.
   ===================================================================== */

:root {
  color-scheme: light;
  --bg: #f1f4f9;
  --bg-alt: #e6ecf5;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --line: #d2dbe9;
  --line-strong: #aebbd1;
  --text: #0a1630;
  --text-2: #43526f;
  --text-3: #55617c;
  --solar: #f4a41c;
  --solar-ink: #8a4f00;
  --solar-soft: #fff0d2;
  --current: #14c3ae;
  --current-ink: #00705f;
  --current-soft: #d8f6f0;
  --grid: #8a97b2;
  --danger: #b8321c;
  --ok: #0b7650;
  --focus: #0a63e8;
  --cell: rgba(10, 22, 48, 0.055);
  --shadow: 0 1px 0 rgba(10, 22, 48, 0.04), 0 18px 40px -24px rgba(10, 22, 48, 0.35);
  --header-bg: rgba(241, 244, 249, 0.86);

  /* Écran de supervision : toujours sombre, comme l'appli */
  --night: #0b1836;
  --night-2: #12224a;
  --night-line: #263a6b;
  --night-text: #eaf0fa;
  --night-text-2: #a3b3d3;

  --font-display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: 16px;
  --maxw: 1240px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07102a;
    --bg-alt: #0a1634;
    --surface: #0f1c3d;
    --surface-2: #132449;
    --line: #22355f;
    --line-strong: #3a5084;
    --text: #eaf0fa;
    --text-2: #aab7d2;
    --text-3: #8b9aba;
    --solar: #ffb547;
    --solar-ink: #ffc56b;
    --solar-soft: rgba(255, 181, 71, 0.12);
    --current: #3be8cc;
    --current-ink: #5cefd7;
    --current-soft: rgba(59, 232, 204, 0.12);
    --grid: #8190b0;
    --danger: #ff8a73;
    --ok: #4be39a;
    --focus: #8ab8ff;
    --cell: rgba(150, 180, 255, 0.05);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(7, 16, 42, 0.84);
    --night: #0d1c40;
    --night-2: #142858;
    --night-line: #2b4380;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07102a;
  --bg-alt: #0a1634;
  --surface: #0f1c3d;
  --surface-2: #132449;
  --line: #22355f;
  --line-strong: #3a5084;
  --text: #eaf0fa;
  --text-2: #aab7d2;
  --text-3: #8b9aba;
  --solar: #ffb547;
  --solar-ink: #ffc56b;
  --solar-soft: rgba(255, 181, 71, 0.12);
  --current: #3be8cc;
  --current-ink: #5cefd7;
  --current-soft: rgba(59, 232, 204, 0.12);
  --grid: #8190b0;
  --danger: #ff8a73;
  --ok: #4be39a;
  --focus: #8ab8ff;
  --cell: rgba(150, 180, 255, 0.05);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(7, 16, 42, 0.84);
  --night: #0d1c40;
  --night-2: #142858;
  --night-line: #2b4380;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--solar); color: #0a1630; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--solar); color: #0a1630; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }


/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-sm);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--solar { --btn-bg: var(--solar); --btn-fg: #0a1630; --btn-bd: var(--solar); }
.btn--solar:hover { --btn-bg: #ffc062; border-color: #ffc062; }
.btn--wa { --btn-bg: #1f9d55; --btn-fg: #fff; --btn-bd: #1f9d55; font-size: 1.1875rem; font-weight: 700; } /* blanc sur vert : 3,5:1, donc grand texte gras (charte : 19 px minimum) */
.btn--wa:hover { --btn-bg: #188247; border-color: #188247; }
.btn--ghost { --btn-bg: transparent; }
.btn--sm { min-height: 44px; padding: 8px 14px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; }
.brand .brand__logo { width: auto; height: 28px; aspect-ratio: 7718 / 1140; color: var(--text); fill: currentColor; --logo-sun: var(--solar); --logo-bolt: #00705f; --logo-energy: #00705f; }
.site-footer .brand .brand__logo { height: 32px; }
@media (min-width: 560px) { .brand .brand__logo { height: 32px; } .site-footer .brand .brand__logo { height: 36px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .brand__logo { --logo-energy: #3be8cc; } }
:root[data-theme="dark"] .brand .brand__logo { --logo-energy: #3be8cc; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 8px 12px; border-radius: var(--r-xs); text-decoration: none; font-weight: 500; color: var(--text-2); font-size: 0.975rem; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--solar); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.burger { display: none; }
.header-cta { display: none; }
@media (min-width: 1100px) { .header-cta { display: inline-flex; } }
@media (max-width: 1023px) {
  .burger { display: inline-grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; display: none; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: 12px var(--gutter) 20px; gap: 2px; }
  .nav__link { padding: 14px 12px; font-size: 1.125rem; color: var(--text); }
  .nav__cta { padding: 0 var(--gutter) 20px; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 1024px) { .nav__cta { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--split { max-width: none; display: grid; gap: 16px 48px; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; } }
.h2 { font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 700; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--text-2); max-width: 62ch; margin-top: 16px; }
.section-head .lede { margin-bottom: 0; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.source { font-size: 0.8125rem; color: var(--text-3); }

/* ---------- Hero ---------- */






@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--current) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }








/* Carte de supervision */























@keyframes flow { to { stroke-dashoffset: -14; } }








/* ---------- Contexte : bilan offre / demande ---------- */
















/* ---------- Avantages ---------- */












/* ---------- Cas d'usage ---------- */



.use { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color 0.15s; }
.use:hover { border-color: var(--current); text-decoration: none; }






/* ---------- Kits ---------- */



.kits { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .kits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .kits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kit { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }































/* ---------- Étapes ---------- */
.steps { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 0; max-width: 720px; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, var(--current) 0 4px, transparent 4px 14px);
  background-size: 3px 14px;
}
.steps.is-in::before { animation: flow-v 0.9s linear infinite; }
@keyframes flow-v { to { background-position: 0 14px; } }
.step { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step__n { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--current); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text); }
.section--alt .step__n { background: var(--bg-alt); }
.step__title { font-size: 1.2rem; font-weight: 700; padding-top: 9px; }
.step__time { display: inline-block; margin-top: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--solar-ink); background: var(--solar-soft); padding: 2px 9px; border-radius: 999px; }
.step__text { color: var(--text-2); margin: 8px 0 0; font-size: 0.975rem; }
@media (min-width: 1100px) {
  .steps { max-width: none; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  /* La ligne s'arrête au centre du dernier cercle : 6 colonnes, 5 interstices de 20 px. */
  .steps::before { left: 23px; right: calc((100% - 100px) / 6 - 23px); top: 22px; bottom: auto; width: auto; height: 3px; background: repeating-linear-gradient(90deg, var(--current) 0 4px, transparent 4px 14px); background-size: 14px 3px; }
  .steps.is-in::before { animation: flow-h 0.9s linear infinite; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 0; align-content: start; }
  .step__title { padding-top: 0; }
}
@keyframes flow-h { to { background-position: 14px 0; } }

/* ---------- Paiement ---------- */
.pay { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .pay { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.plans { display: grid; gap: 12px; margin: 28px 0 24px; padding: 0; list-style: none; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.plan__name { font-weight: 700; font-family: var(--font-display); font-size: 1rem; }
.plan__fee { font-weight: 700; color: var(--solar-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan__text { grid-column: 1 / -1; color: var(--text-2); font-size: 0.9375rem; margin: 0; }
.legal-note { font-size: 0.875rem; color: var(--text-2); border-left: 3px solid var(--solar); padding-left: 12px; }
.receipt { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 22px; box-shadow: var(--shadow); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 8px -2px, transparent 8px, var(--surface) 8.5px) 0 0 / 16px 10px repeat-x; }
.receipt__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 2px; }
.receipt__rows { margin: 18px 0 0; display: grid; gap: 0; }
.receipt__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line-strong); font-variant-numeric: tabular-nums; }
.receipt__rows dt { color: var(--text-2); }
.receipt__rows dd { margin: 0; font-weight: 700; text-align: right; }
.receipt__rows .big dd { font-family: var(--font-display); font-size: 1.15rem; }
.receipt__or { text-align: center; font-size: 0.8125rem; color: var(--text-3); padding: 8px 0; margin: 0; border-top: 1px dashed var(--line-strong); }
.receipt__rows--next { margin-top: 0; }

/* ---------- Aperçus galerie / blog ---------- */
.peek { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .peek { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo-card { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.photo-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-card figcaption { padding: 12px 14px 14px; font-size: 0.9375rem; }
.photo-card figcaption strong { display: block; font-weight: 600; }
.photo-card figcaption span { color: var(--text-3); font-size: 0.8125rem; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; height: 100%; }
.post-card:hover { border-color: var(--solar); text-decoration: none; }
.post-card__meta { font-size: 0.8125rem; color: var(--text-3); display: flex; gap: 12px; flex-wrap: wrap; }
.post-card__title { font-size: 1.125rem; font-weight: 700; line-height: 1.15; }
.post-card__excerpt { color: var(--text-2); font-size: 0.9375rem; margin: 0; }
.post-card__more { margin-top: auto; font-weight: 600; font-size: 0.9375rem; color: var(--solar-ink); }
.more-link { display: inline-flex; margin-top: 24px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.2s; }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details[open] summary .pm { border-color: var(--current); color: var(--current-ink); }
.faq__a { padding: 0 4px 22px; color: var(--text-2); max-width: 68ch; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Bandeau final ---------- */
.cta-band { background: var(--night); color: var(--night-text); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; gap: 24px; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(150,180,255,.07) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(150,180,255,.07) 1.5px, transparent 1.5px); background-size: 34px 52px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }
.cta-band h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem); font-weight: 700; }
.cta-band p { color: var(--night-text-2); margin: 10px 0 0; max-width: 54ch; }
.cta-band .btn--ghost { --btn-fg: var(--night-text); --btn-bd: var(--night-line); }
.cta-band .btn--ghost:hover { border-color: var(--night-text); }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-sig { color: var(--text-2); margin-top: 12px; max-width: 32ch; }
.footer-h { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 0.8125rem; }
.countries { display: grid; gap: 8px; }
.countries li { display: flex; justify-content: space-between; gap: 8px; }
.countries li a { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.countries li span:last-child { color: var(--text-3); font-size: 0.8125rem; text-align: right; }

/* ---------- En-tête de page interne ---------- */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
.page-head .lede { margin-top: 14px; }
.crumbs { font-size: 0.875rem; color: var(--text-3); margin-bottom: 16px; }
.crumbs a { color: var(--text-2); }

/* =====================================================================
   DEVIS
   ===================================================================== */












.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); }
.panel[hidden] { display: none; }


.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field > label, .legend { font-weight: 600; font-size: 0.975rem; }
.legend { padding: 0; margin-bottom: 10px; }
.hint { font-size: 0.8125rem; color: var(--text-3); }
fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface-2); color: var(--text);
}
.input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }





.input-suffix { position: relative; }
.input-suffix .input { padding-right: 64px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.8125rem; color: var(--text-3); pointer-events: none; }
.choices { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); transition: border-color 0.15s, background-color 0.15s; }
.choice__box svg { width: 30px; height: 30px; flex: none; color: var(--current-ink); }
.choice__t { font-weight: 700; display: block; }

.choice input:checked + .choice__box { border-color: var(--solar); background: var(--solar-soft); box-shadow: inset 0 0 0 1px var(--solar); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--focus); outline-offset: 2px; }














/* Upload */
.drop { display: grid; place-items: center; gap: 6px; text-align: center; padding: 22px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--solar); }
.drop svg { width: 30px; height: 30px; color: var(--text-3); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.thumb { position: relative; width: 84px; }
.thumb__img { width: 84px; height: 84px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 0.8125rem; color: var(--danger); }
.thumb__name { display: block; font-size: 0.6875rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.thumb__rm { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; font-size: 1rem; line-height: 1; }
.field-error { color: var(--danger); font-size: 0.875rem; font-weight: 500; }
.field-error:empty { display: none; }

/* Appareils */


.app { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }















.total { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.total dt { font-size: 0.8125rem; color: var(--text-2); }
.total dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--solar); }








/* Estimation en direct */




















/* Résultat */


















.box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; background: var(--surface); }
.box h3 { font-size: 1.1rem; margin-bottom: 10px; }





.status { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); font-size: 0.975rem; display: flex; gap: 12px; align-items: flex-start; }
.status[hidden] { display: none; }
.status--ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); border: 1px solid var(--ok); }
.status--warn { background: var(--solar-soft); border: 1px solid var(--solar); }
.status--err { background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid var(--danger); }
.status--load { background: var(--surface-2); border: 1px solid var(--line); }
.spinner { width: 20px; height: 20px; flex: none; border: 2.5px solid var(--line-strong); border-top-color: var(--solar); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* =====================================================================
   GALERIE
   ===================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.filter { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 0.9375rem; color: var(--text-2); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter .count { font-weight: 500; opacity: 0.7; margin-left: 4px; }
.masonry { columns: 2 160px; column-gap: 14px; }
@media (min-width: 900px) { .masonry { columns: 3 240px; column-gap: 18px; } }
@media (min-width: 1200px) { .masonry { columns: 4 240px; } }
.m-item { break-inside: avoid; margin: 0 0 14px; }
@media (min-width: 900px) { .m-item { margin-bottom: 18px; } }
.m-item[hidden] { display: none; }
.m-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.m-btn img { width: 100%; transition: transform 0.4s ease; }
.m-btn:hover img { transform: scale(1.03); }
.m-cap { padding: 10px 12px 12px; display: grid; gap: 2px; }
.m-cap strong { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.m-cap span { font-size: 0.75rem; color: var(--text-3); }
.m-tag { justify-self: start; font-size: 0.6875rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--current-soft); color: var(--current-ink); margin-bottom: 4px; }
.soon { display: grid; gap: 12px; padding: 0 0 16px; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); background: var(--surface); overflow: hidden; text-decoration: none; }
.soon:hover { border-color: var(--solar); text-decoration: none; }
.soon__art { aspect-ratio: 4 / 3; background: var(--night); position: relative; overflow: hidden; }
.soon__art svg { width: 100%; height: 100%; }
.soon__t { padding: 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.soon__d { padding: 0 14px; font-size: 0.875rem; color: var(--text-2); margin: -6px 0 0; }
.soon__cta { padding: 0 14px; font-weight: 600; color: var(--solar-ink); font-size: 0.9375rem; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; color: #eaf0fa; }
.lightbox::backdrop { background: rgba(4, 9, 24, 0.94); }
.lb { width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; font-size: 0.875rem; color: #a3b3d3; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 8px; min-height: 0; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lb__cap { padding: 12px 16px 20px; text-align: center; }
.lb__cap strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.lb__cap span { color: #a3b3d3; font-size: 0.875rem; }
.lb__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(13,28,64,.8); color: #fff; display: grid; place-items: center; }
.lb__btn svg { width: 22px; height: 22px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 12px; } .lb__next { right: 12px; }
@media (max-width: 640px) { .lb__prev, .lb__next { top: auto; bottom: 8px; transform: none; } }

/* =====================================================================
   BLOG
   ===================================================================== */
.posts { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.posts--3 { }
@media (min-width: 1024px) { .posts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.article-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } }
.article-head { padding-block: clamp(32px, 5vw, 64px) 24px; max-width: 900px; }
.article-head h1 { font-size: clamp(1.625rem, 1.2rem + 2vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--text-3); font-size: 0.9375rem; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; background: var(--surface); }
.toc__h { font-family: var(--font-display); font-weight: 700; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 0.9375rem; color: var(--text-2); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--text); }
@media (max-width: 1023px) { .toc { position: static; } }
.prose { max-width: 68ch; font-size: 1.0938rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 700; margin: 2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.9375rem; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--line-strong); font-family: var(--font-display); font-weight: 700; }


.prose .calc { padding: 18px 20px; border-radius: var(--r-md); background: var(--night); color: var(--night-text); margin: 1.4em 0; font-variant-numeric: tabular-nums; }
.prose .calc p { margin: 0 0 0.5em; }
.prose .calc p:last-child { margin: 0; }
.prose .calc strong { color: #ffb547; }
.article-cta { margin: 48px 0 0; padding: 26px; border-radius: var(--r-lg); background: var(--night); color: var(--night-text); display: grid; gap: 14px; }
.article-cta h2 { font-size: 1.5rem; margin: 0; color: var(--night-text); }
.article-cta p { color: var(--night-text-2); margin: 0; }
.related { margin-top: 56px; }
.related h2 { font-size: 1.4rem; margin-bottom: 16px; }

/* ---------- Apparition au défilement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  
  
}

#quote-form { min-width: 0; }
