/* Capital Computing Corporation — style institutionnel noir et blanc.
   Grille suisse, filets d'un pixel, photographie monochrome, une seule animation de marque (le logo du héros). */

:root {
  --black: #000;
  --white: #fff;
  --paper: #f4f4f2;
  --rule: #d6d6d3;
  --rule-dark: #333;
  --text: #111;
  --muted: #5c5c5c;
  --muted-dark: #a8a8a8;

  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 10vw, 152px);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typographie ---------- */
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.dark .kicker { color: var(--muted-dark); }
.h2 { font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.h3 { font-weight: 500; font-size: 1.28rem; line-height: 1.3; letter-spacing: -.01em; }
.h4 { font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.h5 { font-weight: 600; font-size: .9rem; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.dark .lead { color: var(--muted-dark); }
.body { color: var(--muted); }
.dark .body { color: var(--muted-dark); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; font: 500 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; text-align: center; border: 1px solid currentColor; transition: background-color .2s var(--ease), color .2s var(--ease); }
.btn--solid { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--solid:hover { background: var(--white); color: var(--black); }
.btn--line { color: var(--black); }
.btn--line:hover { background: var(--black); color: var(--white); }
.dark .btn--solid, .btn--inv { background: var(--white); color: var(--black); border-color: var(--white); }
.dark .btn--solid:hover, .btn--inv:hover { background: transparent; color: var(--white); }
.dark .btn--line { color: var(--white); }
.dark .btn--line:hover { background: var(--white); color: var(--black); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* ---------- En-tête ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background-color .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.header.is-solid, .header.has-open { background: var(--black); border-bottom-color: var(--rule-dark); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 88px; }
.brand { transition: opacity .4s var(--ease); }
.brand img { width: 168px; height: auto; }
.home .header:not(.is-solid):not(.has-open) .brand { opacity: 0; pointer-events: none; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 32px); }
.nav__links a { text-decoration: none; font-size: .92rem; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { border-bottom-color: currentColor; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .88rem; background: var(--white); color: var(--black); border-color: var(--white); }
.nav .btn:hover { background: transparent; color: var(--white); }
.menu-btn { display: none; }

/* ---------- Héros : le logo apparaît dans le fond (0,5 s → 1,5 s) ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; flex-direction: column; background: var(--black); color: var(--white); overflow: hidden; }
.hero__logo { flex: 1; display: flex; align-items: center; justify-content: center; padding: 120px var(--gutter) 24px; min-height: 260px; pointer-events: none; }
.hero__logo img { width: min(980px, 100%); max-height: 36svh; height: auto; object-fit: contain; opacity: 0; filter: blur(10px); transform: scale(1.04); animation: logo-in 1s var(--ease) .5s forwards; }
@keyframes logo-in { to { opacity: .92; filter: blur(0); transform: scale(1); } }
.hero__body { padding: 8px 0 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.hero .kicker { color: var(--muted-dark); margin-bottom: 28px; }
.hero h1 { font-weight: 300; font-size: clamp(2.3rem, 4.4vw, 4.1rem); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.hero__lead { font-size: 1.1rem; color: #cfcfcf; }
.hero .actions { margin-top: 32px; }
.hero__facts { border-top: 1px solid var(--rule-dark); }
.hero__facts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero__facts li { padding: 22px 0; font-size: .9rem; color: var(--muted-dark); }
.hero__facts li + li { padding-left: clamp(16px, 2.5vw, 32px); border-left: 1px solid var(--rule-dark); }
.hero__facts b { display: block; font-weight: 500; color: var(--white); font-size: .98rem; }
.fade-in { opacity: 0; animation: fade-in .9s var(--ease) forwards; animation-delay: var(--d, .2s); }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Apparitions au défilement (fondu discret) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.paper { background: var(--paper); }
.dark { background: var(--black); color: var(--white); }
.head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px clamp(32px, 5vw, 80px); padding-top: 28px; border-top: 1px solid var(--black); margin-bottom: clamp(48px, 6vw, 88px); }
.dark .head { border-top-color: var(--white); }
.head .lead { margin-top: 28px; }
.head .lead p + p { margin-top: 1em; }
.photo { margin: 0; overflow: hidden; background: #222; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.photo figcaption { font-size: .8rem; color: var(--muted); padding-top: 12px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 32px); }

/* Énoncé */
.statement { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.statement .photo { aspect-ratio: 4 / 5; }
.statement__quote { font-weight: 300; font-size: clamp(1.6rem, 2.7vw, 2.45rem); line-height: 1.28; letter-spacing: -.018em; margin: 0; text-wrap: pretty; }
.statement__sub { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule); color: var(--muted); max-width: 58ch; }

/* Expertise */
.wide-photo { aspect-ratio: 21 / 9; margin-bottom: clamp(56px, 7vw, 96px); }
.lead-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 72px); }
.lead-row .h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 400; margin-bottom: 18px; }
.list-rules > div { padding: 24px 0; border-top: 1px solid var(--rule); }
.list-rules > div:last-child { border-bottom: 1px solid var(--rule); }
.list-rules .h4, .list-rules .h5 { margin-bottom: 8px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); }
.cols2 > * { padding-top: 28px; border-top: 1px solid var(--black); }
.cols2 .h3 { margin-bottom: 14px; }

/* Capital numérique (fond noir) */
.capital__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 5vw, 80px); color: var(--muted-dark); }
.capital__intro p:first-child { color: var(--white); font-size: 1.2rem; line-height: 1.55; }
.stages { list-style: none; padding: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: clamp(64px, 8vw, 104px); counter-reset: stage; }
.stage { padding-top: 26px; border-top: 1px solid var(--white); }
.stage__n { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 22px; }
.stage .h3 { margin-bottom: 16px; }
.stage p { color: var(--muted-dark); }
.motto { margin: clamp(88px, 10vw, 144px) 0 0; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.motto p { font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3.8rem); line-height: 1.1; letter-spacing: -.03em; max-width: 20em; margin: 0; text-wrap: balance; }
.band { aspect-ratio: 21 / 8; margin-top: clamp(72px, 9vw, 120px); }

