/* Manon Maisonhaute — site styles
   Palette "Nuit électrique" · Bebas Neue (headings) + IBM Plex Sans (text) */

@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebasneue-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibmplexsans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibmplexsans-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibmplexsans-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --night: #141A33;
  --electric: #1E5BFF;
  --blue: #1A4FE0;
  --violet: #6E4BDB;
  --lilac: #CDBBFF;
  --pink: #E9A8DF;
  --mist: #ECE3FF;
  --white: #FFFFFF;
  --ink-soft: #4A5068;
  --rule: rgba(20, 26, 51, 0.14);
  --rule-dark: rgba(255, 255, 255, 0.16);

  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --measure: 38rem;

  --glow:
    radial-gradient(120% 140% at 0% 0%, rgba(30, 91, 255, 0.95) 0%, rgba(30, 91, 255, 0.55) 28%, rgba(30, 91, 255, 0.18) 52%, rgba(30, 91, 255, 0) 72%),
    radial-gradient(110% 130% at 100% 100%, rgba(110, 75, 219, 0.95) 0%, rgba(110, 75, 219, 0.55) 30%, rgba(110, 75, 219, 0.18) 55%, rgba(110, 75, 219, 0) 76%),
    var(--night);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--night);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--lilac); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 8.6vw, 7.75rem); line-height: 0.9; }
h2 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 0.95; }
h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1; letter-spacing: 0.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); z-index: 100; background: var(--night); color: var(--white); padding: 0.6rem 1rem; }
.skip-link:focus { transform: none; color: var(--white); }

/* Placeholders to replace before going live */
mark.todo { background: #FFE58A; color: var(--night); padding: 0 0.2em; border-radius: 2px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.8rem 1.5rem;
  font-family: var(--font-text); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; border-radius: 3px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--night); color: var(--white); }
.button-light { background: var(--white); color: var(--night); }
.button-light:hover { background: var(--lilac); color: var(--night); }
.button-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.button-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.brand { display: block; color: var(--night); flex-shrink: 0; }
.brand .logo { height: 2.5rem; width: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-list a:not(.button) { color: var(--night); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav-list a:not(.button):hover { color: var(--blue); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav-list .button { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.menu { position: relative; display: none; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .menu { display: block; }
  .menu > summary {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem;
    border: 1px solid var(--rule); border-radius: 3px; font-weight: 600; font-size: 0.95rem;
  }
  .menu .nav-list { display: none; }
  .menu[open] .nav-list {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; right: 0; top: calc(100% + 0.75rem); width: min(18rem, calc(100vw - 2.5rem));
    background: var(--white); border: 1px solid var(--rule); box-shadow: 0 18px 40px rgba(20, 26, 51, 0.16); padding: 0.5rem;
  }
  .menu[open] .nav-list a:not(.button) { display: block; padding: 0.8rem 0.75rem; border-bottom: 0; }
  .menu[open] .nav-list a[aria-current="page"] { color: var(--blue); }
  .menu[open] .nav-list li:last-child { padding: 0.5rem 0.25rem 0.25rem; }
  .menu[open] .nav-list .button { width: 100%; }
  .brand .logo { height: 2.1rem; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--glow); color: var(--white); }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(4.5rem, 11vw, 8.5rem); padding-bottom: clamp(9rem, 19vw, 15rem); }
.hero-kicker { color: var(--lilac); font-weight: 500; font-size: 1.05rem; margin-bottom: 1.25rem; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 36rem; margin-top: 1.75rem; color: rgba(255, 255, 255, 0.9); }
.hero .button-row { margin-top: 2.25rem; }
.growth-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(9rem, 22vw, 17rem); pointer-events: none; }
.growth-line .line { fill: none; stroke: var(--lilac); stroke-width: 2.5; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.growth-line .area { fill: url(#growth-fill); }
@media (prefers-reduced-motion: no-preference) {
  .growth-line .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.65, 0, .35, 1) 0.25s forwards; }
  .growth-line .area { opacity: 0; animation: fade 1.2s ease 1.6s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fade { to { opacity: 1; } }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--glow); color: var(--white); }
.page-hero-inner { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: 16ch; }
.page-hero .lead { max-width: 38rem; margin-top: 1.5rem; color: rgba(255, 255, 255, 0.9); }
.breadcrumbs { font-size: 0.95rem; margin-bottom: 1.5rem; color: var(--lilac); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.breadcrumbs a { color: var(--lilac); }
.breadcrumbs a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: var(--measure); color: var(--ink-soft); }

/* Problems: plain statements on a rule grid */
.statements { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.statements li { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--rule); }
.statements li:nth-child(odd) { border-right: 1px solid var(--rule); }
.statements li:nth-child(even) { padding-left: 2rem; padding-right: 0; }
.statements strong { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.5rem; }
.statements span { color: var(--ink-soft); }
@media (max-width: 760px) {
  .statements { grid-template-columns: minmax(0, 1fr); }
  .statements li, .statements li:nth-child(even) { padding: 1.6rem 0; border-right: 0; }
  .statements li:nth-child(odd) { border-right: 0; }
}

/* Services: index rows */
.service-rows { list-style: none; border-top: 2px solid var(--night); }
.service-row { border-bottom: 1px solid var(--rule); }
.service-row a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; align-items: baseline; gap: 1.5rem 2.5rem;
  padding: 2rem 0; color: var(--night); text-decoration: none;
}
.service-row h3 { font-size: clamp(2rem, 3.6vw, 3rem); transition: color 0.15s ease; }
.service-row p { color: var(--ink-soft); margin: 0; }
.service-row .more { font-weight: 600; font-size: 0.95rem; color: var(--blue); white-space: nowrap; }
.service-row a:hover h3 { color: var(--blue); }
.service-row a:hover .more { text-decoration: underline; }
@media (max-width: 760px) {
  .service-row a { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; padding: 1.6rem 0; }
}

/* Process: a real sequence */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--night); padding-top: 1.5rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--blue); margin-bottom: 1rem; }
.steps h3 { margin-bottom: 0.75rem; }
.steps p { color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split-media {
  aspect-ratio: 4 / 5; background: var(--glow); display: grid; place-items: center; color: var(--white); border-radius: 3px; overflow: hidden;
}
.split-media svg { width: 42%; height: auto; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split-media { aspect-ratio: 4 / 3; } }

.facts { list-style: none; margin-top: 2rem; border-top: 1px solid var(--rule); }
.facts li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts b { font-weight: 600; }
@media (max-width: 520px) { .facts li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; } }

