/* Police Manrope hébergée sur le serveur (aucun appel à Google Fonts) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/manrope-latin.woff2") format("woff2"); }

/* =========================================================
   Laderc Studio · Styles communs des pages intérieures
   (en-tête, pied de page, couleurs, typographie, boutons)
   ========================================================= */
:root {
  --nuit: #0B1F3A; --marine: #14305A; --acier: #2F5D8C; --brume: #E8EEF5; --cuivre: #C08A4D;
  --bg: #F8FAFC; --bg-alt: #EEF3F8; --surface: #FFFFFF; --ink: #0B1F3A; --ink-2: #4A5B73; --line: #D6DFEA;
  --accent: #C08A4D; --accent-text: #8A5A24; --link: #2F5D8C;
  --btn: #14305A; --btn-hover: #0B1F3A; --on-btn: #F8FAFC;
  --band: #0B1F3A; --on-band: #EEF2F7; --on-band-2: #A9B6C8;
  --logo-ink: #0B1F3A; --logo-accent: #C08A4D; --logo-ghost: .22;
  --ok: #2E7D5B; --err: #B03A2E; --err-bg: #FBECEA;
  --code-bg: #0E1B2E; --code-ink: #DCE6F2;
  --shadow: 0 1px 2px rgb(11 31 58 / .06), 0 12px 32px rgb(11 31 58 / .08);
  --f-ui: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-code: "SFMono-Regular", Menlo, Consolas, monospace;
  --r-1: 6px; --r-2: 12px; --r-3: 20px;
  --wrap: 1160px; --gutter: max(16px, env(safe-area-inset-left, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081629; --bg-alt: #0B1C33; --surface: #0E2240; --ink: #EEF2F7; --ink-2: #A9B6C8; --line: #23395A;
    --accent: #D39C5E; --accent-text: #D9A86F; --link: #8FB4DD;
    --btn: #D39C5E; --btn-hover: #E0AE74; --on-btn: #0B1F3A;
    --band: #050F1E; --logo-ink: #EEF2F7; --logo-accent: #D39C5E; --logo-ghost: .28;
    --ok: #6CC49A; --err: #F09A8C; --err-bg: #3A1D22;
    --code-bg: #050F1E; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081629; --bg-alt: #0B1C33; --surface: #0E2240; --ink: #EEF2F7; --ink-2: #A9B6C8; --line: #23395A;
  --accent: #D39C5E; --accent-text: #D9A86F; --link: #8FB4DD;
  --btn: #D39C5E; --btn-hover: #E0AE74; --on-btn: #0B1F3A;
  --band: #050F1E; --logo-ink: #EEF2F7; --logo-accent: #D39C5E; --logo-ghost: .28;
  --ok: #6CC49A; --err: #F09A8C; --err-bg: #3A1D22;
  --code-bg: #050F1E; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: var(--r-1); z-index: 100; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--f-ui); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 62ch; }
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec--alt { background: var(--bg-alt); }
.sec__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.todo { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9A3B2E; background: #FBE9E5; border-radius: 4px; padding: 2px 6px; vertical-align: middle; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--r-1); border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--btn); color: var(--on-btn); }
.btn--primary:hover { background: var(--btn-hover); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

/* Segments (boutons groupés) */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }


/* ---------- En-tête ---------- */
.head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; color: inherit; text-decoration: none; }
.logo svg { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav a:hover, .nav a[aria-current] { color: var(--accent-text); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: .9375rem; color: var(--on-btn); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-1); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
@media (max-width: 880px) {
  .burger { display: inline-flex; }
  .nav { position: absolute; inset: 72px 0 auto; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--gutter) 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Fil d'Ariane et introduction de page ---------- */
.crumbs { font-size: .8125rem; color: var(--ink-2); padding-top: 24px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.intro { padding-block: 28px clamp(32px, 5vw, 56px); display: grid; gap: 18px; justify-items: start; }

/* ---------- Scène de démonstration ---------- */
.stage-ctrls { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.stage-ctrls__grp { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.stage-ctrls__grp > span { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.stage-px { font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stage { background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--ink) 4%, transparent) 10px 11px), var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-3); padding: clamp(14px, 3vw, 32px) clamp(8px, 2vw, 24px); display: grid; justify-items: center; overflow: hidden; }
.frame { width: 100%; transition: max-width .45s cubic-bezier(.2,.8,.2,1); container-type: inline-size; }
.stage-note { margin-top: 12px; font-size: .875rem; color: var(--ink-2); }

/* ---------- Sous le capot ---------- */
.hood { display: grid; gap: 28px; }
.hood__item { display: grid; gap: 14px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.hood__item:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .hood__item { grid-template-columns: minmax(0, 1fr); } }
.hood__txt { display: grid; gap: 10px; }
.hood__txt p, .hood__txt li { color: var(--ink-2); font-size: 1rem; }
.hood__txt ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.hood__num { font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--accent-text); }
pre.code { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: var(--r-2); padding: 18px 20px; overflow-x: auto; font: .8125rem/1.6 var(--f-code); tab-size: 2; }
pre.code .c { color: #7F93AD; } pre.code .k { color: #E8B57B; } pre.code .s { color: #9ED7B5; } pre.code .t { color: #8FB4DD; }
code { font-family: var(--f-code); font-size: .875em; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
pre.code code { background: none; border: 0; padding: 0; font-size: inherit; }

.deliver { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; }
.deliver li { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); display: grid; gap: 4px; }
.deliver b { font-size: 1rem; } .deliver span { font-size: .9rem; color: var(--ink-2); }

/* ---------- Autres démonstrations et appel à l'action ---------- */
.others { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.others a { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.others a:hover { border-color: var(--ink); transform: translateY(-2px); }
.others small { font-size: .75rem; font-weight: 600; color: var(--accent-text); letter-spacing: .08em; text-transform: uppercase; }
.others b { font-size: 1.0625rem; } .others span { font-size: .9375rem; color: var(--ink-2); }
.others a[aria-current] { border-color: var(--accent); pointer-events: none; }
.cta { background: var(--band); color: var(--on-band); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; padding-block: clamp(40px, 6vw, 64px); }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 30ch; }
.cta p { color: var(--on-band-2); margin-top: 8px; }
.cta .btn--primary { background: #D39C5E; color: #0B1F3A; }
.cta .btn--primary:hover { background: #E0AE74; }

/* ---------- Pied de page ---------- */
.foot { background: var(--band); color: var(--on-band-2); border-top: 1px solid #1B3050; font-size: .875rem; --logo-ink: #EEF2F7; --logo-accent: #D39C5E; --logo-ghost: .28; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-block: 28px; }
.foot .logo svg { height: 32px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--on-band-2); }


/* ---------- Bandeau d'aperçu (visible seulement par l'administrateur connecté) ---------- */
.adminbar { background: #1D2B3F; color: #DCE3EC; font-size: .8125rem; }
.adminbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; padding-block: 8px; }
.adminbar b { color: #E8B57B; font-weight: 600; }
.adminbar a { color: #DCE3EC; }

.btn--head { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
@media (max-width: 420px) { .btn--head { padding: 0 12px; font-size: .875rem; } .head .logo svg { height: 34px; } }
.seg--foot { background: transparent; border-color: #1B3050; }
.seg--foot button { color: var(--on-band-2); padding: 5px 10px; font-size: .75rem; }
.seg--foot button[aria-pressed="true"] { background: #D39C5E; color: #0B1F3A; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font-weight: 600; font-size: .9375rem; }
label small { font-weight: 400; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); font-size: 1rem; line-height: 1.5;
}
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field__err { color: var(--err); font-size: .875rem; font-weight: 600; }
.field__err::before { content: "⚠ "; }
.field__hint { color: var(--ink-2); font-size: .8125rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--btn); flex: none; }
.alert { padding: 12px 14px; border-radius: var(--r-1); font-size: .9375rem; font-weight: 600; }
.alert--err { background: var(--err-bg); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); }
.alert:focus, .sent:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; font-size: .9375rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
/* Champ piège anti-robots : hors de l'écran, ignoré par les lecteurs d'écran */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