/* Services : tableau à filets */
.services-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.services-top .photo { aspect-ratio: 3 / 2; }
.table { border-top: 1px solid var(--black); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 4vw, 64px); padding: 32px 0; border-bottom: 1px solid var(--rule); }
.row .h3 { font-size: 1.4rem; font-weight: 400; }
.integrated { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 5vw, 80px); margin-top: 56px; }
.integrated .h4, .integrated .h5 { margin-bottom: 8px; }

/* Québec */
.region { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.region .photo { aspect-ratio: 16 / 10; }
.places { margin-top: 36px; border-top: 1px solid var(--black); }
.places li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.places span { color: var(--muted); font-size: .92rem; }

/* Secteurs */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 32px); }
.sector { padding-top: 26px; border-top: 1px solid var(--black); }
.sector .h3 { font-size: 1.15rem; margin-bottom: 14px; }

/* Modèle */
.model { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.model > div { padding-top: 26px; border-top: 1px solid var(--white); }
.model .h3 { margin-bottom: 14px; }
.vision { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 5vw, 80px); margin-top: clamp(56px, 7vw, 88px); padding-top: 32px; border-top: 1px solid var(--rule-dark); align-items: baseline; }
.vision .h4 { font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.vision p { font-size: 1.12rem; color: #d8d8d8; }
.fineprint { margin-top: 28px; font-size: .85rem; color: var(--muted-dark); max-width: 72ch; }

/* Pourquoi */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.why__head { position: sticky; top: 120px; }
.why__head .photo { aspect-ratio: 3 / 2; margin-top: 44px; }
.reasons > div { padding: 30px 0; border-top: 1px solid var(--rule); }
.reasons > div:first-child { border-top-color: var(--black); }
.reasons > div:last-child { border-bottom: 1px solid var(--rule); }
.reasons .h3 { margin-bottom: 10px; }

/* Appel à l'action */
.cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 80px); align-items: end; }
.hero .btn--line { color: var(--white); }
.hero .btn--line:hover { background: var(--white); color: var(--black); }
.offset { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 clamp(32px, 5vw, 80px); }
.offset > * { grid-column: 2; }
.cta .head { margin-bottom: 0; }
.cta__grid { align-items: start; }
.cta__body { margin-top: 28px; color: var(--muted-dark); max-width: 60ch; font-size: 1.1rem; }
.cta__aside { border-top: 1px solid var(--white); padding-top: 26px; }
.cta__aside .h3 { margin-bottom: 14px; }
.cta__aside p { color: var(--muted-dark); }

/* FAQ */
.faq { border-top: 1px solid var(--black); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .h3 { font-size: 1.15rem; }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--black); transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 72px 30px 0; max-width: 72ch; color: var(--muted); }

