/* ═══════════════════════════════════════════════════════════════
   mon-departement-ia.fr — standalone stylesheet.
   Bleu blanc rouge, Haussmann stone, Parisian editorial.
   Structure mirrors node-bi.fr section for section; the look does not.
   ═══════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
}

:root {
  /* Haussmann limestone, never stark white */
  --stone: #faf8f4;
  --stone-2: #f3efe8;
  --card: #ffffff;

  --ink: #0e1b33;
  --ink-soft: #46536e;
  --ink-muted: #8590a6;

  --bleu: #0055a4;
  --bleu-soft: rgba(0, 85, 164, 0.06);
  --bleu-line: rgba(0, 85, 164, 0.18);

  --rouge: #d0201c;
  --rouge-soft: rgba(208, 32, 28, 0.07);
  --rouge-line: rgba(208, 32, 28, 0.22);

  /* brass, for hairlines only — never for text */
  --or: #b08d3f;

  --border: rgba(14, 27, 51, 0.10);

  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --display: 'Playfair Display', Georgia, serif;
}

body {
  font-family: var(--sans);
  background: var(--stone);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--bleu);
  color: #fff;
}

/* ── The tricolore rule — the one motif that carries the brand ── */

/* The middle band is white on a near-white ground, so the rule needs a
   bounding hairline or it reads as two disconnected dashes. */
.tricolore {
  width: 64px;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg,
      var(--bleu) 0 33.33%,
      #ffffff 33.33% 66.66%,
      var(--rouge) 66.66% 100%);
  box-shadow: 0 0 0 1px rgba(14, 27, 51, 0.16);
  margin-bottom: 18px;
}

/* ── NAV ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

/* Paris street plaque: blue enamel, white keyline, white lettering. */
.plaque {
  display: inline-block;
  background: var(--bleu);
  color: #fff;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--bleu), inset 0 0 0 3px #fff;
  transition: background 0.2s;
}

.plaque:hover {
  background: #00437f;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--rouge);
}

.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 11px;
  min-height: 32px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--bleu);
  color: var(--bleu);
}

/* ── BUTTONS ── */

.btn {
  display: inline-block;
  font-family: inherit;
  padding: 15px 28px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--rouge);
  color: #fff;
  box-shadow: 0 2px 10px rgba(208, 32, 28, 0.22);
}

.btn-primary:hover {
  background: #b31916;
  box-shadow: 0 4px 18px rgba(208, 32, 28, 0.28);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--bleu);
  color: var(--bleu);
}

/* ── EYEBROWS ── */

.hero-tag,
.section-tag,
.breadcrumb,
.tech {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 14px;
  font-weight: 500;
}

.breadcrumb {
  color: var(--ink-muted);
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--rouge);
}

/* ── HERO ── */

.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 140px 32px 40px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 70px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.hero h1 .signal,
.page-hero h1 .signal,
section h2 .signal {
  color: var(--rouge);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(16px, 2.1vw, 18.5px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── CLIENT MARQUEE ── */

.clients {
  margin-top: 48px;
}

.clients-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.client {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 44px;
}

/* Logos are mixed-brand colour; muting them keeps the tricolore in charge. */
.client img {
  height: 100%;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s, opacity 0.3s;
}

.client:hover img {
  filter: none;
  opacity: 1;
}

.client .wordmark {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ── TRUST BAR — what you're renting, in plain counts ── */

.caps-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 32px 0;
}

.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cap {
  background: #fff;
  padding: 22px 20px;
}

.cap .n {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  color: var(--bleu);
  line-height: 1;
  margin-bottom: 6px;
}

.cap:last-child .n {
  color: var(--rouge);
}

.cap .l {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── SECTIONS ── */

section {
  max-width: 860px;
  margin: 0 auto;
  padding: 84px 32px;
}

section h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.3vw, 42px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.8px;
  margin-bottom: 44px;
}

.lede {
  font-size: clamp(15.5px, 2vw, 17.5px);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ── AUDIT HOOK — the boxed callout ── */

.hook {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

/* vertical tricolore spine */
.hook::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg,
      var(--bleu) 0 33.33%,
      #ffffff 33.33% 66.66%,
      var(--rouge) 66.66% 100%);
}

.hook h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  margin-bottom: 18px;
}

.hook p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* ── PATHWAY — numbered capability ladder ── */

.pathway-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.pathway-step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 27px;
  font-weight: 700;
  color: var(--bleu);
  line-height: 1;
  padding-top: 2px;
}

.step-content .tech {
  margin-bottom: 8px;
}

.step-content h3 {
  font-size: 19.5px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step-content p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-soft);
}

/* ── FORMAT CARDS ── */

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.format-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* red hairline wipes in on hover — the only motion on the card */
.format-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.format-card:hover {
  border-color: var(--bleu-line);
  box-shadow: 0 6px 26px rgba(14, 27, 51, 0.07);
}

.format-card:hover::after {
  transform: scaleX(1);
}

.format-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.format-card p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-soft);
}

/* ── FUNDING CALLOUT ── */

.funding {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bleu-soft);
  border: 1px solid var(--bleu-line);
  border-radius: 10px;
  padding: 22px 24px;
  margin-top: 16px;
}

.funding .badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--bleu);
  background: #fff;
  border: 1px solid var(--bleu-line);
  border-radius: 5px;
  padding: 6px 10px;
  white-space: nowrap;
}

