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

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #f4f7f6;
  --bg-card: #ffffff;
  --text: #1a2a2a;
  --text-soft: #4a6363;
  --text-muted: #7a9494;
  --aura: #0d9488;
  --aura-light: #ccfbf1;
  --aura-glow: rgba(13, 148, 136, 0.08);
  --aura-border: rgba(13, 148, 136, 0.15);
  --border: rgba(26, 42, 42, 0.08);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244, 247, 246, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--aura);
}

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

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

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

.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-card);
  transition: all 0.2s;
}

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

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 132px 32px 44px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--aura);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(34px, 6.5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 .aura {
  color: var(--aura);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.75;
}

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

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

.btn-primary {
  background: var(--aura);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background: #0f766e;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* ── TRUST BAR ── */
.trust-bar {
  padding: 28px 32px 40px;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.trust-item strong {
  color: var(--text);
  font-weight: 500;
}

/* ── SECTIONS ── */
section {
  padding: 80px 32px;
  max-width: 860px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--aura);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}

section h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 48px;
  line-height: 1.2;
  color: var(--text);
}

/* ── PATHWAY ── */
.pathway-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

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

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--aura);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.step-content .tech {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--aura);
  margin-bottom: 10px;
  font-weight: 500;
}

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

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

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.25s;
}

.format-card:hover {
  border-color: var(--aura-border);
  box-shadow: 0 4px 24px var(--aura-glow);
}

.format-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text);
}

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

/* ── QUALIOPI ── */
.qualiopi-banner {
  background: var(--aura-light);
  border: 1px solid var(--aura-border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 32px;
  display: flex;
  align-items: start;
  gap: 16px;
}

.qualiopi-banner .badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--aura);
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid var(--aura-border);
}

.qualiopi-banner p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── CLIENT MARQUEE ── */
.clients {
  margin-top: 44px;
}

.clients-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: .6;
  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 18s 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: 46px;
}

.client img {
  height: 100%;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  display: block;
}

.client .wordmark {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text);
  white-space: nowrap;
}

/* ── ABOUT ── */
.about-content {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 40px;
  row-gap: 36px;
  align-items: start;
}

.about-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 12px;
  border: 1px solid var(--aura);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.about-text p {
  font-size: 15.5px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 62ch;
  text-wrap: pretty;
}

.about-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.fact {
  padding: 16px 20px;
  border-left: 3px solid var(--aura);
  background: var(--aura-glow);
  border-radius: 0 8px 8px 0;
}

.fact .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--aura);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 500;
}

.fact .value {
  font-size: 14px;
  color: var(--text);
}

/* ── CONTACT ── */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.contact-links a,
.contact-links .contact-cal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s;
}

.contact-links a:hover,
.contact-links .contact-cal:hover {
  border-color: var(--aura);
  box-shadow: 0 4px 16px var(--aura-glow);
}

/* primary CTA — booking */
.contact-links .contact-cal {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  background: var(--aura);
  border-color: var(--aura);
  color: #fff;
  font-weight: 600;
}

.contact-links .contact-cal .arrow {
  color: #fff;
}

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

.copy-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

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

.contact-links a .arrow {
  font-family: var(--mono);
  color: var(--aura);
  transition: transform 0.2s;
}

.contact-links a:hover .arrow {
  transform: translateX(4px);
}

/* ── FOOTER ── */
footer {
  /* dark band — scoped palette flip so children inherit readable colours */
  --text: #f0f7f5;
  --text-soft: #b9d3cf;
  --text-muted: #8fb0ab;
  --aura: #2dd4bf;
  --border: rgba(255, 255, 255, 0.12);
  background: #0e2725;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 32px 36px;
}

footer .logo {
  color: var(--text);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-address {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  padding: 2px 0;
}

.footer-col a:hover {
  color: var(--aura);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

.footer-mono a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-mono a:hover {
  color: var(--aura);
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  nav {
    padding: 12px 20px;
  }

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

  .hero,
  section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }

  section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-portrait {
    width: 148px;
    margin-bottom: 4px;
  }

  .about-text p {
    font-size: 15px;
    max-width: none;
  }

  .pathway-step {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }

  .trust-bar {
    padding: 24px 20px;
    gap: 20px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .qualiopi-banner {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════
   TEAM — 3 equal person cards (12026-08-17)
   ═══════════════════════════════════════════════ */

/* Two columns, not auto-fit: the lead card spans both, and the two remaining
   cards split the row evenly instead of leaving a dead third column. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s;
}

.person-card:hover {
  border-color: var(--aura-border);
  box-shadow: 0 4px 24px var(--aura-glow);
}

/* Portrait and monogram share the same box so a card looks identical
   whether or not a photo exists yet. */
/* Capped: at half-row width an uncapped 4:5 portrait becomes a billboard
   and swamps the text under it. */
.person-photo,
.monogram {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  border: 1px solid var(--aura);
  margin-bottom: 16px;
  display: block;
}

/* height:auto is load-bearing — the width/height attributes on the <img> are a
   presentational hint that otherwise beats aspect-ratio and stretches the card. */
.person-photo {
  height: auto;
  object-fit: cover;
  object-position: 50% 18%;
}

.monogram {
  background: var(--aura-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--aura);
}

.person-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

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

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

/* ═══════════════════════════════════════════════
   SUBPAGE HEADER — /offres/ and /formations/
   ═══════════════════════════════════════════════ */

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

.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

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

.page-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: var(--text);
}

.page-hero h1 .aura {
  color: var(--aura);
}

.page-hero .lede {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 620px;
}

/* ═══════════════════════════════════════════════
   BENTO — offer tiles with a native <details> expand
   ═══════════════════════════════════════════════ */

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

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

.bento-tile:hover {
  border-color: var(--aura-border);
  box-shadow: 0 4px 24px var(--aura-glow);
}

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

/* An open tile stays visually raised so you don't lose your place. */
.bento-tile:has(details[open]) {
  border-color: var(--aura-border);
  box-shadow: 0 4px 24px var(--aura-glow);
}

.bento-tile h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
}

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

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

/* Meta chips: durée / format / financement */
.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

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

/* Native disclosure — works with JS off, keyboard-accessible for free. */
.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(--aura);
  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(--aura);
  border-bottom: 1.5px solid var(--aura);
  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(--text-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(--text-soft);
}

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

.detail-body li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-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(--aura);
}

.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(--aura);
  text-decoration: none;
  font-weight: 500;
  min-height: 32px;
  line-height: 32px;
}

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

/* The wild-card / sur-mesure tile: inverted so it reads as the exit door. */
.bento-tile.invite {
  background: var(--aura-light);
  border-color: var(--aura-border);
  justify-content: center;
}

.bento-tile.invite h3 {
  color: #0f766e;
}

@media (max-width: 640px) {

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

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

/* Lead person card — founder keeps the bio, facts and Malt link, but lives
   inside the team block so nobody appears on the page twice. */
.person-card.lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.person-card.lead .person-photo {
  margin-bottom: 0;
}

.person-card.lead h3 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 6px;
}

.person-card.lead .person-role {
  margin-bottom: 16px;
}

.person-card.lead .lead-text p {
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.person-card.lead .about-facts {
  grid-column: 1 / -1;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .person-card.lead {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .person-card.lead .person-photo {
    width: 148px;
  }
}