/* ---------- Pied de page ---------- */
.footer { background: var(--black); color: var(--muted-dark); padding: 88px 0 36px; font-size: .94rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(24px, 4vw, 64px); padding-bottom: 56px; border-bottom: 1px solid var(--rule-dark); }
.footer__brand img { width: 220px; height: auto; }
.footer__brand p { margin-top: 22px; max-width: 30ch; font-size: .9rem; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 32px; }
.footer h2 { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer li + li { margin-top: 9px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__addr { font-style: normal; margin-bottom: 12px; line-height: 1.55; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 24px; font-size: .86rem; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__legal li + li { margin-top: 0; }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--black); color: var(--white); padding: calc(88px + clamp(72px, 9vw, 128px)) 0 clamp(64px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero__logo { position: absolute; z-index: -1; right: -6%; bottom: -12%; width: min(860px, 70vw); opacity: .08; pointer-events: none; }
.page-hero .kicker { color: var(--muted-dark); margin-bottom: 24px; }
.page-hero h1 { font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.05; letter-spacing: -.03em; max-width: 16em; text-wrap: balance; }
.page-hero__lead { margin-top: 26px; max-width: 62ch; font-size: 1.1rem; color: #cfcfcf; }
.page-hero .actions { margin-top: 36px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
.coords { position: sticky; top: 108px; border-top: 1px solid var(--black); padding-top: 26px; }
.coords .h2 { font-size: 1.6rem; margin-bottom: 26px; }
.coords dl { margin: 0; }
.coords dt { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--rule); }
.coords dt:first-child { border-top: 0; padding-top: 0; }
.coords dd { margin: 8px 0 18px; }
.coords address { font-style: normal; }
.coords a { text-underline-offset: 4px; }
.coords .tel { font-weight: 300; font-size: 1.75rem; text-decoration: none; letter-spacing: -.01em; }
.coords .photo { aspect-ratio: 4 / 3; margin-top: 28px; }

.form { border-top: 1px solid var(--black); padding-top: 26px; }
.form .h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.form__note { margin: 12px 0 34px; color: var(--muted); font-size: .95rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .95rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--text); background: var(--white); border: 1px solid #bdbdbd; border-radius: 0; padding: 13px 15px; min-height: 54px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; padding-right: 44px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #777; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: .9rem; margin: 0; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }
.form__foot .btn { min-width: 230px; cursor: pointer; }
.form__foot .btn[disabled] { opacity: .6; cursor: progress; }
.form__privacy { flex: 1 1 280px; margin: 0; font-size: .88rem; color: var(--muted); }
.form__status { margin-top: 22px; padding: 16px 18px; font-size: .98rem; }
.form__status:empty { display: none; }
.form__status.is-error { background: #fbeceb; color: #8c1d18; }
.done { border-top: 1px solid var(--black); padding-top: 26px; }
.done .h2 { font-size: 2rem; margin-bottom: 12px; }
.done:focus { outline: none; }

/* Plan du site */
.sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(24px, 4vw, 64px); }
.sitemap > div { border-top: 1px solid var(--black); padding-top: 24px; }
.sitemap .h3 { margin-bottom: 16px; }
.sitemap li { padding: 7px 0; }
.sitemap a { text-decoration: none; }
.sitemap a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sitemap ul ul { padding-left: 18px; border-left: 1px solid var(--rule); margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.6); background: transparent; color: var(--white); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); padding: 8px var(--gutter) 28px; border-top: 1px solid var(--rule-dark); }
  .nav.is-open .nav__links a { display: block; padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--rule-dark); }
  .sectors { grid-template-columns: 1fr 1fr; gap: 40px clamp(20px, 2.4vw, 32px); }
}
@media (max-width: 900px) {
  .hero__grid, .head, .statement, .lead-row, .capital__intro, .services-top, .region, .vision, .why, .cta__grid, .footer__top, .contact { grid-template-columns: 1fr; }
  .why__head, .coords { position: static; }
  .cols2, .stages, .model, .integrated, .sitemap { grid-template-columns: 1fr; gap: 40px; }
  .row { grid-template-columns: 1fr; }
  .offset { grid-template-columns: 1fr; }
  .offset > * { grid-column: 1; }
  .hero__logo { padding-top: 112px; min-height: 200px; }
  .hero__facts ul { grid-template-columns: 1fr; }
  .page-hero__logo { display: none; }
  .hero__facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-dark); }
  .hero__facts li { padding: 14px 0; }
  .statement .photo { aspect-ratio: 4 / 3; }
  .wide-photo, .band { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { width: 136px; }
  .nav > .btn { display: none; }
  .actions .btn, .form__foot .btn { width: 100%; }
  .sectors, .fields, .footer__cols { grid-template-columns: 1fr; }
  .faq__a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo img { animation: none; opacity: .92; filter: none; transform: none; }
  .fade-in { animation: none; opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