.funding p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.funding strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── PAGE HERO (subpages) ── */

.page-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 132px 32px 16px;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(33px, 5.4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

/* ── BENTO ── */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bento-tile {
  grid-column: span 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.bento-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.bento-tile:hover {
  border-color: var(--bleu-line);
  box-shadow: 0 6px 26px rgba(14, 27, 51, 0.07);
}

.bento-tile:hover::after,
.bento-tile:has(details[open])::after {
  transform: scaleX(1);
}

.bento-tile.wide {
  grid-column: span 6;
}

.bento-tile:has(details[open]) {
  border-color: var(--bleu-line);
}

.bento-tile .tech {
  margin-bottom: 10px;
}

.bento-tile h3 {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.bento-tile.wide h3 {
  font-size: clamp(25px, 3vw, 32px);
}

.bento-tile>p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tile-meta span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bleu);
  background: var(--bleu-soft);
  border: 1px solid var(--bleu-line);
  border-radius: 5px;
  padding: 5px 9px;
  white-space: nowrap;
}

.bento-tile details {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.bento-tile summary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rouge);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  min-height: 32px;
}

.bento-tile summary::-webkit-details-marker {
  display: none;
}

.bento-tile summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--rouge);
  border-bottom: 1.5px solid var(--rouge);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s;
}

.bento-tile details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.detail-body {
  padding-top: 14px;
}

.detail-body h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 16px 0 7px;
  font-weight: 500;
}

.detail-body h4:first-child {
  margin-top: 0;
}

.detail-body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.detail-body ul {
  list-style: none;
}

.detail-body li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.detail-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bleu);
}

.bento-cta {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rouge);
  text-decoration: none;
  font-weight: 500;
  min-height: 32px;
  line-height: 32px;
}

.bento-cta:hover {
  text-decoration: underline;
}

.bento-tile.invite {
  background: var(--rouge-soft);
  border-color: var(--rouge-line);
  justify-content: center;
}

.bento-tile.invite h3 {
  color: var(--rouge);
}

/* ── TEAM — three equals, no lead ── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.person-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.person-card:hover {
  border-color: var(--bleu-line);
  box-shadow: 0 6px 26px rgba(14, 27, 51, 0.07);
}

/* Photo and monogram share one box so a card looks finished either way,
   capped so a portrait never becomes a billboard. */
.person-photo,
.monogram {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 4 / 5;
  border-radius: 9px;
  margin-bottom: 16px;
  display: block;
}

/* height:auto is load-bearing — the img width/height attributes are a
   presentational hint that otherwise beats aspect-ratio. */
.person-photo {
  height: auto;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--bleu-line);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.3s;
}

.person-card:hover .person-photo {
  filter: none;
}

.monogram {
  background: var(--bleu-soft);
  border: 1px solid var(--bleu-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--bleu);
}

.person-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.person-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 10px;
}

.person-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ── CONTACT ── */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.contact-links a,
.contact-links button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  color: var(--ink);
  border: none;
  font-family: inherit;
  font-size: 15.5px;
  text-align: left;
  text-decoration: none;
  padding: 22px 24px;
  min-height: 56px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}

.contact-links a:hover,
.contact-links button:hover {
  background: var(--bleu-soft);
  color: var(--bleu);
}

.contact-links .arrow {
  color: var(--rouge);
  font-size: 18px;
}

.mail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.copy-btn {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--stone);
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 6px 10px;
  min-height: 32px;
  width: auto;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--rouge);
  color: var(--rouge);
}

/* ── FOOTER — the one dark band, navy not black ── */

footer {
  --ink: #f2f5fa;
  --ink-soft: #b9c6dd;
  --ink-muted: #8494b3;
  --border: rgba(255, 255, 255, 0.13);

  background: #0e1b33;
  color: var(--ink);
  padding: 0 32px 28px;
  margin-top: 40px;
}

/* tricolore seam across the top of the footer */
footer::before {
  content: '';
  display: block;
  height: 3px;
  margin: 0 -32px 52px;
  background: linear-gradient(90deg,
      var(--bleu) 0 33.33%,
      #ffffff 33.33% 66.66%,
      var(--rouge) 66.66% 100%);
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-address {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-top: 12px;
}

.footer-heading {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
}

.footer-mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.footer-mono a {
  color: var(--ink-muted);
}

/* footer plaque keeps its blue enamel against the navy band */
footer .plaque {
  box-shadow: inset 0 0 0 1px var(--bleu), inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

/* ── MOBILE ── */

@media (max-width: 640px) {

  nav {
    padding: 10px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a.hide-mobile {
    display: none;
  }

  .plaque {
    font-size: 10px;
    padding: 8px 11px;
    letter-spacing: 1px;
  }

  .hero {
    padding: 112px 20px 32px;
  }

  .page-hero {
    padding: 100px 20px 10px;
  }

  section {
    padding: 58px 20px;
  }

  .caps-wrap {
    padding: 16px 20px 0;
  }

  .hook {
    padding: 30px 24px;
  }

  .bento-tile,
  .bento-tile.wide {
    grid-column: 1 / -1;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .funding {
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  footer {
    padding: 0 20px 24px;
  }

  footer::before {
    margin: 0 -20px 40px;
  }
}