/* FAQ */
.faq { border-top: 2px solid var(--night); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; cursor: pointer; list-style: none;
  padding: 1.4rem 0; font-size: 1.2rem; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--blue); transition: transform 0.2s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.6rem; max-width: var(--measure); color: var(--ink-soft); }

/* CTA band */
.cta-band { background: var(--glow); color: var(--white); }
.cta-inner { padding-block: clamp(4.5rem, 10vw, 7.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.cta-inner h2 { max-width: 14ch; }
.cta-inner p { color: rgba(255, 255, 255, 0.88); max-width: 32rem; margin-top: 1.25rem; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Article layout (service, about, legal) ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin: 3.5rem 0 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.9rem; margin: 2.25rem 0 0.75rem; }
.prose ul.ticks { list-style: none; margin: 0 0 1.25em; }
.prose ul.ticks li { position: relative; padding: 0.6rem 0 0.6rem 2rem; border-bottom: 1px solid var(--rule); }
.prose ul.ticks li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 0.95rem; height: 0.55rem; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.prose ol.sequence { list-style: none; counter-reset: s; margin: 0 0 1.25em; padding: 0; }
.prose ol.sequence li { counter-increment: s; position: relative; padding: 0 0 1.25rem 3.25rem; }
.prose ol.sequence li::before { content: counter(s); position: absolute; left: 0; top: -0.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; color: var(--white); background: var(--night); border-radius: 50%; }
.prose ol.sequence b { display: block; }
.prose .callout { background: var(--mist); padding: 1.5rem 1.75rem; margin: 2rem 0; border-radius: 3px; }

.aside { position: sticky; top: 2rem; display: grid; gap: 1.5rem; }
.aside-card { background: var(--night); color: var(--white); padding: 1.75rem; border-radius: 3px; }
.aside-card h2 { font-size: 2.1rem; margin-bottom: 0.75rem; }
.aside-card p { color: rgba(255, 255, 255, 0.85); font-size: 1rem; margin-bottom: 1.25rem; }
.aside-card .button { width: 100%; }
.aside-links h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.aside-links ul { list-style: none; border-top: 1px solid var(--rule); }
.aside-links li { border-bottom: 1px solid var(--rule); }
.aside-links a { display: block; padding: 0.75rem 0; text-decoration: none; color: var(--night); font-weight: 500; font-size: 1rem; }
.aside-links a:hover { color: var(--blue); }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--night); }
.contact-grid > div { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--rule); }
.contact-grid > div + div { padding-left: 2rem; border-left: 1px solid var(--rule); }
.contact-grid h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.contact-grid p { color: var(--ink-soft); font-size: 1rem; }
.contact-grid .big-link { font-size: 1.15rem; font-weight: 600; word-break: break-word; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid > div, .contact-grid > div + div { padding: 1.75rem 0; border-left: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.82); font-size: 1rem; }
.footer-top { padding-top: clamp(3.5rem, 8vw, 5.5rem); padding-bottom: 2.5rem; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2.5rem; }
.footer-brand .logo { height: auto; width: min(100%, 22rem); color: var(--white); }
.footer-brand p { margin-top: 1.25rem; max-width: 24rem; }
.site-footer h2 { font-family: var(--font-text); text-transform: none; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--white); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--lilac); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--rule-dark); padding-top: 1.5rem; padding-bottom: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }
@media (max-width: 860px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }

@media print {
  .site-header, .site-footer, .cta-band, .growth-line, .aside { display: none; }
  .hero, .page-hero { background: none; color: #000; }
}
