/* ==========================================================================
   CM CONSULTING DATA — Conseil en systèmes et logiciels informatiques
   59 rue de Ponthieu, 75008 Paris
   ========================================================================== */

:root {
  --void:     #0B0E13;
  --carbon:   #101620;
  --graphite: #19212D;
  --line:     #232C3A;
  --steel:    #7A8798;
  --fog:      #C3CDDA;
  --bright:   #F2F6FB;
  --signal:   #2D5BFF;
  --signal-lt:#5C81FF;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(20px, 4.6vw, 60px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--bright);
  text-wrap: balance;
}

p { margin: 0 0 1.05em; max-width: 64ch; }

:focus-visible { outline: 2px solid var(--signal-lt); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--bright); color: var(--void); padding: 12px 18px; z-index: 60; }
.skip:focus { left: 12px; top: 12px; }

/* Étiquette technique en monospace */
.tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--signal-lt);
  display: block;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------- Structure -- */

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: clamp(58px, 8.5vw, 108px); }

.band { background: var(--carbon); }

/* ---------------------------------------------------------------- Entête -- */

.masthead {
  background: rgba(11, 14, 19, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}

.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }

.brand__dot { width: 9px; height: 9px; background: var(--signal); flex: none; }

.brand__name {
  font-size: 17px; font-weight: 700; letter-spacing: .01em; color: var(--bright);
}

.brand__name span { color: var(--steel); font-weight: 400; }

.nav { display: flex; gap: clamp(16px, 2.6vw, 32px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--fog); padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--bright); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); color: var(--bright); }

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

.hero { position: relative; overflow: hidden; }

.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .38;
}

.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,19,.55) 0%, rgba(11,14,19,.86) 62%, var(--void) 100%),
    radial-gradient(120% 90% at 12% 20%, rgba(45,91,255,.20) 0%, transparent 60%);
}

.hero .wrap { position: relative; z-index: 2; padding-block: clamp(72px, 12vw, 152px); }

.hero h1 {
  font-size: clamp(40px, 7.4vw, 88px);
  max-width: 17ch;
  margin-bottom: 26px;
}

.hero h1 em { font-style: normal; color: var(--signal-lt); }

.hero__lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--fog);
  max-width: 54ch;
  margin-bottom: 36px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 15.5px; font-weight: 500;
  padding: 14px 26px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.btn--solid { background: var(--signal); color: #fff; }
.btn--solid:hover { background: var(--signal-lt); }

.btn--line { border-color: var(--line); color: var(--bright); background: rgba(255,255,255,.03); }
.btn--line:hover { border-color: var(--steel); background: rgba(255,255,255,.07); }

/* Bandeau de repères en monospace */

.readout { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.readout .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.readout div { padding: 22px 26px 22px 0; border-right: 1px solid var(--line); }
.readout div:last-child { border-right: 0; }

@media (max-width: 660px) {
  .readout div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .readout div:last-child { border-bottom: 0; }
}

.readout dt { font-family: var(--mono); font-size: 11.5px; color: var(--steel); margin-bottom: 5px; letter-spacing: .03em; }
.readout dd { margin: 0; font-size: 16px; font-weight: 500; color: var(--bright); }

/* ---------------------------------------------------- Titrage de section -- */

.lead-in { max-width: 48ch; margin-bottom: clamp(34px, 4.6vw, 56px); }
.lead-in h2 { font-size: clamp(28px, 4.4vw, 48px); margin-bottom: 15px; }
.lead-in p { color: var(--steel); margin: 0; }

/* -------------------------------------------------------------- Services -- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(22px, 2.6vw, 32px);
}

.card {
  background: var(--graphite);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}

.card:hover { border-color: var(--steel); transform: translateY(-3px); }

.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--carbon); }
.card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }

.card__body { padding: 24px 24px 28px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--steel); margin: 0; max-width: none; }

/* -------------------------------------------------------------- Séquence -- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(26px, 3.2vw, 40px);
  counter-reset: step;
}

.step { border-top: 1px solid var(--line); padding-top: 18px; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 12.5px;
  color: var(--signal-lt); margin-bottom: 11px; letter-spacing: .04em;
}

.step h3 { font-size: 18.5px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--steel); margin: 0; }

/* ------------------------------------------------------------ Deux colonnes -- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: clamp(30px, 4.6vw, 68px);
  align-items: center;
}

.split__media { border: 1px solid var(--line); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .85; }

.tick-list { list-style: none; margin: 22px 0 0; padding: 0; }
.tick-list li {
  padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line);
  font-size: 16px; position: relative;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 10px; height: 1px; background: var(--signal);
}

/* ------------------------------------------------------------------- CTA -- */

.cta { background: var(--signal); }
.cta h2 { font-size: clamp(28px, 4.4vw, 48px); max-width: 19ch; margin-bottom: 16px; color: #fff; }
.cta p { color: #D7E0FF; max-width: 52ch; margin-bottom: 28px; }
.cta .btn--solid { background: #fff; color: var(--signal); }
.cta .btn--solid:hover { background: #E8EEFF; }
.cta .btn--line { border-color: rgba(255,255,255,.4); color: #fff; }
.cta .btn--line:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* ------------------------------------------------------------ Pages texte -- */

.page-head { background: var(--carbon); border-bottom: 1px solid var(--line); padding-block: clamp(50px, 7.5vw, 92px); }
.page-head h1 { font-size: clamp(36px, 6.4vw, 74px); margin-bottom: 15px; }
.page-head p { color: var(--steel); font-size: 18px; max-width: 56ch; margin: 0; }

.prose h2 { font-size: clamp(25px, 3.4vw, 37px); border-top: 2px solid var(--signal); padding-top: 14px; margin: 0 0 18px; }
.prose h3 { font-size: 19px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--fog); }
.prose + .prose { margin-top: clamp(46px, 5.6vw, 76px); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 0 38px; margin: 0; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11.5px; color: var(--steel); margin-bottom: 3px; letter-spacing: .03em; }
.facts dd { margin: 0; font-size: 16.5px; color: var(--bright); }

.note { font-size: 15px; color: var(--steel); border-left: 2px solid var(--signal); padding-left: 18px; margin-top: 28px; }

/* --------------------------------------------------------------- Contact -- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 19px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; color: var(--steel); margin-bottom: 7px; letter-spacing: .03em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--bright);
  background: var(--graphite); border: 1px solid var(--line); padding: 12px 14px; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--signal); outline: none; }
.field textarea { min-height: 165px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #55617200; color: var(--steel); opacity: .7; }

.form-note { font-size: 14.5px; color: var(--steel); margin-top: 15px; }

/* ------------------------------------------------------------------ Pied -- */

.foot { background: var(--carbon); border-top: 1px solid var(--line); padding-block: clamp(42px, 5.5vw, 66px); font-size: 15px; color: var(--steel); }
.foot a { color: var(--fog); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--bright); border-bottom-color: var(--signal); }

.foot__top {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 28px 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}

.foot__name { font-size: 17px; font-weight: 700; color: var(--bright); margin-bottom: 9px; }

.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }

.foot__bottom {
  padding-top: 22px; display: flex; flex-wrap: wrap;
  gap: 8px 26px; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--steel);
}

.credit { font-family: var(--mono); font-size: 11.5px; color: #4E5867; margin-top: 16px; }
.credit a { border: 0; color: #4E5867; }

/* ---------------------------------------------------------------- Motion -- */

.rise { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
.rise:nth-child(2) { animation-delay: .1s; }
.rise:nth-child(3) { animation-delay: .2s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; animation: none; }
  .card:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}
